GET ddl/database/:db/table/:table/property
Description
List all the properties of an HCatalog table.
URL
http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table/property
Parameters
Name | Description | Required? | Default |
---|---|---|---|
:db | The database name | Required | None |
:table | The table name | Required | None |
Results
Name | Description |
---|---|
properties | A list of the tables properties in name: value pairs |
database | The database name |
table | The table name |
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" }