On this page
删除分区—删除 ddl/database /:db/table /:table/partition /:partition
Description
删除(删除)HCatalog 表中的分区。
URL
http://
* www.myserver.com * /templeton/v1/ddl/database/
*:db * /table/
*:table * /partition/
*:partition *
Parameters
Name | Description | Required? | Default |
---|---|---|---|
:db | 数据库名称 | Required | None |
:table | 表名 | Required | None |
:partition | 分区名称 col_name ='value'列表。请注意正确编码 http 的引用,例如 country =%27algeria%27. | Required | None |
ifExists | 如果指定的分区不存在,除非 ifExists 设置为 true,否则 Hive 返回错误。 | Optional | false |
group | 要使用的用户组 | Optional | None |
permissions | 要使用的权限字符串。格式为“ rwxrw-r-x ”。 |
Optional | None |
standard parameters也受支持。
Results
Name | Description |
---|---|
partition | 分区名称 |
table | 表名 |
database | 数据库名称 |
Example
Curl Command
% curl -s -X DELETE \
'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/partition/country=%27algeria%27?user.name=ctdean'
JSON Output
{
"partition": "country='algeria'",
"table": "test_table",
"database": "default"
}
Navigation Links
上一个:PUT ddl/database/:db/table/:table/partition/:partition下一个:GET ddl/database/:db/table/:table/column
一般:DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki 主页 – Hive 项目 site