啟動hive2.1.1遇到的異常,Caused by: MetaException(message:Version information not found in metastore. )
hive2.1.1安裝好之後,修改conf下面的東西,cp hive-log4j2.properties.template hive-log4j2.properties
拷貝一份重新命名
然後使用schematool初始化hive,執行schematool -dbType derby -initSchema
進行初始化
之後輸入hive命令啟動hive,
第一次我在我的/root/apache-hive-2.1.2-bin目錄下初始化,然後執行hive命令,hive shell正常啟動。
然後我退出hive shell,回到/root目錄,重新執行hive,提示:
which: no hbase in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.7.0_79/bin:/usr/java/jdk1.7.0_79/jre/bin:/root/hadoop-2.7.3/bin:/root/bin:/root/apache-hive-2.1.1-bin/bin) SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/root/apache-hive-2.1.1-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/root/hadoop-2.7.3/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 file:/root/apache-hive-2.1.1-bin/conf/hive-log4j2.properties Async: true 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:101) at com.sun.proxy.$Proxy20.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
當我再次回到/root/apache-hive-2.1.2-bin目錄,執行hive,hive又可以正常運行了。
[[email protected] apache-hive-2.1.1-bin]# hive which: no hbase in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.7.0_79/bin:/usr/java/jdk1.7.0_79/jre/bin:/root/hadoop-2.7.3/bin:/root/bin:/root/apache-hive-2.1.1-bin/bin) SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/root/apache-hive-2.1.1-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/root/hadoop-2.7.3/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 file:/root/apache-hive-2.1.1-bin/conf/hive-log4j2.properties Async: true Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. tez, spark) or using Hive 1.X releases. hive>
奇葩,我只是把我發現的現象寫了除了,具體是怎麼造成的目前我還不知道,因為我還是個初學者。
相關推薦
啟動hive2.1.1遇到的異常,Caused by: MetaException(message:Version information not found in metastore. )
hive2.1.1安裝好之後,修改conf下面的東西,cp hive-log4j2.properties.template hive-log4j2.properties拷貝一份重新命名 然後使用schematool初始化hive,執行schematool -dbType d
hive1.1 啟動異常 :Caused by: MetaException(message:Version information not found in metastore. )
配置完成Mysql儲存元資料資訊,啟動異常:Caused by: MetaException(message:Version information not found in metastore. Exception in thread "main" java
SpringBoot整合Druid連線池,Caused by: java.lang.ClassNotFoundException: org.apache.log4j
github:https://github.com/alibaba/druid SpringBoot版本:1.5.9.RELEASE 預設使用的日誌框架為log4j2 在配置 Druid 資料監控時,進行了如下配置 # 配置監控統計攔截的filters,去掉後
weblgoic異常之 Caused by: java.lang.OutOfMemoryError: PermGen space
1.異常描述 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodA
MySQL異常:Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request
model out exec actions tracing ror pda tin dsta Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to ti
異常:Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
說明專案沒有載入jar包 異常:Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext 解決方案:對著工程點右鍵-
weblogic異常 之 Caused by: java.io.IOException: [DeploymentService:290066]Error occurred while download
/weblogic/jdk1.7.0_67//bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=128m -Dweblogic.Name=server_7004 -Djava.security.polic
安裝phalcon時,啟動php-fpm報錯Class 'psr\container\containerinterface' not found in Unknown on line 0
今天新虛擬機器安裝了phalcon 4.0,一切編譯都順利,當php.ini新增extension=phalcon.so後,重啟php-fpm時,報如下錯誤: 出錯後,開始在度娘上找資料,但度娘真心資料太少,毫無進展,沒辦法,只能去找谷歌,立馬就有一大堆相關的文章,一句話點醒了我: 原來是phal
hive和hbase整合,Caused by: java.lang.ClassNotFoundException
Hive-1.2.1與HBase-1.1.2的整合 這裡的整合是指,將HBase作為儲存資料的庫,由Hive作為連線橋樑 在Hive中建立表時,出現了 FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.q
APUE學習第二天(1)——雙系統重灌Ubuntu出現:error file not found. grub rescue之grub修復
昨天把etc/的許可權搞亂了,決定重灌系統(換成Ubuntu12.04)。但昨晚重灌之後,windows的正版驗證失效了,久試無果,這個以後在修復吧,當務之急是把Ubuntu系統調好。因為重灌Ubuntu之後是開機linux引導windows,圖省事,又想用easyBCD在
Hibernate異常Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set
一:異常截圖 二:我的實體@Entity @Table(name = "p_user") public class User extends AbstractEntity { @Id @Gen
Maven異常處理 Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.在mvn install打包安裝到本地
es異常:Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses
在網上看到的是在yml檔案新增 index.query.bool.max_clause_count: 10240 我新增後重啟,使用./elasticsearch啟動報錯 我的es是5.2.2版本,遂用他的這個,成功啟動了 indices.query.bool.m
sql執行拋異常:Caused by: net.sf.jsqlparser.parser.ParseException
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 3, column 11.Was expecting one of: <EOF>
Caused by: java.lang.RuntimeException: Could not generate DH keypair異常處理
一、換新版本JDK7。 二、下載下面兩個jar,並放在你的jdk路徑ext下(我的是C:\Program Files\Java\jdk1.6.0_45\jre\lib\ext),並修改C:\Program Files\Java\jdk1.6.0_45\jre\lib\sec
微信小程式——自定義元件時,編譯報`Component is not found in path '...'`
問題描述: 在微信小程式中自定義元件時,編譯報Component is not found in path '...' VM4941:1 jsEnginScriptError Component is not found in path "components/watermark
【docker報錯】starting container process caused "exec: \"-P8080:8080\": executable file not found in $PATH".
docker建立tomcat容器報錯: [[email protected] ~]# docker run -di --name=tomcat tomcat:latest -P8080:80806ff68159042bf87347bc9570d4ab8151fe8ff3b5bc60333718f6
maven配置,以及專案"Dependency 'xxxx‘ not found"解決過程
maven安裝 1.下載maven檔案 地址 2.解壓好就可以了,無需安裝, 3.修改下面配置檔案 配置環境變數:(和配置jdk一樣) 檢查配置成功沒有:直接cmd: mvn -version ideal配置maven fi
starting container process caused "exec: \"nvidia-smi\": executable file not found in $PATH"
1、問題描述: 我在安裝好了nvidia-docker之後,按照網上的教程執行: #nvidia-docker run --rm nvidia/cuda nvidia-smi 結果報如下錯誤: container_linux.go:247: starting container proc
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
在驗證碼的顯示問題出現如下錯誤: Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment 修改