org.apache.lens.driver.hive
Class RemoteThriftConnection
java.lang.Object
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. |
Method Summary |
void |
close()
|
org.apache.hive.service.cli.CLIServiceClient |
getClient(org.apache.hadoop.hive.conf.HiveConf conf)
Gets the client. |
LOG
public static final org.apache.commons.logging.Log LOG
- The Constant LOG.
RemoteThriftConnection
public RemoteThriftConnection()
- Instantiates a new remote thrift connection.
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.