This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • WebHCat Reference PutDB
Skip to end of metadata
Go to start of metadata

Create Database — PUT ddl/database/:db

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

% 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

{
 "database":"newdb"
}


  • No labels