
安裝前提
我們假設使用者已經安裝了HDP Ambari,并且已經安裝了HDFS和Zookeeper。安裝步驟可以參考:
●
https://docs.hortonworks.com/HDPDocuments/Ambari/Ambari-2.4.2.0/index.html https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/index.html使用Ambari安裝完HDFS後,HDFS有些參數值需要修改或者添加,請參見下面的清單:
● ipc.client.connection.maxidletime: 3600000
● ipc.client.connect.timeout: 300000
● dfs.namenode.handler.count: 600
● dfs.client.socket-timeout: 300000000
● dfs.datanode.socket.write.timeout: 7200000
安裝OushuDB插件
在每台機器上下載下傳OushuDB repo檔案
#Redhat/CentOS 7.0, 7.1, 7.2系統并且包含avx指令請配置以下YUM源:
wget -P /etc/yum.repos.d/ $擷取的repo位址
#Redhat/CentOS 7.0, 7.1, 7.2系統但不包含avx指令請配置以下YUM源:
wget -P /etc/yum.repos.d/ $擷取的repo位址
#Redhat/CentOS 7.3系統并且包含avx指令請配置以下YUM源:
wget -P /etc/yum.repos.d/ $擷取的repo位址
#Redhat/CentOS 7.3系統但不包含avx指令請配置以下YUM源:
wget -P /etc/yum.repos.d/ $擷取的repo位址
#Redhat/CentOS 7.4系統并且包含avx指令請配置以下YUM源:
wget -P /etc/yum.repos.d/ $擷取的repo位址
#Redhat/CentOS 7.4系統但不包含avx指令請配置以下YUM源:
wget -P /etc/yum.repos.d/ $擷取的repo位址
在安裝ambari server的實體機上安裝OushuDB ambari插件
sudo yum install -y oushu-database-ambari-plugin
cd /var/lib/hawq/
sudo ./add-hawq.py --stack HDP-2.5 --hawqrepo $擷取的repo位址
# 使用者名密碼請輸入您的ambari登陸使用者名密碼,預設都為admin::
sudo ambari-server restart