public class RemoteThriftConnection extends Object implements ThriftConnection
Constructor and Description |
---|
RemoteThriftConnection()
Instantiates a new remote thrift connection.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hive.service.cli.CLIServiceClient |
getClient()
Gets the client.
|
void |
init(org.apache.hadoop.hive.conf.HiveConf conf,
String user)
Initializes connection with conf.
|
public RemoteThriftConnection()
public void init(org.apache.hadoop.hive.conf.HiveConf conf, String user)
ThriftConnection
init
in interface ThriftConnection
public org.apache.hive.service.cli.CLIServiceClient getClient() throws LensException
ThriftConnection
getClient
in interface ThriftConnection
LensException
- the lens exceptionpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.