Apache Hive : WebHCat Reference DeleteTable

Last updated: December 12, 2024

Apache Hive : WebHCat Reference DeleteTable

Description

Delete (drop) an HCatalog table.

URL

http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table

Parameters

NameDescriptionRequired?Default
:dbThe database nameRequiredNone
:tableThe table nameRequiredNone
ifExistsHive 0.70 and later returns an error if the table specified does not exist, unless ifExists is set to true.Optionalfalse
groupThe user group to useOptionalNone
permissionsThe permissions string to use. The format is “rwxrw-r-x”.OptionalNone

The standard parameters are also supported.

Results

NameDescription
tableThe table name
databaseThe database name

Example

Curl Command

% curl -s -X DELETE 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table?user.name=ctdean'

JSON Output

{
 "table": "test_table",
 "database": "default"
}

Navigation Links Previous: POST ddl/database/:db/table/:table Next: PUT ddl/database/:db/table/:existingtable/like/:newtable