- 运行环境为: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