在Windows上安装配置单元时出错

时间:2017-05-22 08:21:37

标签: hadoop hive installation

我正在尝试在windows上安装配置单元。我几乎完成了我的安装。但是在盯着配置单元命令时我得到了以下错误。

Error applying authorization policy on hive configuration: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Beeline version 2.1.1 by Apache Hive
Error applying authorization policy on hive configuration: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Connection is already closed.

这是我的hive-site.xml

<configuration>
 <property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost:3306/metastore?createDatabaseIfNotExist=true</value>
<description>metadata is stored in a MySQL server</description>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
<description>MySQL JDBC driver class</description>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hiveusera</value>
<description>user name for connecting to mysql server </description>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>hivepassword</value>
<description>password for connecting to mysql server </description>
</property>
<property>
 <name>hive.metastore.uris</name>
 <value>thrift://localhost:9083</value>
 <description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
  </property>
</configuration>

我使用MySQL作为我的hive的后端

我尝试了所有可能的解决方案删除* .lck,将mysql-connector-java-5.1.42-bin复制到/ lib

没有什么可以帮助我。

1 个答案:

答案 0 :(得分:0)

我得到了答案。我实际上错过了MySQL中我的元商店的架构。我现在添加它并且工作正常:)