Hue error: "configobj.DuplicateError: Duplicate keyword name at line"

Document created by wade on Feb 27, 2016
Version 1Show Document
  • View in full screen mode

Author: Shishir Prakash

Original Publication Date: August 20, 2015

 

Environment;

Hue 3.x

 

Summary :

While restarting the Hue server the error "DuplicateError: Duplicate keyword name at line" is observed in /opt/mapr/hue/hue-3.x.x/logs/hue-<user>-runcpserver-hostname.out

File "/opt/mapr/hue/hue-3.8.1/desktop/core/src/desktop/lib/conf.py", line 500, in _configs_from_dir

  conf = configobj.ConfigObj(os.path.join(conf_dir, filename))

  File "/opt/mapr/hue/hue-3.8.1/build/env/lib/python2.6/site-packages/configobj-4.6.0-py2.6.egg/configobj.py", line 1219, in __init__

  self._load(infile, configspec)

  File "/opt/mapr/hue/hue-3.8.1/build/env/lib/python2.6/site-packages/configobj-4.6.0-py2.6.egg/configobj.py", line 1302, in _load

  raise error

configobj.DuplicateError: Duplicate keyword name at line 74.

Root Cause

A duplicate value exists at line 74 in the configuration file /opt/mapr/hue/hue-3.x.x/desktop/conf/hue.ini.

Mistakenly some parameter has been written twice in hue.ini which is causing this issue while starting the Hue server.

 

Solution:
Search and remove the duplicate key and value.
e.g : The "hive_server_host=localhost" parameter has been added twice in /opt/mapr/hue/hue-3.x.x/desktop/conf/hue.ini file. While trying to restart the Hue server it was throwing the above duplicate keyword error in "hue-mapr-runcpserver-hostname.out".

Attachments

    Outcomes