【问题标题】:hive is not working with HDP with AmbariHive 无法与 Ambari 一起使用 HDP
【发布时间】:2018-02-01 22:54:48
【问题描述】:

我已经用 Ambari 2.6.1 安装了 HDP。它大部分都是自动完成的,但 Hive 无法正常启动。

我在某处看到一个帖子,我删除了 pid 并终止了该进程,希望我能重新启动它并且它会工作,但现在它显示机器上的心跳丢失。

请指导我该怎么做?

我列出了我从 ambari 得到的错误。

1.Hive 元存储:

    Metastore on machine2.ambari.local failed (Traceback (mos&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'' returned 1. Error: Could not open client transport with JDBC Uri: jdbc:hive2://machine2.ambari.local:10000/;transportMode=binary: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0) Error: Could not open client transport with JDBC Uri: jdbc:hive2://machine2.ambari.local:10000/;transportMode=binary: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0) )" data-bindattr-40693="40693"> Connection failed on host machine2.ambari.local:10000 (Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_thrift_port.py", line 212, in execute ldap_password=ldap_password) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/hive_check.py", line 81, in check_thrift_port_sasl timeou... t recent call last): File "/var/lib/ambari-agent/cache/common-servics/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py", line 203, in execute timeout_kill_strategy=TerminateStrategy.KILL_PROCESS_TREE, File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__ self.env.run() File "/
  1. Hive 服务器 2:

    awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'' returned 1. Error: Could not open client transport with JDBC Uri: jdbc:hive2://machine2.ambari.local:10000/;transportMode=binary: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0) Error: Could not open client transport with JDBC Uri: jdbc:hive2://machine2.ambari.local:10000/;transportMode=binary: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0) )" data-bindattr-40693="40693"> Connection failed on host machine2.ambari.local:10000 (Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_thrift_port.py", line 212, in execute ldap_password=ldap_password) File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/hive_check.py", line 81, in check_thrift_port_sasl timeou... 
    

【问题讨论】:

  • 请将/var/log/hivemachine2.ambari.local下的日志添加到您的问题中
  • 那个目录下什么都没有:/
  • 好吧,Ambari 不会告诉你为什么进程不会启动...日志在那台机器上的某个地方。否则你可以尝试在 /usr/hdp/current/ 下手动运行 Hive 服务

标签: hadoop hive hortonworks-data-platform ambari


【解决方案1】:

这个问题有以下三个不同的问题

  1. Hiveserver2 警报:以下错误表明 machine2.ambari.local 上的端口 10000 不可访问,或者没有进程 (HiveServer2) 在端口 10000 上运行,或者存在一些代理问题。

    错误:无法使用 JDBC Uri 打开客户端传输:jdbc:hive2://machine2.ambari.local:10000/;transportMode=binary: java.net.ConnectException:连接被拒绝(连接被拒绝)

  2. 心跳丢失:问题中提到“机器上的心跳丢失”,这可能是因为ambari-agent 进程不再在通知心跳丢失的主机上运行。

  3. 删除pid并杀死进程后,默认不会自动重启。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多