用shell & Python 封装 Hive SQL 实现类Store Procedure 功能

用shell & Python 封装 Hive SQL 实现类Store Procedure 功能


Shell 资料 http://c.biancheng.net/cpp/view/7002.html

#!/bin/bash

hql = “        ”


hive -e hql

可以把 hive -e  单独封装成一个sh 脚本 ,dw_hive 


dw_hive hql



Python 示例 http://slaytanic.blog.51cto.com/2057708/734106/

posted @ 2016-07-04 15:53  yuerspring  阅读(485)  评论(0编辑  收藏  举报