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