On this page
列表属性-GET ddl/database /:db/table /:table/property
Description
列出 HCatalog 表的所有属性。
URL
http://
* www.myserver.com * /templeton/v1/ddl/database/
*:db * /table/
*:table * /property
Parameters
Name | Description | Required? | Default |
---|---|---|---|
:db | 数据库名称 | Required | None |
:table | 表名 | Required | None |
standard parameters也受支持。
Results
Name | Description |
---|---|
properties | 表名称:值对的属性列表 |
database | 数据库名称 |
table | 表名 |
Example
Curl Command
% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/property?user.name=ctdean'
JSON Output
{
"properties": {
"fruit": "apple",
"last_modified_by": "ctdean",
"hcat.osd": "org.apache.hcatalog.rcfile.RCFileOutputDriver",
"color": "blue",
"last_modified_time": "1331620706",
"hcat.isd": "org.apache.hcatalog.rcfile.RCFileInputDriver",
"transient_lastDdlTime": "1331620706",
"comment": "Best table made today",
"country": "Albania"
},
"table": "test_table",
"database": "default"
}
Navigation Links
上一个:PUT ddl/database/:db/table/:table/column/:column下一个:GET ddl/database/:db/table/:table/property/:property
一般:DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki 主页 – Hive 项目 site