问题描述:hive 关于告警问题的解决:WARN [main] conf.HiveConf (HiveConf.java:initialize(1488)) - DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.
[root@master neo4j]# hive -S -e " " > data.csv
[root@master neo4j]# cat data.csv
2015-01-12 09:42:51,812 WARN [main] conf.HiveConf (HiveConf.java:initialize(1488)) - DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.
问题原因:在0.10 0.11或者之后的HIVE版本 hive.metastore.local 属性不再使用。
解决办法:在hive-site.xml 在配置文件里面找到:
<property>
<name>hive.metastore.local</name>
<value>false</value>
<description>controls whether to connect to remove metastore server or open a new metastore server in Hive Client JVM</description>
</property>
将其删除掉。再次登录 警告就消失了,不用重启即可。
注:只针对修改的机器生效,要让集群生效,需要删除集群所有机器的配置。