当前位置:   article > 正文

org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version, Cause:Table ‘hive.

org.apache.hadoop.hive.metastore.hivemetaexception: failed to get schema ver

CDH报错:org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version, Cause:Table ‘hive.VERSION’ doesn’t exist

编辑
需要初始化一下数据,进入到hive.site.xml配置文件中,添加如下内容


<property>
      <name>javax.jdo.option.ConnectionURL</name>
      <value>jdbc:mysql://172.31.108.36:3306/hive</value>
  </property>
  <property>
      <name>javax.jdo.option.ConnectionDriverName</name>
      <value>com.mysql.jdbc.Driver</value>
  </property>
  <property>
      <name>javax.jdo.option.ConnectionUserName</name>
      <value>root</value>
  </property>
  <property>
      <name>javax.jdo.option.ConnectionPassword</name>
      <value>root</value>
  </property>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

之后进入/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/lib/hive/bin目录下执行
./schematool -dbType mysql -initSchema
参考报错:org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/803117
推荐阅读
相关标签
  

闽ICP备14008679号