Hue supervisor启动错误hadoop工作正常 - 色调的Python包无法正常工作

时间:2014-03-05 06:31:49

标签: python mysql hadoop hive hue

我已经安装了hadoop,所有服务都运行良好。类似的色调按照说明安装并正确配置(类似的配置单元)。我所检查的一切都很好。但是当我尝试启动hue(主管)时,我收到了这个错误。请建议我该怎么做才能解决这个问题。

root@xxx:/usr/local/master/hue/build/env# bin/supervisor
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
(27536) *** Controller starting at Tue Mar  4 22:32:20 2014
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
Should start 1 new children
Controller.spawn_children(number=1)
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
(27549) *** Child exiting
(27536) *** Controller exiting

我也安装了python,mysql。在mysql中我创建了一个数据库hadoop。我根据之前的hue安装exp做的所有事情。多数民众赞成工作。但是这个安装给出了问题。

1 个答案:

答案 0 :(得分:0)

您的hive-site.xml(通常为$ HIVE_CONF_DIR / hive-site.xml)格式不正确,因此Hue无法对其进行解析和理解。

  

xml.parsers.expat.ExpatError:格式不正确(无效令牌):第24行第6列