关于hiveserver2启动的问题

本地hive可以启动,但是hiveserver2无法启动,启动hiveserver2需要配置hive-site.xml吗?还有需要kerberos验证吗?

************************************************************/
2015-09-21 13:51:39,386 INFO [main]: server.HiveServer2 (HiveServer2.java:startHiveServer2(339)) - Starting HiveServer2
2015-09-21 13:51:40,590 WARN [main]: util.NativeCodeLoader (NativeCodeLoader.java:(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2015-09-21 13:51:44,247 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:newRawStore(589)) - 0: Opening raw store with implemenation class:org.apache.hadoop.hive.metastore.ObjectStore
2015-09-21 13:51:44,551 INFO [main]: metastore.ObjectStore (ObjectStore.java:initialize(289)) - ObjectStore, initialize called
2015-09-21 13:51:50,793 INFO [main]: metastore.ObjectStore (ObjectStore.java:getPMF(370)) - Setting MetaStore object pin classes with hive.metastore.cache.pinobjtypes="Table,StorageDescriptor,SerDeInfo,Partition,Database,Type,FieldSchema,Order"
2015-09-21 13:51:55,856 INFO [main]: metastore.MetaStoreDirectSql (MetaStoreDirectSql.java:(139)) - Using direct SQL, underlying DB is DERBY
2015-09-21 13:51:55,866 INFO [main]: metastore.ObjectStore (ObjectStore.java:setConf(272)) - Initialized ObjectStore
2015-09-21 13:51:56,799 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:createDefaultRoles_core(663)) - Added admin role in metastore
2015-09-21 13:51:56,806 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:createDefaultRoles_core(672)) - Added public role in metastore
2015-09-21 13:51:56,953 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:addAdminUsers_core(712)) - No user is added in admin role, since config is empty
2015-09-21 13:51:57,629 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(746)) - 0: get_all_databases
2015-09-21 13:51:57,643 INFO [main]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(371)) - ugi=hadoop ip=unknown-ip-addr cmd=get_all_databases

2015-09-21 13:51:57,712 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(746)) - 0: get_functions: db=default pat=*
2015-09-21 13:51:57,713 INFO [main]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(371)) - ugi=hadoop ip=unknown-ip-addr cmd=get_functions: db=default pat=*
2015-09-21 13:52:01,499 INFO [main]: session.SessionState (SessionState.java:createPath(641)) - Created local directory: /home/hadoop/hadoop/hive-1.2.1/tmp/resources
2015-09-21 13:52:01,739 INFO [main]: session.SessionState (SessionState.java:createPath(641)) - Created HDFS directory: /tmp/hive/hadoop/ffb077d3-2845-47db-ae17-0436583484d7
2015-09-21 13:52:01,775 INFO [main]: session.SessionState (SessionState.java:createPath(641)) - Created local directory: /home/hadoop/hadoop/hive-1.2.1/tmp/ffb077d3-2845-47db-ae17-0436583484d7
2015-09-21 13:52:01,788 INFO [main]: session.SessionState (SessionState.java:createPath(641)) - Created HDFS directory: /tmp/hive/hadoop/ffb077d3-2845-47db-ae17-0436583484d7/_tmp_space.db
2015-09-21 13:52:04,648 INFO [main]: service.CompositeService (SessionManager.java:initOperationLogRootDir(135)) - Operation log root directory is created: /home/hadoop/hadoop/hive-1.2.1/tmp/operation_logs
2015-09-21 13:52:04,655 INFO [main]: service.CompositeService (SessionManager.java:createBackgroundOperationPool(90)) - HiveServer2: Background operation thread pool size: 100
2015-09-21 13:52:04,655 INFO [main]: service.CompositeService (SessionManager.java:createBackgroundOperationPool(92)) - HiveServer2: Background operation thread wait queue size: 100
2015-09-21 13:52:04,655 INFO [main]: service.CompositeService (SessionManager.java:createBackgroundOperationPool(95)) - HiveServer2: Background operation thread keepalive time: 10 seconds
2015-09-21 13:52:04,714 INFO [main]: service.AbstractService (AbstractService.java:init(89)) - Service:OperationManager is inited.
2015-09-21 13:52:04,714 INFO [main]: service.AbstractService (AbstractService.java:init(89)) - Service:SessionManager is inited.
2015-09-21 13:52:04,714 INFO [main]: service.AbstractService (AbstractService.java:init(89)) - Service:CLIService is inited.
2015-09-21 13:52:04,714 INFO [main]: service.AbstractService (AbstractService.java:init(89)) - Service:ThriftBinaryCLIService is inited.
2015-09-21 13:52:04,714 INFO [main]: service.AbstractService (AbstractService.java:init(89)) - Service:HiveServer2 is inited.
2015-09-21 13:52:04,715 INFO [main]: service.AbstractService (AbstractService.java:start(104)) - Service:OperationManager is started.
2015-09-21 13:52:04,715 INFO [main]: service.AbstractService (AbstractService.java:start(104)) - Service:SessionManager is started.
2015-09-21 13:52:04,716 INFO [main]: service.AbstractService (AbstractService.java:start(104)) - Service:CLIService is started.
2015-09-21 13:52:04,718 INFO [main]: metastore.ObjectStore (ObjectStore.java:initialize(289)) - ObjectStore, initialize called
2015-09-21 13:52:04,766 INFO [main]: metastore.MetaStoreDirectSql (MetaStoreDirectSql.java:(139)) - Using direct SQL, underlying DB is DERBY
2015-09-21 13:52:04,767 INFO [main]: metastore.ObjectStore (ObjectStore.java:setConf(272)) - Initialized ObjectStore
2015-09-21 13:52:04,767 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(746)) - 0: get_databases: default
2015-09-21 13:52:04,769 INFO [main]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(371)) - ugi=hadoop ip=unknown-ip-addr cmd=get_databases: default

2015-09-21 13:52:04,796 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(746)) - 0: Shutting down the object store...
2015-09-21 13:52:04,799 INFO [main]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(371)) - ugi=hadoop ip=unknown-ip-addr cmd=Shutting down the object store...

2015-09-21 13:52:04,800 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(746)) - 0: Metastore shutdown complete.
2015-09-21 13:52:04,800 INFO [main]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(371)) - ugi=hadoop ip=unknown-ip-addr cmd=Metastore shutdown complete.

2015-09-21 13:52:04,800 INFO [main]: service.AbstractService (AbstractService.java:start(104)) - Service:ThriftBinaryCLIService is started.
2015-09-21 13:52:04,800 INFO [main]: service.AbstractService (AbstractService.java:start(104)) - Service:HiveServer2 is started.
2015-09-21 13:52:05,802 INFO [Thread-11]: thrift.ThriftCLIService (ThriftBinaryCLIService.java:run(98)) - Starting ThriftBinaryCLIService on port 10000 with 5...500 worker threads
2015-09-21 13:52:07,476 INFO [org.apache.hadoop.util.JvmPauseMonitor$Monitor@52bd9a27]: util.JvmPauseMonitor (JvmPauseMonitor.java:run(193)) - Detected pause in JVM or host machine (eg GC): pause of approximately 1051ms
No GCs detected

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问