您好,欢迎访问一九零五行业门户网

Hive命令行

hive 命令行 hive 命令行示例 从命令行执行指定的sql语句 $hive_home/bin/hive -e select a.col from tab1 a 以指定的hive环境变量执行指定的sql语句 $hive_home/bin/hive -e select a.col from tab1 a -hiveconf hive.exec.scratchdir=/home/my/hive_scratc
hive 命令行
hive 命令行示例从命令行执行指定的sql语句
$hive_home/bin/hive -e 'select a.col from tab1 a'
以指定的hive环境变量执行指定的sql语句
$hive_home/bin/hive -e 'select a.col from tab1 a' -hiveconf hive.exec.scratchdir=/home/my/hive_scratch -hiveconf mapred.reduce.tasks=32
以沉默模式执行指定的sql语句,并将执行结果导出到指定文件 hive_home/bin/hive -e 'select a.col from tab1 a' > a.txt
以非交互式模式执行sql文件
hive_home/bin/hive -f /home/my/hive-script.sql
在进入交互模式之前,执行初始化sql文件
hive_home/bin/hive -i /home/my/hive-init.sql
其它类似信息

推荐信息