Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edit description of REPL LOAD command

...

REPL LOAD [<dbname>[.<tablename>]] FROM <dirname> [WITH ('key1'='value1', 'key2'='value2')];


This causes a repl dump REPL DUMP present in <dirname> (which is to be a fully qualified hdfs urlHDFS URL) to be pulled and loaded. If <dbname> is specified, and the original dump was a dbdatabase-level dump, this allows us Hive to do db-rename-mapping on import. If <dbname>.<tablename> was specified, and the original dump was a table-level dump, then this allows us to do a table-rename-mapping on import. If neither dbname nor tablename are is specified, the original dbname and tablename are used, as recorded in the dump. REPL

The REPL LOAD command

...

has an optional WITH clause to set command-specific configurations to be used when

...

trying to copy from the source cluster. These configurations are only used by the corresponding REPL LOAD command and won't be used for other queries running in the same session.

Return values:

  1. Error codes returned as normal.
  2. Does not return anything in ResultSet, expects user to run REPL STATUS to check.

...

REPL STATUS

REPL STATUS <dbname>[.<tablename>];

...