On this page
属性值-GET ddl/database /:db/table /:table/property /:property
Description
返回单个表属性的值。
URL
http:// * www.myserver.com * /templeton/v1/ddl/database/ *:db * /table/ *:table * /property/ :属性
Parameters
| Name | Description | Required? | Default |
|---|---|---|---|
| :db | 数据库名称 | Required | None |
| :table | 表名 | Required | None |
| :property | 属性名称 | Required | None |
standard parameters也受支持。
Results
| Name | Description |
|---|---|
| property | 请求的属性名称:值对 |
| database | 数据库名称 |
| table | 表名 |
Example
Curl Command
% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/property/fruit?user.name=ctdean'
JSON Output
{
"property": {
"fruit": "apple"
},
"table": "test_table",
"database": "default"
}
JSON 输出(错误)
{
"error": "Table test_table does not exist",
"errorCode": 404,
"database": "default",
"table": "test_table"
}
Navigation Links
上一个:GET ddl/database/:db/table/:table/property下一个:PUT ddl/database/:db/table/:table/property/:property
一般:DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki 主页 – Hive 项目 site