Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Create Partition — PUT ddl/database/:db/table/:table/partition/:partition

Table of Contents

Description

Create a partition in an HCatalog table.

URL

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

Parameters

Name

Description

Required?

Default

:db

The database name

Required

None

:table

The table name

Required

None

:partition

The partition name, col_name='value' list. Be careful to properly encode the quote for http, for example, country=%27algeria%27.

Required

None

group

The user group to use

Optional

None

permissions

The permissions string to use

Optional

None

location

The location for partition creation

Required

None

ifNotExists

If true, return an error if the partition already exists.

Optional

False

The standard parameters are also supported.

Results

Name

Description

partition

The partition name

table

The table name

database

The database name

Example

Curl Command

No Format
% curl -s -X PUT -HContent-type:application/json -d '{"location": "loc_a"}' \
       'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/partition/country=%27algeria%27?user.name=ctdean'

JSON Output

No Format
{
 "partition": "country='algeria'",
 "table": "test_table",
 "database": "default"
}


Panel
titleColorindigo
titleBGColorsilver
titleNavigation Links

Previous: GET ddl/database/:db/table/:table/partition/:partition
Next: DELETE ddl/database/:db/table/:table/partition/:partition

General: DDL ResourcesWebHCat ReferenceWebHCat ManualHCatalog ManualHive Wiki HomeHive Project Site
Old version of this document (HCatalog 0.5.0): PUT ddl/database/:db/table/:table/partition/:partition