Ambari2.6.2安裝
Ambari 和HDP版本支援查詢
Ambari 軟體下載地址查詢
HDP軟體下載地址查詢
Ambari 2.6.2
HDP2.6.2
在httpd網站根目錄,預設是即/var/www/html/,建立目錄ambari,並且將下載的壓縮包解壓到/var/www/html/ambari目錄。
cd /var/www/html/
mkdir ambari
cd ambari/
驗證http網站是否可用,可以使用瀏覽器直接訪問下面的地址:
http://192.168.190.21/ambari/
ambari.repo
#VERSION_NUMBER=2.6.2.0-155
[ambari-2.6.2.0]
name=ambari Version - ambari-2.6.2.0
baseurl=http://192.168.32.139/ambari/ambari/centos7/2.6.2.0-155
gpgcheck=1
gpgkey=http://192.168.32.139/ambari/ambari/centos7/2.6.2.0-155/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
hdp.repo
#VERSION_NUMBER=2.6.5.0-292
[HDP-2.6.5.0]
name=HDP Version - HDP-2.6.5.0
baseurl=http://192.168.32.139/ambari/HDP/centos7/2.6.5.0-292
gpgcheck=1
gpgkey=http://192.168.32.139/ambari/HDP/centos7/2.6.5.0-292/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-UTILS-1.1.0.22]
name=HDP-UTILS Version - HDP-UTILS-1.1.0.22
baseurl=http://192.168.32.139/ambari/HDP-UTILS/centos7/1.1.0.22/
gpgcheck=1
gpgkey=http://192.168.32.139/ambari/HDP-UTILS/centos7/1.1.0.22//RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
-----------------------------------------------------------------------------------------
ARNING: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property "server.jdbc.driver.path=[path/to/custom_jdbc_driver]" in ambari.properties.Press to continue.
ERROR: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property "server.jdbc.driver.path=[path/to/custom_jdbc_driver]" in ambari.properties.
ERROR: Exiting with exit code -1.
REASON: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property "server.jdbc.driver.path=[path/to/custom_jdbc_driver]" in ambari.properties.
修改 /etc/ambari-server/conf/ambari.properties
新增
server.jdbc.driver.path=/usr/share/java/mysql-connector-java-5.1.30.jar
.將Ambari資料庫指令碼匯入到資料庫。
如果使用自己定義的資料庫,必須在啟動Ambari服務之前匯入Ambari的sql指令碼。用Ambari使用者(上面設定的使用者)登入mysql
mysql -uroot -p
use ambari
source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql