I am creating a thrift hive client in C# and the server is a hadoop hive
server2... I am able to connect to the server and perform SASL
Authentication.
But when i call client.send_execute("show tables;") and then
*client.recv_execute()*, it doesn't send the list of tables...
basically code hangs on *recv_execute()* waiting on incoming connection and
data never comes in....
*Is some thing wrong here (code below)*
I am using hive-sharp-lib....
var socket = new TSocket("xxx.xxx.xxx.xxx", 10000, 60000);
socket.Timeout = 9999999;
TStreamTransport sTransport = (TStreamTransport)socket;
var transport = new TSaslClientTransport(new
TBufferedTransport(sTransport));
var proto = new TBinaryProtocol(transport);
var client = new ThriftHive.Client(proto);
transport.Open();
client.send_execute("show tables;");
*client**.recv_execute();*
Reference:
http://stackoverflow.com/questions/26217224/creating-a-thrift-hive-client-but-not-able-to-receive-data-form-thrift-hiveserv
--
Bhupesh Sharma