Running Jobs on the WebHCat Server
About this task
REST Calls in WebHCat
The base URI for REST calls in WebHCat is
http://<host>:<port>/templeton/v1/. The following
table lists elements appended to the base URI and DDL commands.
|
URI |
Description |
|---|---|
|
Server Information |
|
|
/status |
Shows WebHCat server status. |
|
/version |
Shows WebHCat server version. |
|
DDL Commands |
|
|
/ddl/database |
List existing databases. |
|
/ddl/database/<mydatabase> |
Shows properties for the database named mydatabase. |
|
/ddl/database/<mydatabase>/table |
Shows tables in the database named mydatabase. |
|
/ddl/database/<mydatabase>/table/<mytable> |
Shows the table definition for the table named mytable in the database named mydatabase. |
|
/ddl/database/<mydatabase>/table/<mytable>/property |
Shows the table properties for the table named mytable in the database named mydatabase. |
Launching a MapReduce Job with WebHCat
About this task
TempletonControllerJob, has one map task. The map task launches
the actual job from the REST API call. Check the status of both jobs and the output
directory contents.Procedure
Launching a Streaming MapReduce Job with WebHCat
Procedure
Launching a Pig Job with WebHCat
Procedure
Launching a Hive Job with WebHCat
Procedure
The Job Queue
About this task
To show HCatalog jobs for a particular user, navigate to the following address:
http://<hostname>:<port>/templeton/v1/queue/?user.name=<username>
The default port for HCatalog is 50111.