我们有小型的Hadoop-Hawq集群。这样,当我执行HAWQ服务检查时,一次从属主机服务就会失败。

从Ambari用户界面获取以下错误:

**stderr:**
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/PHD/3.0/services/HAWQ/package/scripts/service_check.py", line 9, in <module>
    HAWQServiceCheck().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 123, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/PHD/3.0/services/HAWQ/package/scripts/service_check.py", line 6, in service_check
    hawq.verify_segments_state(env)
  File "/var/lib/ambari-agent/cache/stacks/PHD/3.0/services/HAWQ/package/scripts/hawq.py", line 20, in verify_segments_state
    raise Exception("gpstate command returned non-zero result: {0}. Out: {1} Error: {2}".format(retcode, out, err))
Exception: gpstate command returned non-zero result: 255. Out:  Error: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
 **stdout:**
(255, '', 'Permission denied, please try again.\r\nPermission denied, please try again.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n')

任何帮助将不胜感激?

最佳答案

HAWQ要求对所有群集节点进行无密码ssh访问。检查系统是否配置为允许这样做,并执行以下hawq命令以在主机文件中定义的节点上设置无密码ssh:

关于hadoop - HAWQ服务检查从Ambari失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37653594/

10-16 01:53