关于hiveserver2启动的问题

问题描述

关于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

时间: 2024-12-05 10:27:05

关于hiveserver2启动的问题的相关文章

原来MaxCompute还能这么玩系列(2)—— 利用HiveServer2 Proxy实现MaxCompute与Hive生态工具的互通

注:MaxCompute原名ODPS,是阿里云自研的大数据计算平台,文中出现的MaxCompute与ODPS都指代同一平台,不做区分 什么是Hive Hive是一款经典的hadoop技术栈的数仓软件,可以让用户采用SQL来完成大数据量的计算分析.如果你对Hive还不熟悉,请移步Apache Hive官网获取进一步了解.MaxCompute在很多功能上与Hive相近,所以大部分MaxCompute的用户曾经也是Hive的用户. 什么是HiveServer2 既然提到HiveServer2,那得先介

HiveServer2中使用jdbc客户端用户运行mapreduce

最近做了个web系统访问hive数据库,类似于官方自带的hwi.安居客的hwi改进版和大众点评的polestar(github地址)系统,但是和他们的实现不一样,查询Hive语句走的不是cli而是通过jdbc连接hive-server2.为了实现mapreduce任务中资源按用户调度,需要hive查询自动绑定当前用户.将该用户传到yarn服务端并使mapreduce程序以该用户运行.本文主要是记录实现该功能过程中遇到的一些问题以及解决方法,如果你有更好的方法和建议,欢迎留言发表您的看法! 说明

jdbc-JDBC连接hive连接超时

问题描述 JDBC连接hive连接超时 hiveserver2启动了,然后日志也正常,但是用kettle连接或者自己的java代码用jdbc连接都是报错,报错日志如下: java.sql.SQLException: Could not open connection to jdbc:hive2://192.168.162.129:10000/hivedb: java.net.ConnectException: Connection timed out: connect at org.apache

hadoop-hive启动问题,hiveserver2一直不启动

问题描述 hive启动问题,hiveserver2一直不启动 2015-09-22 16:50:55,690 INFO [main]: metastore.ObjectStore (ObjectStore.java:setConf(272)) - Initialized ObjectStore 2015-09-22 16:50:55,691 INFO [main]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(746)) - 0: ge

process-Widget启动报异常。请求解决

问题描述 Widget启动报异常.请求解决 Unable to launch app or broadcast Intent process is bad act=android.appwidget.action.APPWIDGET_ENABLED 怎么回事啊!!! 开始还好好的,后来不晓得怎么了,装widget一直报这个错,不晓得抽什么风, 网上说神马卸掉重装,卸掉关机重启重装,统统都不行.... 解决方案 http://stackoverflow.com/questions/3253676/

无法启动承载网络解决方法

是不是很多朋友都遇到了无法启动承载网络 连到系统上的设备没有发挥作用的错误提示呢?如果是的话就可以参考本文为大家介绍的解决方法啦. 这个问题通常出现在我们想要共享无线网络的时候,比如通过下面这三条命令: (1)netsh wlan set hostednetwork mode=allow (2)netsh wlan set hostednetwork ssid=OPEN key=1234567890 (3)netsh wlan start hostednetwork 可能前两条都没有问题,一切正

Win8.1 Update无法启动?

  在日常使用过程中,Win8/Win8.1用户难免会遇到以上无法启动系统,或者系统启动失败问题.一般情况下,我们可以使用Win8系统还原点恢复或者系统镜像备份恢复.但如果你电脑本地同时没有以上备份和还原点,该怎么办? 是否需要重装系统吗?不,这时可以使用Win8.1安装镜像+应急命令来修复,例如最经典的sfc /scannow命令. 该修复命令可以扫描所有保护的系统文件的完整性,同时使用正确的微软版本替换受损或者异常的版本文件.这次,也整理了相应的图文操作步骤,具体操作如下-- 1.下载Win

Win7和Win8双系统默认启动项怎样设置

  当xp系统退役之后,我们使用的电脑系统无非就是win7系统和win8系统了.不少人为了体验这两种系统所带来不一样的感觉,就会安装双系统.不过在使用的过程之中,却遇到了麻烦,明明设置的默认启动项是w8,可是系统却进入了w7.那么Win7和Win8双系统默认启动项怎样设置呢?下面来了解一下吧. 方法一:使用启动文件夹 1.在桌面上新建快捷方式,在"请键入对象的位置"框里面输入以下字符: bcdedit /set {bootmgr} default {current} 2.当创建好了快捷

win7系统自动修复功能怎么启动

  win7系统自动修复功能的启动方法:在开机的过程中按F8键即可进入进入win7高级启动选项,对比xp系统中的多了"修复计算机"和"禁用系统失效时自动重启","禁用驱动程序签名强制"三项功能.