寰宇壹梦 2019-04-19 10:43 采纳率: 0%
浏览 594

hive执行sql报错【The value of property yarn.resourcemanager.zk-address must not be null】

  • 运行环境为:ha的hadoop集群,ha的yarn(已经配置zookeeper地址:yarn.resourcemanager.zk-address),hadoop版本:hadoop-3.2.0,hive版本:hive-3.1.1。
  • zookeeper、hadoop全部正常启动,web管理页面访正常。
  • 进入hive客户端后,执行不需要MapReduce的sql正常;
  • 第一次执行需要MapReduce的sql正常;
  • 再次执行相同sql,报错,信息如下:
hive (test_db_1)> select count(1) from test_table_1;
Query ID = root_20190419102110_1603215d-f444-4554-b86a-ba5f1f54b88c
Total jobs = 1
Launching Job 1 out of 1
FAILED: Hive Internal Error: java.lang.IllegalArgumentException(The value of property yarn.resourcemanager.zk-address must not be null)
java.lang.IllegalArgumentException: The value of property yarn.resourcemanager.zk-address must not be null
  • quit;退出hive客户端重新进入,现象一致,第一次正常,第二次报错。
  • 确认已经在yarn-site.xml中配置yarn.resourcemanager.zk-address
  • 写回答

1条回答 默认 最新

  • 关注

    解决了吗,我也遇到了同样的问题!!是hadoop3.1.1 hive3.1.2

    评论

报告相同问题?