Support Questions

Find answers, ask questions, and share your expertise

Hue standalone connection failure

Contributor

Hi,

 

I want to make a setup of hue on a separate server which will connect to existing cluster without being a part of  hadoop cluster.

To achive this,i have installed Hue 3.9.0 from CDH package 5.9. After installing hue, i have configured hue.ini to connect to hadoop cluster. Below are the configurations

 

Hue.ini

# Webserver listens on this address and port

http_host=hueserver1
http_port=8162
# This should be the Hue admin and proxy user
default_user=hdfs

 

# Configuration options for Kerberos integration for secured Hadoop clusters
# ------------------------------------------------------------------------
[[kerberos]]

# Kerberos principal name for Hue
hue_principal=hue@MYREALM.COM
# Path to kinit
kinit_path=/usr/bin/kinit

###########################################################################
# Settings to configure your Hadoop cluster.
###########################################################################

[hadoop]

# NameNode logical name.
logical_name=nameservice1

# Use WebHdfs/HttpFs as the communication mechanism.
# Domain should be the NameNode or HttpFs host.
# Default port is 14000 for HttpFs.
webhdfs_url=http://master1:50070/webhdfs/v1

# Change this if your HDFS cluster is Kerberos-secured
security_enabled=true
# Configuration for YARN (MR2)
# ------------------------------------------------------------------------
[[yarn_clusters]]

[[[default]]]
# Enter the host on which you are running the ResourceManager
resourcemanager_host=master2

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

# Whether to submit jobs to this cluster
submit_to=True

###########################################################################
# Settings to configure Beeswax with Hive
###########################################################################

[beeswax]

# Host where HiveServer2 is running.
# If Kerberos security is enabled, use fully-qualified domain name (FQDN).
hive_server_host=master1

# Port where HiveServer2 Thrift server runs on.
hive_server_port=10000
###########################################################################
# Settings to configure Impala
###########################################################################

[impala]
# Host of the Impala Server (one of the Impalad)
server_host=master1

# Port of the Impala Server
server_port=21050
###########################################################################
# Settings to configure Sentry / Security App.
###########################################################################

[security]

# Use Sentry API V1 for Hive.
hive_v1=true

# Use Sentry API V2 for Hive.
hive_v2=false

# Use Sentry API V2 for Solr.
## solr_v2=true
###########################################################################
# Settings for the Sentry lib
###########################################################################

[libsentry]
# Hostname or IP of server.
hostname=master1

# Port the sentry service is running on.
port=8038

# Sentry configuration directory, where sentry-site.xml is located.
sentry_conf_dir=/etc/sentry/conf

 

 

I hue server i have done kerberos setup and able to kinit hdfs and hue user. I  logged in as hdfs user in Hue and just trying to browse hdfs.

 

 

Please help me.

1 REPLY 1

Contributor


Below error i get in hue file browser

 

Cannot access: /user/hdfs.

HTTPConnectionPool(host='master1', port=50070): Max retries exceeded with url: /webhdfs/v1/user/hdfs?op=GETFILESTATUS&user.name=hdfs&doas=hdfs (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fd6c04173d0>: Failed to establish a new connection: [Errno 110] Connection timed out',))