dairui130

导航

hive -help hive命令行执行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:详细模式



 

posted on 2019-04-22 19:20  dairui130  阅读(1873)  评论(0编辑  收藏  举报