hive12启动报错org.apache.thrift.server.TThreadPoolServer.<init>(Lorg/apache/thrift/server/TThreadPoolServer$Args;)

执行如下命令启动hive服务:./bin/hive --service hiveserver,报如下错误:

Starting Hive Thrift Server
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.thrift.server.TThreadPoolServer.<init>(Lorg/apache/thrift/server/TThreadPoolServer$Args;)V
        at org.apache.hadoop.hive.service.HiveServer.main(HiveServer.java:676)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:197)

出现该问题的原因是thrift版本不兼容,解决办法如下:
1)确保hadoop/lib里的库文件libfb303*.jar及libthrift*.jar的版本号与hive/lib里的一致,如果不需要可以直接删除hadoop/lib里的thrift库文件

2)如果上述处理后,仍然报错,可能是你在hadoop里安装了hue库,hue也使用了thrift库,如果hue要求的thrift库版本与hive/lib了的thrift库版本不一致也会出现该问题,最简单的解决办法是删除hadoop/lib里的hui*.jar库文件,或则采用支持与hive使用的thrift相同版本的hue即可

如果还是无法解决问题,就需要进一步查找是否还有其他模块采用了不同版本的thrift了。

【转自】http://blog.sina.com.cn/s/blog_8df8cc6101017b5w.html

原来是hue与hadoop配置的安装包与hive12的包thrift冲突导致,将hadoop的lib目录下hue-plugins-1.2.0-cdh3u5.jar删除即可解决。

时间: 2024-08-06 21:22:44

hive12启动报错org.apache.thrift.server.TThreadPoolServer.<init>(Lorg/apache/thrift/server/TThreadPoolServer$Args;)的相关文章

rsync服务端启动报错rsync: link_stat &quot;/etc/rc.d/init.d/–daemon&quot; failed: No such file or directory (2)

问题描述 rsync服务端配置文件修改完成后.启动服务返回报错如下 [[email protected] init.d]# /usr/bin/rsync –daemon rsync: link_stat "/etc/rc.d/init.d/–daemon" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code

记一次莫名其妙的报错亚博体育 Failed resolution of: Lorg/apache/http/params

2019-04-25  亚博体育 (yb5.io)11:11:49 App Version: 1.0.7_7 OS Version: 9_28 Vendor: OPPO Model: PCAM00 CPU ABI: armeabi-v7ajava.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/params/BasicHttpParams;     atcom.esri.core.internal.io.hand

spring Boot启动报错Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.getAnnotationAttributes

spring boot 启动报错如下 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure

Tomcat启动报错[org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed

Tomcat启动报错: [org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/SoftwareDevelopment/Software/Eclipse4.3/eclipse-jee-kepler-SR1-win32-x86_64/Workspace/.metadata/.plugins/org.ec

Apache启动报错 undefined symbol: apr_array_clear

Apache服务启动报错 [[email protected] ]# service httpd start httpd: Syntax error on line 162 of /etc/httpd.conf/httpd.conf: Cannot load modules/mod_dir.so into server: /usr/local/apache2/modules/mod_dir.so: undefined symbol: apr_array_clear 解决办法:将./configu

java_tomcat_the_APR based Apache Tomcat 小喵咪死活启动报错_临时方案

报错信息如下: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.6.0_33\bin; 造成结果: IDE中无法加载web项目 ,不方便调试. 解决步奏: 1 百度之,各种tcnative-1.dll

Eureka Server项目启动报错处理

Eureka Server项目启动报错处理 Eureka是一个服务发现组件,提供服务注册.发现等注册中心功能,使用spring boot启动eureka应用时出现报错: 20:36:17.646 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.NoSuchMethodError: org.springframework.boot.builder.

Apache无法启动报错

Apache无法启动报错:Name or service not known: mod_unique_id: unable to find IPv4 address of "xxxx"   解决方案: 修改 /etc/hosts,添加添加自己的主机名 127.0.0.1    主机名

Apache(httpd) 报错You don&#39;t have permission to access /on this server.

项目需要,增加个访问端口,指向不同目录. 但是一直报"You don't have permission to access /on this server."错误 配置文件语法检查: #/etc/init.d/httpd configtest 或 apachectl -t 直接输入:/etc/init.d/httpd 会新显示选项 [[email protected] ~]# /etc/init.d/httpd  Usage: httpd {start|stop|restart|co