how_to_install_hue_by_docker

hue:
###start hue server in another docker container, and best practice is that we commit the container which was installed hue to a image different from hadoop and hive.###


Getting Started


Add the development packages, build and get the development server running:


git clone https://github.com/cloudera/hue.git
        
        cd hue
        make apps
        [HUE_HOME]/build/env/bin/hue runserver


Now Hue should be running on http://localhost:8000 !


#Development Prerequisites


CentOS/RHEL(yum install):


    Oracle's JDK (read more here)
    ant
    asciidoc
    cyrus-sasl-devel
    cyrus-sasl-gssapi
    cyrus-sasl-plain
    gcc
    gcc-c++
    krb5-devel
    libffi-devel
    libtidy (for unit tests only)
    libxml2-devel
    libxslt-devel
    make
    mvn (from apache-maven package or maven3 tarball)
    mysql
    mysql-devel
    openldap-devel
    python-devel
    sqlite-devel
    openssl-devel (for version 7+)
    gmp-devel








##How to configure Hue for your Hadoop cluster#:refer to http://gethue.com/how-to-configure-hue-in-your-hadoop-cluster/
#####################################################
diff --git a/desktop/conf.dist/hue.ini b/desktop/conf.dist/hue.ini
old mode 100644
new mode 100755
index 944c1e4..943ee73
--- a/desktop/conf.dist/hue.ini
+++ b/desktop/conf.dist/hue.ini
@@ -892,7 +892,8 @@
       # Use WebHdfs/HttpFs as the communication mechanism.
       # Domain should be the NameNode or HttpFs host.
       # Default port is 14000 for HttpFs.
-      ## webhdfs_url=http://localhost:50070/webhdfs/v1
+      ##webhdfs_url=http://localhost:50070/webhdfs/v1
+      webhdfs_url=http://172.17.0.2:50070/webhdfs/v1


       # Change this if your HDFS cluster is Kerberos-secured
       ## security_enabled=false
@@ -910,10 +911,12 @@


     [[[default]]]
       # Enter the host on which you are running the ResourceManager
-      ## resourcemanager_host=localhost
+      ##resourcemanager_host=localhost
+      resourcemanager_host=172.17.0.2


       # The port where the ResourceManager IPC listens on
       ## resourcemanager_port=8032
+      ## resourcemanager_port=8088


       # Whether to submit jobs to this cluster
       submit_to=True
@@ -926,12 +929,15 @@


       # URL of the ResourceManager API
       ## resourcemanager_api_url=http://localhost:8088
+      resourcemanager_api_url=http://172.17.0.2:8088


       # URL of the ProxyServer API
       ## proxy_api_url=http://localhost:8088
+      proxy_api_url=http://172.17.0.2:8088




       # URL of the HistoryServer API
       ## history_server_api_url=http://localhost:19888
+      history_server_api_url=http://172.17.0.2:19888


       # URL of the Spark History Server
       ## spark_history_server_url=http://localhost:18088
@@ -996,12 +1002,14 @@
   # Host where HiveServer2 is running.
   # If Kerberos security is enabled, use fully-qualified domain name (FQDN).
   ## hive_server_host=localhost
+  hive_server_host=172.17.0.2


   # Port where HiveServer2 Thrift server runs on.
   ## hive_server_port=10000


   # Hive configuration directory, where hive-site.xml is located
   ## hive_conf_dir=/etc/hive/conf
+  hive_conf_dir=/usr/local/apache-hive-2.0.1-bin


   # Timeout in seconds for thrift calls to Hive service
   ## server_conn_timeout=120
@@ -1063,6 +1071,7 @@
 [impala]
   # Host of the Impala Server (one of the Impalad)
   ## server_host=localhost
+  ## server_host=172.17.0.2


   # Port of the Impala Server
   ## server_port=21050
@@ -1481,7 +1490,7 @@
 [libsentry]
   # Hostname or IP of server.
   ## hostname=localhost
-
+  hostname=172.17.0.2
   # Port the sentry service is running on.
   ## port=8038


###########################################################


##configure Mysql:https://www.cloudera.com/documentation/enterprise/5-5-x/topics/cdh_ig_hue_database1.html#xd_583c10bfdbd326ba-3ca24a24-13d80143249--7f4e
<<Using an External Database for Hue Using the Command Line>>



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值