1. 程式人生 > >hive -help hive命令行執行sql參數

hive -help hive命令行執行sql參數

sil style shell命令 cif command -h active -i 執行sql

在shell命令行執行

hive -help

結果如下:

-d,--define <key=value> Variable substitution to apply to Hive
commands. e.g. -d A=B or --define A=B
--database <databasename> Specify the database to use
-e <quoted-query-string> SQL from command line
-f <filename> SQL from files
-H,--
help Print help information --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 -S,--silent Silent mode in interactive shell -v,--verbose Verbose mode (echo executed SQL to the
console)

我們逐一解釋一下:

-d:定義變量 如-d A=B or --define A=B
-e:執行sql語句
-f:執行sql文件
-i:初始化sql file
-S:安靜模式。後臺執行,不輸出執行情況
-v:詳細模式



hive -help hive命令行執行sql參數