Versions Compared

Key

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

Create Database — PUT ddl/database/:db

Table of Contents

Description

Create a database.

URL

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

Parameters

Name

Description

Required?

Default

:db

The database name

Required

None

group

The user group to use

Optional

None

permissions

The permissions string to use

Optional

None

location

The database location

Optional

None

comment

A comment for the database, like a description

Optional

None

properties

The database properties

Optional

None

The standard parameters are also supported.

Results

Name

Description

database

The database name

Example

Curl Command

No Format
% curl -s -X PUT -HContent-type:application/json \
       -d '{ "comment":"Hello there",
             "location":"hdfs://localhost:9000/user/hive/my_warehouse",
             "properties":{"a":"b"}}' \
       'http://localhost:50111/templeton/v1/ddl/database/newdb?user.name=rachel'

JSON Output

No Format
{
 "database":"newdb"
}


Panel
titleColorindigo
titleBGColorsilver
titleNavigation Links

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

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