Hi, i try to access HiveServer2 through thrift with java. But where is the ITL to generate a the HiveServer2 client?
The only thrift ITL I find is located here: * https://github.com/apache/hive/tree/HIVE-4115/service/if / hive_service.thrift (i don't know what TCLIService.thrift is) I tried to figure out what HiveServer2 is using, but the only package dealing with HS2 is located here: * https://github.com/apache/hive/tree/HIVE-4115/service/src/java/org/apache/hive/service/server And from there i could get any information which client to use. :( >From the cloudera [0] documentation I know that's possible to use HiveServer2 over Thrift. I thought i'm smart and have a look how beeswax is doing it. But I haven't found the place where Beeswax handles the connectino to HS2... Or which Thrift ITL Beeswax is using to connect to HS2. https://github.com/cloudera/hue/tree/master/apps/beeswax/java/src/main/java/com/cloudera/beeswax / BeeswaxServiceImpl.java https://github.com/cloudera/hue/tree/master/apps/beeswax/java/src/main/gen-java/com/cloudera/beeswax/api / BeeswaxService.java Now i'm stucked :( Could you guide me into the right direction? How to use HS2 over Thrift? Best Regards, Christian. [0] http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Installation-Guide/cdh4ig_topic_18_4.html