大資料學習筆記(十六)-Hue的安裝部署和使用
阿新 • • 發佈:2019-02-15
sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libtidy libxml2-devel libxslt-devel make mvn mysql mysql-devel openldap-devel python-devel sqlite-devel openssl-devel gmp-devel
②解壓後在解壓目錄下執行
make apps
③配置檔案
/desktop/conf下的hue.ini
secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn<qW5o
④啟動
/build/env/bin/supervisor
admin使用者名稱設定為hadoop
2.整合HDFS
hdfs-site.xml
<property>
<name>dfs.webhdfs.enabled</name>
<value>true</value>
</property>
core-site.xml
<property>
<name>hadoop.proxyuser.使用者名稱.hosts</name>
<value>*</value >
</property>
<property>
<name>hadoop.proxyuser.使用者名稱.groups</name>
<value>*</value>
</property>
/desktop/conf下的hue.ini
default_user=hadoop
default_hdfs_superuser=hadoop
fs_defaultfs=hdfs://hadoop000:8020
webhdfs_url=http://hadoop000:50070/webhdfs/v1
hadoop_conf_dir=/home/hadoop/app/hadoop-2.6 .0-cdh5.7.0/etc/hadoop
3.整合YARN
/desktop/conf下的hue.ini
resourcemanager_host=hadoop000
# URL of the ResourceManager API
resourcemanager_api_url=http://hadoop000:8088
# URL of the ProxyServer API
proxy_api_url=http://hadoop000:8088
# URL of the HistoryServer API
history_server_api_url=http://hadoop000:19888
4.整合MySQL
/desktop/conf下的hue.ini
[[[mysql]]]
name=hive
engine=mysql
user=root
password=root
5.整合Hive
/desktop/conf下的hue.ini
hive_server_host=hadoop000
hive_conf_dir=/home/hadoop/app/hive-1.1.0-cdh5.7.0/conf
hue整合hive必須要先啟動HiveServer2