hive学习总结(3)—从文件中加载执行语句

1. 从文件中执行hql语句

         hive -f test.hql;

2. hive shell中使用source执行脚本

        source test.hql;

注:hive执行语句的文件通常使用.hql.q为后缀名,但不是必须的。

猜你喜欢

转载自gaoxianwei.iteye.com/blog/2158797