Impala Shell Command Reference
Use the following commands within impala-shell
to
pass requests to the impalad
daemon that the shell is
connected to. You can enter a command interactively at the prompt or pass it
as the argument to the -q
option of
impala-shell
.
Command | Explanation |
---|---|
Impala SQL statements |
You can issue valid SQL statements to be executed. |
|
Connects to the specified instance of
|
|
Help provides a list of all available commands and options. |
|
Maintains an enumerated cross-session command history. This history is stored in the ~/.impalahistory file. |
|
Displays low-level information about the most recent query.
Used for performance diagnosis and tuning. The report starts
with the same information as produced by the
|
|
Exits the shell. Remember to include the final semicolon so that the shell recognizes the end of the command. |
|
Executes a previous impala-shell command
again, from the list of commands displayed by the
Specify an integer argument. A positive integer
|
|
Manages query options for an impala-shell
session. These options are used for query tuning and
troubleshooting. Issue |
|
Executes the specified command in the operating system shell
without exiting |
|
Executes one or more statements residing in a specified file
from the local filesystem. Allows you to perform the same kinds
of batch operations as with the |
|
Summarizes the work performed in various stages of a query. It
provides a higher-level view of the information displayed by the
The time, memory usage, and so on reported by
You can see a continuously updated report of the summary information while a query is in progress. |
|
Removes any user-specified value for a query option and returns the option to its default value. You can also use it to remove user-specified substitution
variables using the notation |
|
Indicates the database against which to execute subsequent
commands. Lets you avoid using fully qualified names when
referring to tables in databases other than
|
|
Returns Impala version information. |