`

ambari安装与使用

 
阅读更多
系统用的是centos6.5
准备工作,添加源:
cd /etc/yum.repos.d/
wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.6.0/ambari.repo
安装一下必要的依赖
yum install openssl
yum install ambari-server

数据库:
create database ambari;
GRANT ALL PRIVILEGES ON ambari.* TO 'ambari'@'%' IDENTIFIED BY 'bigdata' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON ambari.* TO 'ambari'@'localhost' IDENTIFIED BY 'bigdata' WITH GRANT OPTION;
create database hive;
GRANT ALL PRIVILEGES ON hive.* TO 'hive'@'%' IDENTIFIED BY 'hive' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON hive.* TO 'hive'@'localhost' IDENTIFIED BY 'hive' WITH GRANT OPTION;
create database oozie;
GRANT ALL PRIVILEGES ON oozie.* TO 'oozie'@'%' IDENTIFIED BY 'oozie' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON oozie.* TO 'oozie'@'localhost' IDENTIFIED BY 'oozie' WITH GRANT OPTION;

ambari-server setup
ambari-server start


每个节点,配置ssh免登录
ssh-keygen

如果需要修改其默认端口:
1.On the Ambari Server host, open /etc/ambari-server/conf/ambari.properties with a text editor.
2.Add the client API port property and set it to your desired port value:
client.api.port=<port_number>
3.Start (or re-start) the Ambari Server. You can now access Ambari Web via the newly configured port:
http://{your.ambari.server}:<port_number>



开始部署安装hadoop集群
ambari-server setup

yum install mysql-connector-java*
ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar


安装过程中,部分组件安装失败,没有关系,可以,卸载再重新安装。
使用过程中,出现 Host Role in invalid state,原因是组件安装失败,可能是下载失败,或者其它原因,解决方法很简单,重新卸载该组件,删除与该组件相关的配置文件。重新安装,安装成功后。查询表
SELECT * FROM `hostcomponentstate`
对改节点上的组件的状态进行更新。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics