Apache Hive : WebHCat Reference PutProperty

Last updated: December 12, 2024

Apache Hive : WebHCat Reference PutProperty

Description

Add a single property on an HCatalog table. This will also reset an existing property.

URL

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

Parameters

NameDescriptionRequired?Default
:dbThe database nameRequiredNone
:tableThe table nameRequiredNone
:propertyThe property nameRequiredNone
groupThe user group to useOptionalNone
permissionsThe permissions string to useOptionalNone
valueThe property valueRequiredNone

The standard parameters are also supported.

Results

NameDescription
databaseThe database name
tableThe table name
propertyThe property name

Example

Curl Command

% curl -s -X PUT -HContent-type:application/json -d '{ "value": "apples" }' \
  'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/property/fruit?user.name=ctdean'

JSON Output

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

Navigation Links Previous: GET ddl/database/:db/table/:table/property/:property Next: POST mapreduce/streaming