org.apache.lens.driver.hive
Class RemoteThriftConnection

java.lang.Object
  extended by org.apache.lens.driver.hive.RemoteThriftConnection
All Implemented Interfaces:
Closeable, ThriftConnection

public class RemoteThriftConnection
extends Object
implements ThriftConnection

Connect to a remote Hive Server 2 service to run driver queries.


Field Summary
static org.apache.commons.logging.Log LOG
          The Constant LOG.
 
Constructor Summary
RemoteThriftConnection()
          Instantiates a new remote thrift connection.
 
Method Summary
 void close()
           
 org.apache.hive.service.cli.CLIServiceClient getClient(org.apache.hadoop.hive.conf.HiveConf conf)
          Gets the client.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
The Constant LOG.

Constructor Detail

RemoteThriftConnection

public RemoteThriftConnection()
Instantiates a new remote thrift connection.

Method Detail

getClient

public org.apache.hive.service.cli.CLIServiceClient getClient(org.apache.hadoop.hive.conf.HiveConf conf)
                                                       throws LensException
Description copied from interface: ThriftConnection
Gets the client.

Specified by:
getClient in interface ThriftConnection
Parameters:
conf - the conf
Returns:
the client
Throws:
LensException - the lens exception

close

public void close()
Specified by:
close in interface Closeable


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.