如何从hive cli运行配置单元脚本

时间:2017-10-18 13:15:54

标签: hadoop hive

我有hive脚本custsales.hql现在我想从hive cli运行它

hive (pract5)> run /user/training/hdfs_location/custsales.hql

但它没有执行。请指导。我知道我们可以使用

从命令行运行它
$ hive -f /home/training/local_location/custsales.hql

但这不是我的要求。

1 个答案:

答案 0 :(得分:1)

使用source path/to/script命令。