按照您的提示 安装hue之后启动却出现下面问题

9088trw 发布于 2014/08/08 09:58
阅读 1K+
收藏 0

@cwalet 你好,想跟你请教个问题:  安装hue之后出现这样的问题!代码如下

[master@master bin]$ ./hue runserver
/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/conf/__init__.py:110: DeprecationWarning: The SECRET_KEY setting must not be empty.
  warnings.warn("The SECRET_KEY setting must not be empty.", DeprecationWarning)
/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/conf/__init__.py:110: DeprecationWarning: The SECRET_KEY setting must not be empty.
  warnings.warn("The SECRET_KEY setting must not be empty.", DeprecationWarning)
Validating models...


Unhandled exception in thread started by <bound method Command.inner_run of <django.core.management.commands.runserver.Command object at 0x9a9d32c>>
Traceback (most recent call last):
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/commands/runserver.py", line 91, in inner_run
    self.validate(display_num_errors=True)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/base.py", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/validation.py", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/loading.py", line 158, in get_app_errors
    self._populate()
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/loading.py", line 67, in _populate
    self.load_app(app_name)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/loading.py", line 88, in load_app
    models = import_module('.models', app_name)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/local/hue/apps/beeswax/src/beeswax/models.py", line 38, in <module>
    from beeswax.design import HQLdesign
  File "/usr/local/hue/apps/beeswax/src/beeswax/design.py", line 33, in <module>
    from hadoop.cluster import get_hdfs
  File "/usr/local/hue/desktop/libs/hadoop/src/hadoop/cluster.py", line 22, in <module>
    from hadoop.fs import webhdfs, LocalSubFileSystem
  File "/usr/local/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 31, in <module>
    from desktop.lib.rest import http_client, resource
ImportError: cannot import name resource

万分感谢?着急装好

加载中
0
cwalet
cwalet

The SECRET_KEY setting must not be empty.

这里提示了的,修改hue配置:secret_key=hash码

0
牛仔豆
牛仔豆
File "/usr/local/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line 31, in <module>
    from desktop.lib.rest import http_client, resource

ImportError: cannot import name resource


我也找不到这个resource模块,同问一下

返回顶部
顶部