簡體   English   中英

查詢返回非零代碼:1,原因:hive配置hive.root.logger不存在

[英]Query returned non-zero code: 1, cause: hive configuration hive.root.logger does not exists

我試圖運行HiveCLI(bin / hive)並且以下錯誤不允許Hive啟動:

Query returned non-zero code: 1, cause: hive configuration hive.root.logger does not exists.

這是整個調試消息:

Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/MyName/Tools/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.slf4j.impl.Log4jLoggerFactory]
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/MyName/Tools/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.slf4j.impl.Log4jLoggerFactory]
16/04/17 19:04:41 WARN conf.HiveConf: HiveConf of name hive.root.logger does not exist
16/04/17 19:04:41 [main]: WARN conf.HiveConf: HiveConf of name hive.root.logger does not exist

Logging initialized using configuration in file:/home/MyName/Tools/hive/conf/hive-log4j.properties
16/04/17 19:04:41 [main]: INFO SessionState: 
Logging initialized using configuration in file:/home/MyName/Tools/hive/conf/hive-log4j.properties
16/04/17 19:04:41 [main]: WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/04/17 19:04:41 [main]: INFO metastore.HiveMetaStore: 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
16/04/17 19:04:41 [main]: INFO metastore.ObjectStore: ObjectStore, initialize called
16/04/17 19:04:43 [main]: WARN conf.HiveConf: HiveConf of name hive.root.logger does not exist
16/04/17 19:04:43 [main]: INFO metastore.ObjectStore: Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,StorageDescriptor,SerDeInfo,Partition,Database,Type,FieldSchema,Order"
16/04/17 19:04:44 [main]: INFO metastore.MetaStoreDirectSql: Using direct SQL, underlying DB is DERBY
16/04/17 19:04:44 [main]: INFO metastore.ObjectStore: Initialized ObjectStore
16/04/17 19:04:45 [main]: INFO metastore.HiveMetaStore: Added admin role in metastore
16/04/17 19:04:45 [main]: INFO metastore.HiveMetaStore: Added public role in metastore
16/04/17 19:04:45 [main]: INFO metastore.HiveMetaStore: No user is added in admin role, since config is empty
16/04/17 19:04:45 [main]: INFO metastore.HiveMetaStore: 0: get_all_databases
16/04/17 19:04:45 [main]: INFO HiveMetaStore.audit: ugi=MyName  ip=unknown-ip-addr  cmd=get_all_databases   
16/04/17 19:04:45 [main]: INFO metastore.HiveMetaStore: 0: get_functions: db=default pat=*
16/04/17 19:04:45 [main]: INFO HiveMetaStore.audit: ugi=MyName  ip=unknown-ip-addr  cmd=get_functions: db=default pat=* 
16/04/17 19:04:45 [main]: INFO session.SessionState: Created local directory: /home/MyName/Tools/hive/tmp/cc9ad134-429c-4223-804e-d8ca1cfcbde8_resources
16/04/17 19:04:46 [main]: INFO session.SessionState: Created HDFS directory: /tmp/hive/MyName/cc9ad134-429c-4223-804e-d8ca1cfcbde8
16/04/17 19:04:46 [main]: INFO session.SessionState: Created local directory: /home/MyName/Tools/hive/MyName/cc9ad134-429c-4223-804e-d8ca1cfcbde8
16/04/17 19:04:46 [main]: INFO session.SessionState: Created HDFS directory: /tmp/hive/MyName/cc9ad134-429c-4223-804e-d8ca1cfcbde8/_tmp_space.db
16/04/17 19:04:46 [main]: INFO SessionState: Added [/home/MyName/Tools/hive/lib/json-serde.jar] to class path
16/04/17 19:04:46 [main]: INFO SessionState: Added resources: [/home/MyName/Tools/hive/lib/json-serde.jar]
16/04/17 19:04:46 [main]: INFO SessionState: Added [/home/MyName/Tools/hive/lib/json-udf.jar] to class path
16/04/17 19:04:46 [main]: INFO SessionState: Added resources: [/home/MyName/Tools/hive/lib/json-udf.jar]
Query returned non-zero code: 1, cause: hive configuration hive.root.logger does not exists.

誰知道它會是什么?

問題是使用以下命令在〜/ .hiverc中的文件: SET hive.root.logget=DEBUG 刪除該行,Hive運行沒有問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM