Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix link to Hive Logging (formerly Error Logs)

Using the HCatalog REST API (WebHCat)

Table of Contents

Info
titleVersion information

The HCatalog project graduated from the Apache incubator and merged with the Hive project on March 26, 2013.
Hive version 0.11.0 is the first release that includes HCatalog and its REST API, WebHCat.

...

For example, to specify user.name in a GET :table command:

No Format

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

And to specify user.name in a POST :table command:

No Format

% curl -s -d user.name=ctdean \
       -d rename=test_table_2 \
       'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table'

...

If the user.name parameter is not supplied when required, the following error will be returned:

No Format

{
  "error": "No user found.  Missing user.name parameter."
}

...

Hive log files are described in the Error Logs Hive Logging section of Getting Started.

...

The original work to add REST APIs to HCatalog was called Templeton. For backward compatibility the name still appears in URLs, log file names, etc. The Templeton name is taken from a character in the award-winning children's novel Charlotte's Web, by E. B. White. The novel's protagonist is a pig named Wilbur. Templeton is a rat who helps Wilbur by running errands and making deliveries as requested by Charlotte while spinning her web.

 

Panel
titleColorindigo
titleBGColorsilver
titleNavigation Links

Next: WebHCat Installation

General: WebHCat ManualHCatalog ManualHive Wiki HomeHive Project Site
Old version of this document (HCatalog 0.5.0): HCatalog REST API