1. 程式人生 > >[hdp2.4系列] ambari安裝配置

[hdp2.4系列] ambari安裝配置

在master上安裝ambari-server 在master、slave1、slave2、slave3上安裝ambari-agent 一、ambari-server安裝 使用root使用者登入master節點。 yum install ambari-server 中間需要輸出 y 確認一次,最後看到complete提示安裝完成。 二、ambari-server配置 使用root使用者登入master節點。 準備: 1、mysql ambari-server 執行需要使用一個數據庫來進行資料儲存,預設會安裝postgress資料庫,這裡我們使用自己安裝的mysql資料。需要準備好資料庫連線串,使用者名稱,密碼等內容。也可以使用yum install mysql-server. 2、jdk 配置。準備jdk路徑。 安裝過程 ambari-server setup 1.如果沒有關閉 SELinux,會得到一個警告,預設為(y),直接回車下一步。 2.預設使用root使用者執行ambari-server,直接回車下一步即可。如果要使用其它的使用者則輸入y,回車。 3.如果沒有臨時關閉防火牆,會得到一個警告,直接回車下一步。 4. 選擇JAVA執行環境,輸入1下載安裝Oracle JDK 1.8.此處我們輸入3,輸入已經裝好的jdk的java_home路徑。 5.配置使用的資料庫。預設是安裝postgress 資料庫。此處我們選擇使用自定義資料庫,然後輸入3,選擇 mysql. 6.輸入mysql資料庫連線資訊,建好使用者後,需要按提示執行一下初始化指令碼。 7.完成安裝。 安裝日誌,紅色的是需要注意的: [
[email protected]
~]# ambari-server setup
Using python /usr/bin/python2 Setup ambari-server Checking SELinux... SELinux status is 'enabled' SELinux mode is 'permissive' WARNING: SELinux is set to 'permissive' mode and temporarily disabled. OK to continue [y/n] (y)? Customize user account for ambari-server daemon [y/n] (n)?
Adjusting ambari-server permissions and ownership... Checking firewall status... Checking JDK... [1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 [3] Custom JDK ============================================================================== Enter choice (1): 3
WARNING: JDK must be installed on all hosts and JAVA_HOME must be valid on all hosts. WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts. Path to JAVA_HOME: /usr/local/jdk1.7.0_67 Validating JDK on Ambari Server...done. Completing setup... Configuring database... Enter advanced database configuration [y/n] (n)? Y Configuring database... ============================================================================== Choose one of the following options: [1] - PostgreSQL (Embedded) [2] - Oracle [3] - MySQL [4] - PostgreSQL [5] - Microsoft SQL Server (Tech Preview) [6] - SQL Anywhere ============================================================================== Enter choice (1): 3 Hostname (localhost): Port (3306): Database name (ambari): Username (ambari): Enter Database Password (bigdata): 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-MySQL-CREATE.sql Proceed with configuring remote database connection properties [y/n] (y)? Extracting system views... ....... Adjusting ambari-server permissions and ownership... Ambari Server 'setup' completed successfully. [[email protected] ~]# 三、ambari-agent安裝配置 安裝:yum install ambari-agent 配置:設定ambari-agent對應的ambari-server資訊。 [[email protected] ~]# vi /etc/ambari-agent/conf/ambari-agent.ini 四、ambari-server ,ambari-agent啟動 ambari-server start ambari-agent start 五、驗證ambari-server啟動 在瀏覽器輸入master.bigdata.com 驗證是否ambari-server 啟動成功。