您的位置:首页 > 运维架构 > Docker

how_to_install_hue_by_docker

2017-11-12 15:38 417 查看
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>>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hue