WARNING: Command chown -R -L ambari /var/lib/ambari-server returned exit code /var/lib/ambari-server with message: chown: 无法取消\的引用: 没有那个文件或目录 Ambari Server 'setup' completed successfully. 解决办法: [root@hadoop-db resources]# cp ojdbc6-11.2.0.3.jar /var/lib/ambari-server/resources/ojdbc6.jar #5、再次重新确认设置(前面没有错误,可以忽略) [root@hadoop-db ~]# ambari-server setup Using python /usr/bin/python Setup ambari-server Checking SELinux... SELinux status is 'disabled' Ambari-server daemon is configured to run under user 'ambari'. Change this setting [y/n] (n)? n Adjusting ambari-server permissions and ownership... Checking firewall status... Checking JDK... Do you want to change Oracle JDK [y/n] (n)? n Completing setup... Configuring database... Enter advanced database configuration [y/n] (n)? n Configuring database... Configuring ambari database... Copying JDBC drivers to server resources... Configuring remote database connection properties... WARNING: Before starting Ambari Server, you must run the following DDL against the database to create the schema: /var/lib/ambari-server/resources/Ambari-DDL-Oracle-CREATE.sql' Proceed with configuring remote database connection properties [y/n] (y)? y Extracting system views... ............ Adjusting ambari-server permissions and ownership... Ambari Server 'setup' completed successfully. 6、# 执行/var/lib/ambari-server/resources/Ambari-DDL-Oracle-CREATE.sql(启动之前一定要在元数据库db_ambari执行此脚本,否则报错) WARNING: Before starting Ambari Server, you must run the following DDL against the database to create the schema: /var/lib/ambari-server/resources/Ambari-DDL-Oracle-CREATE.sql' 启动Ambari Server,使用tail –f /var/log/ambari-server/ambari-server.log查看日志 [root@hadoop-db ~]# ambari-server start Using python /usr/bin/python Starting ambari-server Ambari Server running with administrator privileges. Organizing resource files at /var/lib/ambari-server/resources... Ambari database consistency check started... Server PID at: /var/run/ambari-server/ambari-server.pid Server out at: /var/log/ambari-server/ambari-server.out Server log at: /var/log/ambari-server/ambari-server.log Waiting for server start............................................................ DB configs consistency check: no errors and warnings were found. ERROR: Exiting with exit code 1. REASON: Server not yet listening on http port 8080 after 50 seconds. Exiting.
客户端浏览器登录(admin/admin) http://172.29.0.25:8080/
6. 创建和设置Hadoop集群 6.1. 创建Hive Metastore Repository
CREATE USER db_hive IDENTIFIED BY *** DEFAULT TABLESPACE TBS_AMBARI TEMPORARY TABLESPACE TEMP PROFILE \ QUOTA UNLIMITED ON TBS_AMBARI; GRANT UNLIMITED TABLESPACE TO db_hive; GRANT \GRANT \ALTER USER db_hive DEFAULT ROLE \ 6.2. 创建Oozie Server Repository
CREATE USER db_oozie IDENTIFIED BY *** DEFAULT TABLESPACE TBS_AMBARI TEMPORARY TABLESPACE TEMP PROFILE \ QUOTA UNLIMITED ON TBS_AMBARI; GRANT UNLIMITED TABLESPACE TO db_oozie; GRANT \GRANT \ALTER USER db_oozie DEFAULT ROLE \ 6.3. 创建集群
浏览器登录Ambari管理界面
输入:xxxxx_hadoop_sit
点击“Use Local Repository”
删除其余操作系统的Repository
按照HTTP yum 地址填入进去
安装配置表
项目 Name your cluster Stacks Advanced Repository Options redhat6HDP-2.2 redhat6HDP-UTILS-1.1.0.20 http://172.29.0.25/HDP/HDP-2.6.0/HDP/centos6/ http://172.29.0.25/HDP/HDP-UTILS/ HDP001 HDP 2.6 值 说明 Skip Repository Base URL validation No (Advanced) Install Options Target Hosts Host Registration Information hadoop-db hadoop[01-08] HADOOP-DB /root/.ssh/id_rsa文件