The hiverc File
The CLI when invoked without the -i
option will attempt to load $HIVE_HOME/bin/.hiverc and $HOME/.hiverc as initialization files.
- 在不带
-i
选项的情况下调用CLI时,将尝试加载$HIVE_HOME/bin/.hiverc和$HOME/.hiverc作为初始化文件。
注:这也是为什么给租户配置.hiverc会被读取到的原因。
Hive Command Line Options
To get help, run "hive -H
" or "hive --help
".
Usage (as it is in Hive 0.9.0):
usage: hive
-d,--define <key=value> Variable substitution to apply to Hive
commands. e.g. -d A=B or --define A=B
-e <quoted-query-string> SQL from command line
-f <filename> SQL from files
-H,--help Print help information
-h <hostname> Connecting to Hive Server on remote host
--hiveconf <property=value> Use value for given property
--hivevar <key=value> Variable substitution to apply to hive
commands. e.g. --hivevar A=B
-i <filename> Initialization SQL file
-p <port> Connecting to Hive Server on port number
-S,--silent Silent mode in interactive shell
-v,--verbose Verbose mode (echo executed SQL to the
console)
Version information
As of Hive 0.10.0 there is one additional command line option:
--database <dbname> Specify the database to use
- hive -i 初始化脚本