如何修复表'metastore.VERSION'不存在

时间:2019-05-19 21:39:53

标签: mysql hadoop hive

我正在设置hiveserver,并尝试启动hive --service metasore。我得到一些错误。我在下面给出了hive-site.xml和错误信息。任何帮助,将不胜感激。谢谢

2019-05-19 23:11:14:启动Hive Metastore Server SLF4J:类路径包含多个SLF4J绑定。 SLF4J:在[jar:file:/usr/local/hive/apache-hive-3.1.1-bin/lib/log4j-slf4j-impl-2.10.0.jar!/ org / slf4j / impl / StaticLoggerBinder中找到绑定。类] SLF4J:在[jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]中找到绑定 SLF4J:有关说明,请参见http://www.slf4j.org/codes.html#multiple_bindings。 SLF4J:实际绑定的类型为[org.apache.logging.slf4j.Log4jLoggerFactory] 正在加载类com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'。通过SPI自动注册驱动程序,通常不需要手动加载驱动程序类。 MetaException(message:执行查询时抛出的异常:SELECT'org.apache.hadoop.hive.metastore.model.MVersionTable'AS NUCLEUS_TYPEA0SCHEMA_VERSIONA0VERSION_COMMENTA0VER_ID来自VERSION A0)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler。(RetryingHMSHandler.java:84)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:93)     在org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8661)     在org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8656)     在org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8926)     在org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8843)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.apache.hadoop.util.RunJar.run(RunJar.java:318)     在org.apache.hadoop.util.RunJar.main(RunJar.java:232) 由以下原因引起:MetaException(执行查询时抛出的异常:SELECT'org.apache.hadoop.hive.metastore.model.MVersionTable'AS NUCLEUS_TYPEA0SCHEMA_VERSION,{{ 1}}。A0VERSION_COMMENTA0来自VER_ID VERSION)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:208)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:108)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler。(RetryingHMSHandler.java:80)     ...另外11个 由以下原因引起:javax.jdo.JDOException:执行查询时引发异常:SELECT'org.apache.hadoop.hive.metastore.model.MVersionTable'AS A0NUCLEUS_TYPEA0SCHEMA_VERSIONA0VERSION_COMMENTA0来自VER_ID VERSION NestedThrowables: java.sql.SQLSyntaxErrorException:表'metastore.VERSION'不存在     在org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:677)     在org.datanucleus.api.jdo.JDOQuery.executeInternal(JDOQuery.java:391)     在org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:216)     在org.apache.hadoop.hive.metastore.ObjectStore.getMSchemaVersion(ObjectStore.java:9101)     在org.apache.hadoop.hive.metastore.ObjectStore.getMetaStoreSchemaVersion(ObjectStore.java:9085)     在org.apache.hadoop.hive.metastore.ObjectStore.checkSchema(ObjectStore.java:9042)     在org.apache.hadoop.hive.metastore.ObjectStore.verifySchema(ObjectStore.java:9027)     在sun.reflect.GeneratedMethodAccessor3.invoke(未知来源)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:97)     com.sun.proxy。$ Proxy25.verifySchema(未知来源)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.getMSForConf(HiveMetaStore.java:697)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.getMS(HiveMetaStore.java:690)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.createDefaultDB(HiveMetaStore.java:773)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.init(HiveMetaStore.java:538)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:147)     ...另外13个 原因:java.sql.SQLSyntaxErrorException:表'metastore.VERSION'不存在     在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)     在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)     在com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)     在com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:955)     在com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1005)     在com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)     在com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)     在org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeQuery(ParamLoggingPreparedStatement.java:375)     在org.datanucleus.store.rdbms.SQLController.executeStatementQuery(SQLController.java:552)     在org.datanucleus.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:617)     在org.datanucleus.store.query.Query.executeQuery(Query.java:1855)     在org.datanucleus.store.query.Query.executeWithArray(Query.java:1744)     在org.datanucleus.store.query.Query.execute(Query.java:1726)     在org.datanucleus.api.jdo.JDOQuery.executeInternal(JDOQuery.java:374)     ...另外32个 线程“主”中的异常MetaException(消息:执行查询时引发的异常:SELECT'org.apache.hadoop.hive.metastore.model.MVersionTable'AS A0NUCLEUS_TYPEA0SCHEMA_VERSIONA0VERSION_COMMENTA0来自VER_ID VERSION)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler。(RetryingHMSHandler.java:84)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:93)     在org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8661)     在org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:8656)     在org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8926)     在org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8843)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.apache.hadoop.util.RunJar.run(RunJar.java:318)     在org.apache.hadoop.util.RunJar.main(RunJar.java:232) 由以下原因引起:MetaException(执行查询时抛出的异常:SELECT'org.apache.hadoop.hive.metastore.model.MVersionTable'AS A0NUCLEUS_TYPEA0,{{ 1}}。SCHEMA_VERSIONA0VERSION_COMMENT来自A0 VER_ID)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:208)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:108)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler。(RetryingHMSHandler.java:80)     ...另外11个 由以下原因引起:javax.jdo.JDOException:执行查询时引发异常:SELECT'org.apache.hadoop.hive.metastore.model.MVersionTable'AS VERSIONA0NUCLEUS_TYPEA0SCHEMA_VERSIONA0VERSION_COMMENT来自A0 VER_ID NestedThrowables: java.sql.SQLSyntaxErrorException:表'metastore.VERSION'不存在     在org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:677)     在org.datanucleus.api.jdo.JDOQuery.executeInternal(JDOQuery.java:391)     在org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:216)     在org.apache.hadoop.hive.metastore.ObjectStore.getMSchemaVersion(ObjectStore.java:9101)     在org.apache.hadoop.hive.metastore.ObjectStore.getMetaStoreSchemaVersion(ObjectStore.java:9085)     在org.apache.hadoop.hive.metastore.ObjectStore.checkSchema(ObjectStore.java:9042)     在org.apache.hadoop.hive.metastore.ObjectStore.verifySchema(ObjectStore.java:9027)     在sun.reflect.GeneratedMethodAccessor3.invoke(未知来源)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:97)     com.sun.proxy。$ Proxy25.verifySchema(未知来源)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.getMSForConf(HiveMetaStore.java:697)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.getMS(HiveMetaStore.java:690)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.createDefaultDB(HiveMetaStore.java:773)     在org.apache.hadoop.hive.metastore.HiveMetaStore $ HMSHandler.init(HiveMetaStore.java:538)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:147)     ...另外13个 原因:java.sql.SQLSyntaxErrorException:表'metastore.VERSION'不存在     在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)     在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)     在com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)     在com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:955)     在com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1005)     在com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)     在com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)     在org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeQuery(ParamLoggingPreparedStatement.java:375)     在org.datanucleus.store.rdbms.SQLController.executeStatementQuery(SQLController.java:552)     

0 个答案:

没有答案