about云开发

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 648|回复: 3

[异常错误] 注册免费送体验金平台

[复制链接]

1

主题

0

听众

0

收听

新手上路

Rank: 1

积分
38
发表于 2018-11-8 11:48:12 | 显示全部楼层 |阅读模式
论坛各位大神,我这边进行到测试链接数据库,Hive和Oozie都没问题,只有Hue报错,Unexpected error:Unable to verify database connection我把日志拉出来,说没有找到altscript.sh
/bin/sh: {{CMF_CONF_DIR}}/altscript.sh: No such file or directory
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/bin/hue", line 12, in <module>
    load_entry_point('desktop==3.9.0', 'console_scripts', 'hue')()
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/manage_entry.py", line 143, in entry
    execute_from_command_line(sys.argv)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/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 "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/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 "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__
    self._setup(name)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 128, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/settings.py", line 326, in <module>
    "PASSWORD" : desktop.conf.get_database_password(),
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/conf.py", line 1695, in get_database_password
    password = DATABASE.PASSWORD_SCRIPT.get()
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/conf.py", line 154, in get
    return self.config.get_value(data, present=present, prefix=self.prefix, coerce_type=True)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/conf.py", line 270, in get_value
    return self._coerce_type(raw_val, prefix)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/conf.py", line 290, in _coerce_type
    return self.type(raw)
  File "/opt/cloudera/parcels/CDH-5.15.0-1.cdh5.15.0.p0.21/lib/hue/desktop/core/src/desktop/lib/conf.py", line 721, in coerce_password_from_script
    raise subprocess.CalledProcessError(p.returncode, script)
subprocess.CalledProcessError: Command '{{CMF_CONF_DIR}}/altscript.sh sec-2-password' returned non-zero exit status 127

我从Hue的启动文件夹里把对应文件考到相应位置还是不行,求助各位大神,这个问题困扰好久了

51

主题

3

听众

1

收听

中级会员

Rank: 3Rank: 3

积分
783
发表于 2018-11-8 15:19:57 | 显示全部楼层
找不到分为多种情况,比如
1.文件缺失不存在
2.文件存在,访问不到。那就是权限问题。

1

主题

0

听众

0

收听

新手上路

Rank: 1

积分
38
 楼主| 发表于 2018-11-8 15:51:55 | 显示全部楼层
谢谢解答,我已经对这个文件授权了,CM服务也重启了,还是出现一样的错误,郁闷;
看报错还是找不到这个sh文件

32

主题

7

听众

4

收听

高级会员

Rank: 4

积分
1433
发表于 2018-11-8 16:58:37 | 显示全部楼层
cyt3872730 发表于 2018-11-8 15:51
谢谢解答,我已经对这个文件授权了,CM服务也重启了,还是出现一样的错误,郁闷;
看报错还是找不到这个sh ...

还是因为权限的问题,这里面可能不止这个文件altscript.sh 的权限
而是可能跟Java的权限也有关系。
可能还和你的用户权限有关系等等吧。
总之在权限方面思考。多方位的。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /3 下一条

QQ|小黑屋|about云开发-学问论坛|社区 ( 京ICP备12023829号

GMT+8, 2018-12-16 16:41 , Processed in 0.502932 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.2 Licensed

快速回复 返回顶部 返回列表