Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edit beeline command options based on SQLLine doc & BeeLineOpts.java * HIVE-4485

...

Option

Usage

Description

-u <database URL>

beeline -u db_URL 

The JDBC URL to connect to.

-n <username>

beeline -n user1

The username to connect as.

-p <password>

beeline -p user1_password

The password to connect as.

-d <driver class>

beeline -d driver_class

The driver class to use.

-e <query>

beeline -e '"query_string'"

Query that should be executed.

Version: 0.13.0 (HIVE-5765)

-f <file>beeline -f filepath

Script file that should be executed.

Version: 0.12.0 (HIVE-4268)

--hiveconf property=valuebeeline --hiveconf prop1=value1

Use value for the given property.

Version: 0.13.0 (HIVE-6173)

--hivevar name=valuebeeline --hivevar var1=value1 Hive variable name and value. This is a Hive-specific setting in
which variables can be set at the session level and referenced
in Hive commands or queries.
--color=[true/false]beeline --color=true Control whether color is used for display. Default is false.
--showHeader=[true/false]beeline --showHeader=false Show column names in query results (true) or not (false). Default is true.
--headerInterval=ROWSbeeline --headerInterval=50 The interval for redisplaying column headers, in number of rows,
when --outputformat is table. Default value is 100.
--fastConnect=[true/false]beeline --fastConnect=false When connecting, skip building a list of all tables and columns for
tab-completion of HiveQL statements (true) or build the list (false). Default is true.
--autoCommit=[true/false]beeline --autoCommit=true Enable/disable automatic transaction commit. Default is truefalse.
--verbose=[true/false]beeline --verbose=falsetrue Show verbose error messages and debug information (true)
or do not show (false). Default is false.
--showWarnings=[true/false]beeline --showWarnings=true Display connection warningswarnings that are reported on the connection after issuing any HiveQL commands. Default is false.
--showNestedErrs=[true/false]beeline --showNestedErrs=true Display nested errors. Default is false.
--numberFormat=[pattern]beeline --numberFormat=pattern"#,###,##0.00"Format numbers using a DecimalFormat pattern.
--force=[true/false]beeline--force=falsetrue Continue running script even after errors (true)
or do not continue (false). Default is false.
--maxWidth=MAXWIDTHbeeline --maxWidth=150 The maximum width of the terminal, in characters.to display before truncating data, in characters, when outputformat is table. Default is to query the terminal for current width, then fall back to 80. 
--maxColumnWidth=MAXCOLWIDTHbeeline --maxColumnWidth=4025 The maximum column width to use when displaying columns,
in characters, when outputformat is table. Default is 15.
--silent=[true/false]beeline --silent=falsetrueReduce the amount of informational messages displayed Be more silent (true) or not (false). Default is false.
--autosave=[true/false]beeline --autosave=true Automatically save preferences (true) or do not autosave (false).
Default is false.
--outputformat=[table/vertical/csv/tsv]beeline --outputformat=tabletsv Format mode for result display. Default is table.
--isolation=LEVELbeeline --isolation= xxxxxxxxxxxxxSERIALIZABLE Set the transaction isolation level to READ_COMMITTED or SERIALIZABLE. See the "Field Detail" section in the Java Connection documentation.  
--nullemptystring=[true/false]beeline --nullemptystring=false Get

Use historic behavior of printing null as empty string (true)


or not

or use current behavior of printing null as NULL (false). Default is false.

Version: 0.13.0 (HIVE-4485)

--help

beeline --help

Display a usage message.

...