当我开始配置单元时,出现以下错误:
C:\Users\user>hive
Connecting to jdbc:hive2://
2018-08-31 11:17:43,293 [main] INFO HiveConf:176 - Found configuration file fil
e:/E:/tweets/hadoop/hive2_1/conf/hive-site.xml
2018-08-31 11:17:48,668 [main] INFO HiveMetaStore:582 - 0: Opening raw store wi
th implementation class:org.apache.hadoop.hive.metastore.ObjectStore
2018-08-31 11:17:48,793 [main] INFO ObjectStore:397 - ObjectStore, initialize c
alled
2018-08-31 11:17:50,097 [main] INFO Persistence:77 - Property hive.metastore.in
tegral.jdo.pushdown unknown - will be ignored
2018-08-31 11:17:50,128 [main] INFO Persistence:77 - Property datanucleus.cache
.level2 unknown - will be ignored
2018-08-31 11:17:54,083 [main] INFO ObjectStore:520 - Setting MetaStore object
pin classes with hive.metastore.cache.pinobjtypes="Table,StorageDescriptor,SerDe
Info,Partition,Database,Type,FieldSchema,Order"
2018-08-31 11:18:01,194 [main] INFO MetaStoreDirectSql:145 - Using direct SQL,
underlying DB is MYSQL
2018-08-31 11:18:01,273 [main] INFO ObjectStore:311 - Initialized ObjectStore
2018-08-31 11:18:04,374 [main] INFO HiveMetaStore:669 - Added admin role in met
astore
2018-08-31 11:18:04,386 [main] INFO HiveMetaStore:678 - Added public role in me
tastore
2018-08-31 11:18:04,611 [main] INFO HiveMetaStore:718 - No user is added in adm
in role, since config is empty
2018-08-31 11:18:05,210 [main] INFO HiveMetaStore:752 - 0: get_all_functions
2018-08-31 11:18:05,241 [main] INFO audit:304 - ugi=user ip=unknown-ip-ad
dr cmd=get_all_functions
2018-08-31 11:18:10,062 [main] INFO SessionState:734 - Created HDFS directory:
/tmp/hive/user/a5b3d386-0711-4740-aaeb-9906a7b1fb05
2018-08-31 11:18:10,262 [main] INFO SessionState:734 - Created local directory:
C:/Users/user/AppData/Local/Temp/user/a5b3d386-0711-4740-aaeb-9906a7b1fb05
2018-08-31 11:18:10,371 [main] INFO SessionState:734 - Created HDFS directory:
/tmp/hive/user/a5b3d386-0711-4740-aaeb-9906a7b1fb05/_tmp_space.db
2018-08-31 11:18:10,481 [main] INFO SQLStdHiveAccessController:95 - Created SQL
StdHiveAccessController for session context : HiveAuthzSessionContext [sessionSt
ring=a5b3d386-0711-4740-aaeb-9906a7b1fb05, clientType=HIVESERVER2]
2018-08-31 11:18:10,481 [main] WARN SessionState:888 - METASTORE_FILTER_HOOK wi
ll be ignored, since hive.security.authorization.manager is set to instance of H
iveAuthorizerFactory.
2018-08-31 11:18:10,481 [main] INFO metastore:353 - Mestastore configuration hi
ve.metastore.filter.hook changed from org.apache.hadoop.hive.metastore.DefaultMe
taStoreFilterHookImpl to org.apache.hadoop.hive.ql.security.authorization.plugin
.AuthorizationMetaStoreFilterHook
2018-08-31 11:18:10,574 [main] INFO HiveMetaStore:752 - 0: Cleaning up thread l
ocal RawStore...
2018-08-31 11:18:10,574 [main] INFO audit:304 - ugi=user ip=unknown-ip-ad
dr cmd=Cleaning up thread local RawStore...
2018-08-31 11:18:10,574 [main] INFO HiveMetaStore:752 - 0: Done cleaning up thr
ead local RawStore
2018-08-31 11:18:10,590 [main] INFO audit:304 - ugi=user ip=unknown-ip-ad
dr cmd=Done cleaning up thread local RawStore
2018-08-31 11:18:12,038 [main] INFO CompositeService:170 - Operation log root d
irectory is created: C:\Users\user\AppData\Local\Temp\user\operation_logs
2018-08-31 11:18:12,054 [main] INFO CompositeService:108 - HiveServer2: Backgro
und operation thread pool size: 100
2018-08-31 11:18:12,054 [main] INFO CompositeService:110 - HiveServer2: Backgro
und operation thread wait queue size: 100
2018-08-31 11:18:12,054 [main] INFO CompositeService:113 - HiveServer2: Backgro
und operation thread keepalive time: 10 seconds
2018-08-31 11:18:12,116 [main] INFO AbstractService:89 - Service:OperationManag
er is inited.
2018-08-31 11:18:12,116 [main] INFO AbstractService:89 - Service:SessionManager
is inited.
2018-08-31 11:18:12,116 [main] INFO AbstractService:89 - Service:CLIService is
inited.
2018-08-31 11:18:12,116 [main] INFO AbstractService:104 - Service:OperationMana
ger is started.
2018-08-31 11:18:12,116 [main] INFO AbstractService:104 - Service:SessionManage
r is started.
2018-08-31 11:18:12,132 [main] INFO AbstractService:104 - Service:CLIService is
started.
2018-08-31 11:18:12,148 [main] INFO AbstractService:89 - Service:ThriftBinaryCL
IService is inited.
2018-08-31 11:18:12,163 [main] INFO ThriftCLIService:309 - Client protocol vers
ion: HIVE_CLI_SERVICE_PROTOCOL_V9
2018-08-31 11:18:12,320 [main] INFO SessionState:734 - Created HDFS directory:
/tmp/hive/user/af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:12,351 [main] INFO SessionState:734 - Created local directory:
C:/Users/user/AppData/Local/Temp/user/af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:12,413 [main] INFO SessionState:734 - Created HDFS directory:
/tmp/hive/user/af86a999-dee3-45fe-b2ec-e0cfa42b349e/_tmp_space.db
2018-08-31 11:18:12,429 [main] INFO HiveSessionImpl:298 - Operation log session
directory is created: C:\Users\user\AppData\Local\Temp\user\operation_logs\af86
a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:12,476 [main] INFO CompositeService:354 - Session opened, Sess
ionHandle [af86a999-dee3-45fe-b2ec-e0cfa42b349e], current sessions:1
2018-08-31 11:18:12,804 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:12,820 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:12,820 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:12,820 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
2018-08-31 11:18:12,835 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:12,851 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:12,851 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:12,851 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
Connected to: Apache Hive (version 2.1.1)
Driver: Hive JDBC (version 2.1.1)
2018-08-31 11:18:12,866 [main] WARN HiveConnection:1218 - Request to set autoCo
mmit to false; Hive does not support autoCommit=false.
Transaction isolation: TRANSACTION_REPEATABLE_READ
2018-08-31 11:18:13,259 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:13,259 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:13,352 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Operat
ion:72 - Putting temp output to file C:\Users\user\AppData\Local\Temp\user\af86a
999-dee3-45fe-b2ec-e0cfa42b349e2708865079021521037.pipeout and error output to f
ile C:\Users\user\AppData\Local\Temp\user\af86a999-dee3-45fe-b2ec-e0cfa42b349e52
3026556479086889.pipeout
2018-08-31 11:18:13,477 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:13,493 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
2018-08-31 11:18:13,524 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:13,524 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:13,524 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:13,540 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
2018-08-31 11:18:13,587 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:13,587 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:13,634 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:13,634 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
2018-08-31 11:18:13,712 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:13,712 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:13,712 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:13,712 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
2018-08-31 11:18:13,727 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:13,727 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:13,727 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:13,727 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
2018-08-31 11:18:13,743 [main] INFO HiveConf:3593 - Using the default value pas
sed in for log id: af86a999-dee3-45fe-b2ec-e0cfa42b349e
2018-08-31 11:18:13,743 [main] INFO SessionState:414 - Updating thread name to
af86a999-dee3-45fe-b2ec-e0cfa42b349e main
2018-08-31 11:18:13,743 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO HiveCo
nf:3593 - Using the default value passed in for log id: af86a999-dee3-45fe-b2ec-
e0cfa42b349e
2018-08-31 11:18:13,759 [af86a999-dee3-45fe-b2ec-e0cfa42b349e main] INFO Sessio
nState:425 - Resetting thread name to main
Beeline version 2.1.1 by Apache Hive
hive>
在hive-site.xml中,我已将hive.metastore.local值设置为false。 当我跑直线的时候,我就变得不可思议了。 我正在使用mysql并且创建了metastore_db javax.jdo.option.ConnectionURLjdbc:mysql:// localhost / metastore_db?createDatabaseIfNotExist = true 我应该进行更多配置吗?