首页 > 数据库技术 > 详细

hive -help hive命令行执行sql参数

时间:2019-04-22 20:15:34      阅读:363      评论:0      收藏:0      [点我收藏+]

在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参数

原文:https://www.cnblogs.com/drjava/p/10752225.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!