spring-attic / spring-hadoop-samples

Spring Hadoop Samples
Apache License 2.0
492 stars 466 forks source link

Working for Hive2, error: org.apache.thrift.TApplicationException: Invalid method name: 'execute' #25

Closed xhe closed 9 years ago

xhe commented 9 years ago

I am using the sample, but as my hive server is hive2, and the hive URL server is: hive.url=jdbc:hive2://xxx.xxx.xxx.xxx:21050/;auth=noSasl now when I run the sample, I got this error immediately: org.apache.thrift.TApplicationException: Invalid method name: 'execute' at org.apache.thrift.TApplicationException.read(TApplicationException.java:108) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:71) at org.apache.hadoop.hive.service.ThriftHive$Client.recv_execute(ThriftHive.java:116) at org.apache.hadoop.hive.service.ThriftHive$Client.execute(ThriftHive.java:103) at org.springframework.samples.hadoop.hive.HiveJdbcAppMy.main(HiveJdbcAppMy.java:31) Is this because hive2 vs. hive? How can I fix this sample and use hive2? Thanks