apache-hive / 3.1.1 / reference / WebHCat_Reference_GetDB.html

描述数据库-GET ddl/database /:db

Description

描述一个数据库。 (注意:此资源具有“ format = extended”参数,但是如果使用它,输出结构也不会改变.)

URL

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

Parameters

Name Description Required? Default
:db 数据库名称 Required None

standard parameters也受支持。

Results

Name Description
location 数据库位置
params 数据库参数
comment 数据库 Comments
database 数据库名称

Example

Curl Command

% curl -s 'http://localhost:50111/templeton/v1/ddl/database/newdb?user.name=ctdean'

JSON Output

{
 "location":"hdfs://localhost:9000/warehouse/newdb.db",
 "params":"{a=b}",
 "comment":"Hello there",
 "database":"newdb"
}

JSON 输出(错误)

{
  "error": "No such database: newdb",
  "errorCode": 404
}

Navigation Links

上一个:GET ddl/database下一个:PUT ddl/database/:db

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