WebHCat API实例指南--官网中文翻译

WebHCat API指南--官网中文翻译

这个概览页面列出了所有WebHCat资源。(DDL资源在这里和另一个概览页面上列出。有关HCatalog DDL命令的信息,请参见HCatalog DDL。有关Hive DDL命令的信息,请参见Hive数据定义语言。

类型 资源(类型) 描述

General

:version (GET)

Return a list of supported response types.

status (GET)

Return the WebHCat server status.

version (GET)

Return a list of supported versions and the current version.

  version/hive (GET) Return the Hive version being run. (Added in Hive 0.13.0.)
  version/hadoop (GET) Return the Hadoop version being run. (Added in Hive 0.13.0.)

DDL

ddl (POST)

Perform an HCatalog DDL command.

ddl/database (GET)

List HCatalog databases.

ddl/database/:db (GET)

Describe an HCatalog database.

ddl/database/:db (PUT)

Create an HCatalog database.

ddl/database/:db (DELETE)

Delete (drop) an HCatalog database.

ddl/database/:db/table (GET)

List the tables in an HCatalog database.

ddl/database/:db/table/:table (GET)

Describe an HCatalog table.

ddl/database/:db/table/:table (PUT)

Create a new HCatalog table.

ddl/database/:db/table/:table (POST)

Rename an HCatalog table.

ddl/database/:db/table/:table (DELETE)

Delete (drop) an HCatalog table.

ddl/database/:db/table/:existingtable/like/:newtable (PUT)

Create a new HCatalog table like an existing one.

ddl/database/:db/table/:table/partition (GET)

List all partitions in an HCatalog table.

ddl/database/:db/table/:table/partition/:partition (GET)

Describe a single partition in an HCatalog table.

ddl/database/:db/table/:table/partition/:partition (PUT)

Create a partition in an HCatalog table.

ddl/database/:db/table/:table/partition/:partition (DELETE)

Delete (drop) a partition in an HCatalog table.

ddl/database/:db/table/:table/column (GET)

List the columns in an HCatalog table.

ddl/database/:db/table/:table/column/:column (GET)

Describe a single column in an HCatalog table.

ddl/database/:db/table/:table/column/:column (PUT)

Create a column in an HCatalog table.

ddl/database/:db/table/:table/property (GET)

List table properties.

ddl/database/:db/table/:table/property/:property (GET)

Return the value of a single table property.

ddl/database/:db/table/:table/property/:property (PUT)

Set a table property.

MapReduce

mapreduce/streaming (POST)

Create and queue Hadoop streaming MapReduce jobs.

mapreduce/jar (POST)

Create and queue standard Hadoop MapReduce jobs.

Pig

pig (POST)

Create and queue Pig jobs.

Hive

hive (POST)

Run Hive queries and commands.

Queue
(deprecated in Hive 0.12,
removed in Hive 0.14)

queue (GET)

Return a list of all job IDs. (Removed in Hive 0.14.0.)

queue/:jobid (GET)

Return the status of a job given its ID. (Removed in Hive 0.14.0.)

queue/:jobid (DELETE)

Kill a job given its ID. (Removed in Hive 0.14.0.)

Jobs
(Hive 0.12 and later)

jobs (GET)

Return a list of all job IDs.

jobs/:jobid (GET)

Return the status of a job given its ID.

jobs/:jobid (DELETE)

Kill a job given its ID.

Navigation Links

Previous: Configuration
Next: GET :version

Overview of DDL resources: WebHCat Reference: DDL 
HCatalog DDL commands: HCatalog DDL 
Hive DDL commands: Hive Data Definition Language

General: WebHCat Manual – HCatalog Manual – Hive Wiki Home – Hive Project Site

参考:

https://cwiki.apache.org/confluence/display/Hive/WebHCat+Reference

猜你喜欢

转载自blog.csdn.net/JacksonKing/article/details/89644658