ant-hive
command="export HADOOP_HOME=/home/hadoop/hadoop-1.0.3;echo $HADOOP_HOME;export PATH=$PATH:/home/hadoop/hadoop-1.0.3/bin;echo $PATH;cd /home/hadoop/hive-0.9.0/bin;./hive-e "INSERT OVERWRITEDIRECTORY '/user/hadoop/novelrecommend' select a.VC_COOKIE_UID,a.p1_nid,a.p4_st_or_s_order,b.nid,b.gid,b.gpv from ngpv b join novel4 aon (a.p1_nid=b.nid and a.p4_st_or_s_order <>'#' and a.VC_COOKIE_UID <>'' and a.VC_COOKIE_UID <>'#' anda.p1_nid<>'#' and a.vc_vst_url_name='show');""
页:
[1]