public class CliSessionState extends SessionState
SessionState.LogHelper, SessionState.ResourceHook, SessionState.ResourceType| Modifier and Type | Field and Description |
|---|---|
java.util.Properties |
cmdProperties
properties set from -hiveconf via cmdline.
|
java.lang.String |
database
-database option if any that the session has been invoked with.
|
java.lang.String |
execString
-e option if any that the session has been invoked with.
|
java.lang.String |
fileName
-f option if any that the session has been invoked with.
|
protected java.lang.String |
host
host name and port number of remote Hive server
|
java.util.List<java.lang.String> |
initFiles
-i option if any that the session has been invoked with.
|
protected int |
port |
| Constructor and Description |
|---|
CliSessionState(HiveConf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect()
Connect to Hive Server
|
HiveClient |
getClient() |
java.lang.String |
getHost() |
int |
getPort() |
boolean |
isRemoteMode() |
void |
setHost(java.lang.String host) |
add_builtin_resource, add_resource, add_resource, addLocalMapRedErrors, canDownloadResource, delete_resource, delete_resource, find_resource_type, get, getAuthenticator, getAuthorizer, getCmd, getCommandType, getConf, getConsole, getCreateTableGrants, getCurrentDatabase, getHiveHistory, getHiveOperation, getHiveVariables, getIsSilent, getIsVerbose, getLastMapRedStatsList, getLineageState, getLocalMapRedErrors, getOverriddenConfigurations, getPerfLogger, getQueryId, getSessionId, getStackTraces, getTmpOutputFile, list_resource, registerJar, setAuthenticator, setAuthorizer, setCmd, setCommandType, setConf, setCreateTableGrants, setCurrentDatabase, setHiveVariables, setIsSilent, setIsVerbose, setLastMapRedStatsList, setLocalMapRedErrors, setOverriddenConfigurations, setStackTraces, setTmpOutputFile, start, start, unregisterJar, validateFilepublic java.lang.String database
public java.lang.String execString
public java.lang.String fileName
public java.util.Properties cmdProperties
public java.util.List<java.lang.String> initFiles
protected java.lang.String host
protected int port
public CliSessionState(HiveConf conf)
public void connect()
throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic void setHost(java.lang.String host)
public java.lang.String getHost()
public int getPort()
public void close()
close in class SessionStatepublic boolean isRemoteMode()
public HiveClient getClient()
Copyright © 2012 The Apache Software Foundation