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>>
###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>>
相关文章推荐
- how_to_install_hue_by_docker
- how_to_install_hadoop_hive_by_docker
- how_to_install_hadoop_hive_by_docker
- How to Install Docker on Ubuntu 14.04 LTS
- [OpenCV] How to install opencv by compiling source code
- How to install oracle by Command Line Interface(CLI) in silent mode on Linux
- How To Install Docker On Ubuntu 13.04 x64 VPS
- How to Install Win32 Assemblies for Side-by-Side Sharing (e.g. WinSxS)
- how to install plugins by widget way
- (全英文)How to install and run a simple Asp.Net 5 Application in a Docker Container
- How to Install Docker on Ubuntu 14.04 LTS
- How to install experimental Docker versions on my Ubuntu 16.04 LTS
- How To Install Docker on CentOS 7
- How to install Maven 3 on Ubuntu 12.04/12.10/13.04 by using apt-get
- How To Install Docker on Fedora 23
- How to make dpk to install into BCB by DCC32
- How To Install Docker on Fedora 23
- How to install subversion 1.7 (svn1.7) on ubuntu14.04 LTS [Tested By Carson Zang, passed!]
- How to install docker on ubuntu16.04
- How to Install Docker on Ubuntu 14.04 LTS