其次,在配置其他服务的时候也是需要每个参数去留心看看的,比如,由于我的才1G内存的虚拟机,所以在有内存参数配置的,比如默认的是1G或者2G,我都改为256M了,同时我只有一个数据节点,所以dfs.replication配置为了1,。等等这些配置,都需要去分析,如果是实际环境的话。
最后重要的一点是Install、start、test了。这里按照我前面的配置,最后在HBase测试的时候出了点问题,问题如下:
err: /Stage[2]/Hdp-hbase::Hbase::Service_check/Exec[/tmp/hbaseSmokeVerify.sh]/returns: change from notrun to 0 failed: su - ambari-qa -c '/tmp/hbaseSmokeVerify.sh /etc/hbase/conf ida8c06700_date142414' returned 1 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp-hbase/manifests/hbase/service_check.pp:77
notice: /Stage[2]/Hdp-hbase::Hbase::Service_check/Hdp-Hadoop::Exec-hadoop[hbase::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hbase/data/data/default/ambarismoketest]/Anchor[hdp::exec::hadoop --config /etc/hadoop/conf fs -test -e /apps/hbase/data/data/default/ambarismoketest::begin]: Dependency Exec[/tmp/hbaseSmokeVerify.sh] has failures: true
notice: /Stage[2]/Hdp-hbase::Hbase::Service_check/Hdp-hadoop::Exec-hadoop[hbase::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hbase/data/data/default/ambarismoketest]/Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hbase/data/data/default/ambarismoketest]: Dependency Exec[/tmp/hbaseSmokeVerify.sh] has failures: true
notice: /Stage[2]/Hdp-hbase::Hbase::Service_check/Hdp-hadoop::Exec-hadoop[hbase::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hbase/data/data/default/ambarismoketest]/Anchor[hdp::exec::hadoop --config /etc/hadoop/conf fs -test -e /apps/hbase/data/data/default/ambarismoketest::end]: Dependency Exec[/tmp/hbaseSmokeVerify.sh] has failures: true
notice: /Stage[2]/Hdp-hbase::Hbase::Service_check/Anchor[hdp-hbase::hbase::service_check::end]: Dependency Exec[/tmp/hbaseSmokeVerify.sh] has failures: true
notice: Finished catalog run in 158.31 seconds
不过这个大概没啥影响吧。这个没深究,因为在安装好了之后,我启动了下HBase,发现没啥问题。
不过,说句实话,如果真是虚拟机玩的话,内存一定要够呀。三台虚拟机开着,在安装的时候,内存一直保持3.7、8的样子,cpu很多时候都去到了90%+,不能进行其他操作。
4. 总结
Ambari安装配置HDP,确实不是很难,如果前期准备都ok的话,那就基本是万事大吉了,后面也只是一些小问题了。最后,附上几张图吧。


你可以看到这个界面很多红色的,因为我就开了一个vm1,而且还把所有的服务都关闭了。不然,我连写这篇博客估计都够呛。
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
