public class HcatDelegator extends LauncherDelegator
LauncherDelegator.JobTyperunAsappConf| Constructor and Description |
|---|
HcatDelegator(AppConfig appConf,
ExecService execService) |
| Modifier and Type | Method and Description |
|---|---|
Response |
addOneColumn(java.lang.String user,
java.lang.String db,
java.lang.String table,
ColumnDesc desc)
Add one column.
|
Response |
addOnePartition(java.lang.String user,
java.lang.String db,
java.lang.String table,
PartitionDesc desc)
Add one partition.
|
Response |
addOneTableProperty(java.lang.String user,
java.lang.String db,
java.lang.String table,
TablePropertyDesc desc)
Add one table property.
|
Response |
createDatabase(java.lang.String user,
DatabaseDesc desc)
Create a database with the given name
|
Response |
createTable(java.lang.String user,
java.lang.String db,
TableDesc desc)
Create a table.
|
Response |
createTableLike(java.lang.String user,
java.lang.String db,
TableLikeDesc desc)
Create a table like another.
|
Response |
descDatabase(java.lang.String user,
java.lang.String db,
boolean extended)
Return a json description of the database.
|
Response |
descExtendedTable(java.lang.String user,
java.lang.String db,
java.lang.String table)
Return a json "show table extended like".
|
Response |
descOneColumn(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String column)
Return a json description of one column.
|
Response |
descOnePartition(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String partition)
Return a json description of one partition.
|
Response |
descTable(java.lang.String user,
java.lang.String db,
java.lang.String table,
boolean extended)
Return a json description of the table.
|
Response |
descTableProperty(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String property)
Describe one table property.
|
Response |
dropDatabase(java.lang.String user,
java.lang.String db,
boolean ifExists,
java.lang.String option,
java.lang.String group,
java.lang.String permissions)
Drop the given database
|
Response |
dropPartition(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String partition,
boolean ifExists,
java.lang.String group,
java.lang.String permissions)
Drop a partition.
|
Response |
dropTable(java.lang.String user,
java.lang.String db,
java.lang.String table,
boolean ifExists,
java.lang.String group,
java.lang.String permissions)
Drop a table.
|
Response |
listColumns(java.lang.String user,
java.lang.String db,
java.lang.String table)
Return a json description of the columns.
|
Response |
listDatabases(java.lang.String user,
java.lang.String dbPattern)
Return a json "show databases like".
|
Response |
listPartitions(java.lang.String user,
java.lang.String db,
java.lang.String table)
Return a json description of the partitions.
|
Response |
listTableProperties(java.lang.String user,
java.lang.String db,
java.lang.String table)
List the table properties.
|
Response |
listTables(java.lang.String user,
java.lang.String db,
java.lang.String tablePattern)
Return a json "show table like".
|
Response |
renameTable(java.lang.String user,
java.lang.String db,
java.lang.String oldTable,
java.lang.String newTable,
java.lang.String group,
java.lang.String permissions)
Rename a table.
|
ExecBean |
run(java.lang.String user,
java.lang.String exec,
boolean format,
java.lang.String group,
java.lang.String permissions)
Run the local hcat executable.
|
addCacheFiles, addDef, enqueueController, makeLauncherArgs, makeOverrideClasspath, registerJobpublic HcatDelegator(AppConfig appConf, ExecService execService)
public ExecBean run(java.lang.String user, java.lang.String exec, boolean format, java.lang.String group, java.lang.String permissions) throws NotAuthorizedException, BusyException, ExecuteException, java.io.IOException
NotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response descDatabase(java.lang.String user,
java.lang.String db,
boolean extended)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response listDatabases(java.lang.String user,
java.lang.String dbPattern)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response createDatabase(java.lang.String user,
DatabaseDesc desc)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response dropDatabase(java.lang.String user,
java.lang.String db,
boolean ifExists,
java.lang.String option,
java.lang.String group,
java.lang.String permissions)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response createTable(java.lang.String user,
java.lang.String db,
TableDesc desc)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response createTableLike(java.lang.String user,
java.lang.String db,
TableLikeDesc desc)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response descTable(java.lang.String user,
java.lang.String db,
java.lang.String table,
boolean extended)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response listTables(java.lang.String user,
java.lang.String db,
java.lang.String tablePattern)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response descExtendedTable(java.lang.String user,
java.lang.String db,
java.lang.String table)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response dropTable(java.lang.String user,
java.lang.String db,
java.lang.String table,
boolean ifExists,
java.lang.String group,
java.lang.String permissions)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response renameTable(java.lang.String user,
java.lang.String db,
java.lang.String oldTable,
java.lang.String newTable,
java.lang.String group,
java.lang.String permissions)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response descTableProperty(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String property)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response listTableProperties(java.lang.String user,
java.lang.String db,
java.lang.String table)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response addOneTableProperty(java.lang.String user,
java.lang.String db,
java.lang.String table,
TablePropertyDesc desc)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response listPartitions(java.lang.String user,
java.lang.String db,
java.lang.String table)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response descOnePartition(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String partition)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response addOnePartition(java.lang.String user,
java.lang.String db,
java.lang.String table,
PartitionDesc desc)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response dropPartition(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String partition,
boolean ifExists,
java.lang.String group,
java.lang.String permissions)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response listColumns(java.lang.String user,
java.lang.String db,
java.lang.String table)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response descOneColumn(java.lang.String user,
java.lang.String db,
java.lang.String table,
java.lang.String column)
throws SimpleWebException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
SimpleWebExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionpublic Response addOneColumn(java.lang.String user,
java.lang.String db,
java.lang.String table,
ColumnDesc desc)
throws HcatException,
NotAuthorizedException,
BusyException,
ExecuteException,
java.io.IOException
HcatExceptionNotAuthorizedExceptionBusyExceptionExecuteExceptionjava.io.IOExceptionCopyright © 2012 The Apache Software Foundation