The HCatalog CLI supports these command line options:
Option |
Usage |
Description |
---|---|---|
-g |
|
Tells HCatalog that the table which needs to be created must have group "mygroup". |
-p |
|
Tells HCatalog that the table which needs to be created must have permissions "rwxr-xr-x". |
-f |
|
Tells HCatalog that myscript.hcatalog is a file containing DDL commands to execute. |
-e |
|
Tells HCatalog to treat the following string as a DDL command and execute it. |
-D |
|
Passes the key-value pair to HCatalog as a Java System Property. |
|
hcat |
Prints a usage message. |
Note the following:
If no option is provided, then a usage message is printed:
Usage: hcat { -e "<query>" | -f <filepath> } [-g <group>] [-p <perms>] [-D<name>=<value>]
If you create a table with a CLUSTERED BY clause you will not be able to write to it with Pig or MapReduce. This is because they do not understand how to partition the table, so attempting to write to it would cause data corruption.
Not supported. Throws an exception with the message "Operation Not Supported".
Supported. Behavior the same as Hive.
Supported except for the REBUILD and CONCATENATE options. Behavior the same as Hive.
Note: Pig and MapReduce cannot read from or write to views.
Supported. Behavior same as Hive.
Supported. Behavior same as Hive.
Supported. Behavior same as Hive.
Supported. Behavior same as Hive.
Not supported. Throws an exception with message "Operation Not Supported".
Supported. Behavior same as Hive.
Supported. Behavior same as Hive.
CREATE and DROP INDEX operations are supported.
Note: Pig and MapReduce cannot write to a table that has auto rebuild on, because Pig and MapReduce do not know how to rebuild the index.
CREATE and DROP FUNCTION operations are supported, but created functions must still be registered in Pig and placed in CLASSPATH for MapReduce.
Supported. Behavior same as Hive.
Any command not listed above is NOT supported and throws an exception with the message "Operation Not Supported".