美文网首页
hive命令行执行报错:semanticexception or

hive命令行执行报错:semanticexception or

作者: Victor_bigdata | 来源:发表于2019-09-30 14:40 被阅读0次

hive命令行执行show databases 报错如下

解决办法

第一步: find / -name hive-site.xml 找到文件路径,并将此文件备份

第二步: 将hive-site.xml内容替换为下面的文件内容 Hive Metastore Server 替换为对应服务部署的机器ip

<?xml version="1.0" encoding="UTF-8"?>

<!--Autogenerated by Cloudera Manager-->
<configuration>
  <property>
    <name>hive.metastore.uris</name>
    <value>thrift://Hive Metastore Server :9083</value>
  </property>
  <property>
    <name>hive.metastore.client.socket.timeout</name>
    <value>300</value>
  </property>
  <property>
    <name>hive.metastore.warehouse.dir</name>
    <value>/user/hive/warehouse</value>
  </property>
</configuration>

第三步: ps -aux | grep 'metastore' 查找metastore服务,并kill掉

第四步:重启metastore服务 hive --service metastore &

第五步: hive链接,并测试 show databases;

相关文章

网友评论

      本文标题:hive命令行执行报错:semanticexception or

      本文链接:https://www.haomeiwen.com/subject/bfdkuctx.html