分享

关于hue安装的错误

zcfightings 发表于 2015-12-24 16:55:33 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 19349
在集群上安装hue debian系统。启动过程中报如下错误 Traceback (most recent call last):
  File "/usr/local/hue/branch-3.7.1/build/env/bin/hue", line 9, in <module>
    load_entry_point('desktop==3.9.0', 'console_scripts', 'hue')()
  File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/manage_entry.py", line 57, in entry
    execute_from_command_line(sys.argv)
  File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/management/commands/runcherrypyserver.py", line 68, in handle
    runcpserver(args)
  File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/management/commands/runcherrypyserver.py", line 124, in runcpserver
    start_server(options)
  File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/management/commands/runcherrypyserver.py", line 98, in start_server
    server.bind_server()
  File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/lib/wsgiserver.py", line 1656, in bind_server
    raise socket.error, msg
socket.error: [Errno 98] Address already in use


但这不是重点 重点是页面依然能登进去 但是登录之后就报一个字符编码的错误 如下所示


UnicodeDecodeError at /about/'ascii' codec can't decode byte 0xe7 in position 833: ordinal not in range(128)
Request Method:GET
Request URL:http://220.181.98.44:8000/about/
Django Version:1.6.10
Exception Type:UnicodeDecodeError
Exception Value:'ascii' codec can't decode byte 0xe7 in position 833: ordinal not in range(128)
Exception Location:/tmp/tmpxsd080/desktop/common_footer.mako.py in render_body, line 42
Python Executable:/usr/local/hue/branch-3.7.1/build/env/bin/python2.7
Python Version:2.7.9


能简单看出是ascii无法解析那个字符 但是不知道该从何下手该  按网上的 设置python 默认编码为utf-8  但是依旧没能解决问题  求高手指点





已有(4)人评论

跳转到指定楼层
langke93 发表于 2015-12-24 18:37:43
本帖最后由 langke93 于 2015-12-24 18:39 编辑

错误太多了,建议楼主多参考,多找资料,在配置方面确保正确。
参考下面文档
新手指导:cloudera的hue 安装
http://www.aboutyun.com/thread-10934-1-1.html


Hue安装配置实践
http://www.aboutyun.com/thread-10670-1-1.html


cloudera hue安装及Oozie的安装
http://www.aboutyun.com/thread-6846-1-1.html




回复

使用道具 举报

s060403072 发表于 2015-12-24 18:47:42
.注意到错误提示中的“ordinal not in range(128)”,意思是,字符不在128范围内,即说明不是普通的ASCII字符,超出处理能力了。
楼主对他们编程了?
设置python 默认编码为utf-8 ??这和python没有关系吧,而是跟自己集群和配置有关系
回复

使用道具 举报

zcfightings 发表于 2015-12-25 10:02:44
s060403072 发表于 2015-12-24 18:47
.注意到错误提示中的“ordinal not in range(128)”,意思是,字符不在128范围内,即说明不是普通的ASCII字 ...

没有 这并不是我写的代码 只是安装hue需要各种依赖库 我把依赖库安装上 然后编译运行hue  hue server能起来 输入账号密码登录进去 跳转至主页的时候 就出现这问题了
回复

使用道具 举报

zcfightings 发表于 2015-12-25 10:03:53
s060403072 发表于 2015-12-24 18:47
.注意到错误提示中的“ordinal not in range(128)”,意思是,字符不在128范围内,即说明不是普通的ASCII字 ...

应该是吧 但网上各种配置基本都试过 依旧不行 不知道为啥 哎
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条