Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Getting Error while starting HUE services

avatar
Expert Contributor

Team ,

 

I have installed HUE using the below steps .

 

https://github.com/steven-dfheinz/HDP2-Hue4-Service.

 

I was able to install HUE successfully ,but it fails to start . below is the error i am getting .

 

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HUE/4.6.0/package/scripts/hue_server.py", line 76, in <module>
    HueServer().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HUE/4.6.0/package/scripts/hue_server.py", line 26, in start
    import params
  File "/var/lib/ambari-agent/cache/common-services/HUE/4.6.0/package/scripts/params.py", line 194, in <module>
    webhdfs_url = format('http://' + dfs_namenode_http_address + '/webhdfs/v1')
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/config_dictionary.py", line 73, in __getattr__
    raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'dfs.namenode.http-address' was not found in configurations dictionary!

 

Any help would be appreciated  .

 

Regards Bharad

1 ACCEPTED SOLUTION

avatar
Super Guru

@bhara 

Change the line 193 below and try to start again.

 
File:/var/lib/ambari-agent/cache/common-services/HUE/4.6.0/package/scripts/params.py
 
dfs_namenode_http_address = config['configurations']['hdfs-site']['dfs.namenode.http-address']
to 
 
dfs_namenode_http_address = 'localhost'
That will give dfs_namenode_http_address a value and get past the error.

View solution in original post

1 REPLY 1

avatar
Super Guru

@bhara 

Change the line 193 below and try to start again.

 
File:/var/lib/ambari-agent/cache/common-services/HUE/4.6.0/package/scripts/params.py
 
dfs_namenode_http_address = config['configurations']['hdfs-site']['dfs.namenode.http-address']
to 
 
dfs_namenode_http_address = 'localhost'
That will give dfs_namenode_http_address a value and get past the error.