今天在hive中查询了一个简单的select count(*) from table,结果报错
WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Conside
查了一些资料,只要vim /etc/hosts
将你配置的集群hosts都写上去就好了.

然后再重新启动hive/beeline,执行命令即可
本文介绍了在使用Hive进行简单查询时报错的问题,并提供了解决方案:通过编辑/etc/hosts文件添加集群hosts来解决Hive-on-MR的警告。
今天在hive中查询了一个简单的select count(*) from table,结果报错
WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Conside
查了一些资料,只要vim /etc/hosts
将你配置的集群hosts都写上去就好了.

然后再重新启动hive/beeline,执行命令即可
468
5351
9285
1万+