apache-hive / 3.1.1 / reference / WebHCat_Reference_PutProperty.html

设置属性— PUT ddl/database /:db/table /:table/property /: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
:property 属性名称 Required None
group 要使用的用户组 Optional None
permissions 使用的权限字符串 Optional None
value Property 价值 Required None

standard parameters也受支持。

Results

Name Description
database 数据库名称
table 表名
property 属性名称

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

上一个:GET ddl/database/:db/table/:table/property/:property下一个:POST mapreduce/streaming

一般:DDL ResourcesWebHCat ReferenceWebHCat ManualHCatalog ManualHive Wiki 主页Hive 项目 site