• <bdo id='1nsxA'></bdo><ul id='1nsxA'></ul>
      <tfoot id='1nsxA'></tfoot>

    1. <i id='1nsxA'><tr id='1nsxA'><dt id='1nsxA'><q id='1nsxA'><span id='1nsxA'><b id='1nsxA'><form id='1nsxA'><ins id='1nsxA'></ins><ul id='1nsxA'></ul><sub id='1nsxA'></sub></form><legend id='1nsxA'></legend><bdo id='1nsxA'><pre id='1nsxA'><center id='1nsxA'></center></pre></bdo></b><th id='1nsxA'></th></span></q></dt></tr></i><div id='1nsxA'><tfoot id='1nsxA'></tfoot><dl id='1nsxA'><fieldset id='1nsxA'></fieldset></dl></div>

      <small id='1nsxA'></small><noframes id='1nsxA'>

        <legend id='1nsxA'><style id='1nsxA'><dir id='1nsxA'><q id='1nsxA'></q></dir></style></legend>

        Hive 2.1.1 MetaException(消息:在 Metastore 中找不到版本信息.)

        Hive 2.1.1 MetaException(message:Version information not found in metastore. )(Hive 2.1.1 MetaException(消息:在 Metastore 中找不到版本信息.))

        <small id='LLi5Z'></small><noframes id='LLi5Z'>

        • <legend id='LLi5Z'><style id='LLi5Z'><dir id='LLi5Z'><q id='LLi5Z'></q></dir></style></legend>

          • <bdo id='LLi5Z'></bdo><ul id='LLi5Z'></ul>
          • <i id='LLi5Z'><tr id='LLi5Z'><dt id='LLi5Z'><q id='LLi5Z'><span id='LLi5Z'><b id='LLi5Z'><form id='LLi5Z'><ins id='LLi5Z'></ins><ul id='LLi5Z'></ul><sub id='LLi5Z'></sub></form><legend id='LLi5Z'></legend><bdo id='LLi5Z'><pre id='LLi5Z'><center id='LLi5Z'></center></pre></bdo></b><th id='LLi5Z'></th></span></q></dt></tr></i><div id='LLi5Z'><tfoot id='LLi5Z'></tfoot><dl id='LLi5Z'><fieldset id='LLi5Z'></fieldset></dl></div>
            <tfoot id='LLi5Z'></tfoot>
                  <tbody id='LLi5Z'></tbody>

                  本文介绍了Hive 2.1.1 MetaException(消息:在 Metastore 中找不到版本信息.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 Ubuntu 16.04 上运行 Hadoop 2.7.3、MySQL 5.7.17 和 Hive 2.1.1.

                  I'm running Hadoop 2.7.3, MySQL 5.7.17 and Hive 2.1.1 on Ubuntu 16.04.

                  当我运行 ./hive 时,我不断收到以下警告和异常:

                  When I run ./hive, I keep getting the following warning and exception:

                  SLF4J: Class path contains multiple SLF4J bindings.
                  SLF4J: Found binding in [jar:file:/home/server/hive/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
                  SLF4J: Found binding in [jar:file:/home/server/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
                  SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
                  SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
                  
                  Logging initialized using configuration in jar:file:/home/server/hive/lib/hive-common-2.1.1.jar!/hive-log4j2.properties Async: true
                  Mon Feb 13 12:01:41 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:41 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:41 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:41 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:42 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:42 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:42 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Mon Feb 13 12:01:42 EST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
                  Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
                      at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:591)
                      at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:531)
                      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:705)
                      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:498)
                      at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
                      at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
                  Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
                      at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:226)
                      at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:366)
                      at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:310)
                      at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:290)
                      at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:266)
                      at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:558)
                      ... 9 more
                  Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
                      at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1654)
                      at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:80)
                      at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:130)
                      at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:101)
                      at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3367)
                      at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3406)
                      at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3386)
                      at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3640)
                      at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:236)
                      at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:221)
                      ... 14 more
                  Caused by: java.lang.reflect.InvocationTargetException
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                      at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1652)
                      ... 23 more
                  Caused by: MetaException(message:Version information not found in metastore. )
                      at org.apache.hadoop.hive.metastore.ObjectStore.checkSchema(ObjectStore.java:7753)
                      at org.apache.hadoop.hive.metastore.ObjectStore.verifySchema(ObjectStore.java:7731)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:498)
                      at org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:101)
                      at com.sun.proxy.$Proxy21.verifySchema(Unknown Source)
                      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:565)
                      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:626)
                      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:416)
                      at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:78)
                      at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)
                      at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6490)
                      at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:238)
                      at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70)
                      ... 28 more
                  

                  这是我的 hive-site.xml

                  Here is my hive-site.xml

                  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                   <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
                   <configuration>
                  
                       <property>
                           <name>javax.jdo.option.ConnectionURL</name>
                           <value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true</value>
                       </property>
                  
                  
                       <property>
                           <name>javax.jdo.option.ConnectionDriverName</name>
                           <value>com.mysql.jdbc.Driver</value>
                       </property>
                  
                       <property>
                           <name>javax.jdo.option.ConnectionUserName</name>
                           <value>hive</value>
                       </property>
                  
                       <property>
                           <name>javax.jdo.option.ConnectionPassword</name>
                           <value>password</value>
                       </property>
                  
                   </configuration>
                  

                  为了修复错误,我尝试了 Hive 无法实例化 org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 和 无法实例化 org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.但我仍然遇到相同的例外情况.

                  In order to fix the error, I've tried Hive Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient and Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient. But I am still getting the same exceptions.

                  我是 Hadoop 和 Hive 的新手,我该如何修复异常?谢谢!

                  I'm newbie to Hadoop and Hive, how could I fix the exception? Thanks!

                  推荐答案

                  在 MySQL 中缺少 Metastore 所需的必要表.手动创建表并重新启动 hive Metastore.

                  The necessary tables required for the metastore are missing in MySQL. Manually create the tables and restart hive metastore.

                  MySQL 的模式文件将在路径 $HIVE_HOME/scripts/metastore/upgrade/mysql/ 下可用.

                  The schema files for MySQL will be available under the path $HIVE_HOME/scripts/metastore/upgrade/mysql/.

                  cd $HIVE_HOME/scripts/metastore/upgrade/mysql/
                  
                  < Login into MySQL >
                  
                  mysql> drop database IF EXISTS hive;
                  mysql> create database hive;
                  mysql> use hive;
                  mysql> source hive-schema-2.1.1.mysql.sql;
                  

                  重启 Hive Metastore.

                  Restart Hive metastore.

                  这篇关于Hive 2.1.1 MetaException(消息:在 Metastore 中找不到版本信息.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                1. <i id='EB7o5'><tr id='EB7o5'><dt id='EB7o5'><q id='EB7o5'><span id='EB7o5'><b id='EB7o5'><form id='EB7o5'><ins id='EB7o5'></ins><ul id='EB7o5'></ul><sub id='EB7o5'></sub></form><legend id='EB7o5'></legend><bdo id='EB7o5'><pre id='EB7o5'><center id='EB7o5'></center></pre></bdo></b><th id='EB7o5'></th></span></q></dt></tr></i><div id='EB7o5'><tfoot id='EB7o5'></tfoot><dl id='EB7o5'><fieldset id='EB7o5'></fieldset></dl></div>

                      <tbody id='EB7o5'></tbody>

                      <small id='EB7o5'></small><noframes id='EB7o5'>

                          <legend id='EB7o5'><style id='EB7o5'><dir id='EB7o5'><q id='EB7o5'></q></dir></style></legend>
                          <tfoot id='EB7o5'></tfoot>

                            <bdo id='EB7o5'></bdo><ul id='EB7o5'></ul>