DDL Command — POST ddl
Description
Performs an HCatalog DDL command. The command is executed immediately upon request. Responses are limited to 1 MB. For requests which may return longer results consider using the Hive resource as an alternative.
...
Example
Curl Command
No Format |
---|
% curl -s -d user.name=ctdean \
-d 'exec=show tables;' \
'http://localhost:50111/templeton/v1/ddl'
|
JSON Output
No Format |
---|
{
"stdout": "important_table
my_other_table
my_table
my_table_2
pokes
",
"stderr": "WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated...
Hive history file=/tmp/ctdean/hive_job_log_ctdean_201111111258_2117356679.txt
OK
Time taken: 1.202 seconds
",
"exitcode": 0
}
|
JSON Output (error)
No Format |
---|
{
"stdout": "",
"stderr": "WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated...
Hive history file=/tmp/ctdean/hive_job_log_ctdean_201204051246_689834593.txt
FAILED: Parse Error: line 1:5 Failed to recognize predicate 'tab'...
",
"exitcode": 11
}
|