Rename an HCatalog table.
http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table
Name | Description | Required? | Default |
|---|---|---|---|
:db | The database name | Required | None |
:table | The existing (old) table name | Required | None |
rename | The new table name | Required | None |
group | The user group to use | Optional | None |
permissions | The permissions string to use. The format is " | Optional | None |
The standard parameters are also supported.
Name | Description |
|---|---|
table | The new table name |
database | The database name |
% curl -s -d rename=test_table_2 \
'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table?user.name=ekoifman'
|
Prior to Hive 0.13.0, user.name was specified in POST requests as a form parameter: In Hive 0.13.0 onward, user.name should be specified in the query string (as shown above): |
{
"table": "test_table_2",
"database": "default"
}
|
{
"error": "Table test_table does not exist",
"errorCode": 404,
"database": "default",
"table": "test_table_2"
}
|
Previous: PUT ddl/database/:db/table/:table General: DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki Home – Hive Project Site |