這篇文章主要介紹了Centos7如何安裝Hue,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
在上虞等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專(zhuān)注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站建設(shè)、成都做網(wǎng)站 網(wǎng)站設(shè)計(jì)制作按需規(guī)劃網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站建設(shè),全網(wǎng)營(yíng)銷(xiāo)推廣,成都外貿(mào)網(wǎng)站建設(shè)公司,上虞網(wǎng)站建設(shè)費(fèi)用合理。
Hue
安裝示例基于Centos7
安裝Hue
,安裝前需要安裝大量的軟件和包,因?yàn)閜ython和c必須的依賴(lài)包
安裝Centos7中Hue
依賴(lài)包
yum install ant gcc g++ libkrb5-dev libMySQLclient-dev yum install build-essential gcc-c++ yum install python-dev libssl-dev build-essential zlibc zlib-bin libidn11-dev libidn11 zlib-devel # sasl.h所需依賴(lài)包 yum install cyrus-sasl-lib.x86_64 cyrus-sasl-devel.x86_64 libgsasl-devel.x86_64 saslwrapper-devel.x86_64 # python xml依賴(lài)包 yum install libxslt-devel pip install lxml # c/_cffi_backend.c:15:17: 致命錯(cuò)誤:ffi.h: yum install libffi-devel # openssl/opensslv.h找不到的問(wèn)題解決 yum install openssl-devel # fatal error: lber.h: 沒(méi)有那個(gè)文件或目錄 yum install libldap2-dev openldap-devel # egg_info failed with error code 1 in yum install mysql-devel # sqlite3.h:沒(méi)有那個(gè)文件或目錄 yum install gmp-devel sqlite-devel
依賴(lài)包的安裝這邊沒(méi)有分先后順序,基本都會(huì)使用到
安裝Hue
1 下載Hue
http://gethue.com/hue-3-12-th... 進(jìn)入下載頁(yè)面,可以根據(jù)你自己需求來(lái)下載對(duì)應(yīng)版本
2 編譯Hue
tar -zxvf hue-3.12.0.tgz -C /usr/local/ cd /usr/local/hue-3.12.0 make install
編譯沒(méi)有問(wèn)題就可以配置啦,可以將/usr/local/hue-3.12.0目錄刪除
3 配置Hue
數(shù)據(jù)庫(kù)vim /usr/local/hue/desktop/conf/hue.ini
找到[[database]]
修改配置如下:
engine=mysql host=ambari-ttt-master port=3306 user=hue password=123456 name=hue schema=hue 如果沒(méi)有配置name=hue的話后面初始化數(shù)據(jù)庫(kù)會(huì)有問(wèn)題
4 配置desktop
hue
端口,時(shí)區(qū)等信息配置
http_host=0.0.0.0 http_port=8888 server_user=hue server_group=hue default_user=hue default_hdfs_superuser=hdfs
5 初始化數(shù)據(jù)庫(kù)
cd /usr/local/hue/build/env/bin/ ./hue syncdb 在執(zhí)行時(shí)中間有交互,輸入no就好 ./hue migrate mysql -h xxx -u hue -p 登錄數(shù)據(jù)庫(kù)是否已經(jīng)初始化
6 啟動(dòng)和重啟HUE
# 啟動(dòng)hue cd /usr/local/hue/build/env/bin supervisor & # 關(guān)閉hue,hue有守護(hù)進(jìn)程會(huì)再拉起hue進(jìn)程 pkill -U hue 或者 killall -u hue
7 登錄Hue Web-Ui
http://x.x.x.x:8888
創(chuàng)建管理員
Hue
組件配置HDFS
配置[[hdfs_clusters]] [[[default]]] # Enter the filesystem uri fs_defaultfs=hdfs://ambari-ttt-master:8020 # Use WebHdfs/HttpFs as the communication mechanism. # Domain should be the NameNode or HttpFs host. # Default port is 14000 for HttpFs. webhdfs_url=http://ambari-ttt-master:50070/webhdfs/v1 # Directory of the Hadoop configuration hadoop_conf_dir=$HADOOP_CONF_DIR [[yarn_clusters]] [[[default]]] resourcemanager_host=ambari-ttt-master resourcemanager_port=8141 submit_to=True # URL of the ResourceManager API resourcemanager_api_url=http://ambari-ttt-master:8088 # URL of the ProxyServer API proxy_api_url=http://ambari-ttt-master:8088 # URL of the HistoryServer API history_server_api_url=http://ambari-ttt-master:19888 # URL of the Spark History Server spark_history_server_url=http://ambari-ttt-master:18088
需要在Ambari
中的HDFS
配置Custom core-site
添加訪問(wèn)權(quán)限,配置如下:
hadoop.proxyuser.hue.groups=* hadoop.proxyuser.hue.hosts=*
感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“Centos7如何安裝Hue”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來(lái)學(xué)習(xí)!
文章題目:Centos7如何安裝Hue
標(biāo)題URL:http://chinadenli.net/article44/goheee.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供電子商務(wù)、微信小程序、外貿(mào)建站、商城網(wǎng)站、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)