How to set the jobTracker hostname and port in Hue Oozie Dashboard
search cancel

How to set the jobTracker hostname and port in Hue Oozie Dashboard

book

Article ID: 294752

calendar_today

Updated On:

Products

Services Suite

Issue/Introduction

How to set the jobTracker hostname and port in Hue Oozie Dashboard.

Environment


Cause

By default Hue will run Oozie workflows using "localhost:8032" as the jobTracker address and port.

Yarn is using a non-standard port or Yarn is located on a different node than Oozie the workflow will fail with:

org.apache.oozie.action.ActionExecutorException: JA006: Call From huenode.domain.com/10.19.10.179 to localhost:8032 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

Resolution

1. Log into Ambari

2. Select the YARN service\

3. Review the value for configuration setting: "yarn.resourcemanager.address" under "Advanced yarn-site", in this example we assume the value is : "RMNode.domain.com:8050"

4. Locate the hue.ini configuration file, which will likely be in one of these three locations:

  • /usr/local/hue/desktop/conf/hue.ini
  • /usr/share/desktop/conf/hue.ini
  • /etc/hue/conf/hue.ini

5. Open hue.ini and add in two entries to define the address and port to use for the resource manager as per the example below.

# Enter the host on which you are running the ResourceManager 
resourcemanager_host=RMNode.domain.com 
# The port where the ResourceManager IPC listens on 
resourcemanager_port=8050

6. Restart HUE by running:

 sudo /etc/init.d/hue restart

7. Test the workflow.