标签:
pig -Dpig.additional.jars=/home/pps_recommend/pig-0.11.0/lib/protobuf-java-2.4.0a.jar -x $varPigMode << EOF
recommend_data = LOAD ‘$recommend_output‘ as(id:chararray,items:chararray);
STORE recommend_data INTO ‘hbase://short_video_recommend‘ USING org.apache.pig.backend.hadoop.hbase.HBaseStorage(‘info:items‘);
EOF
(提示:EOF是将其他应用程序在shell中输出,切记:特别在shell中有if判断语句 EOF要顶格写)
#pig.load.default.statements=
hbase.zookeeper.quorum=10.11.8.161,10.11.8.162,10.11.8.163,10.11.8.164,10.11.8.165,10.11.8.166,10.11.8.167
hbase.master.info.bindAddress=10.11.5.222
hbase.master.port=60000
# --------------------------------------------------------------------------------------------------------------------------------------------
#hbase.zookeeper.quorum= zookeeper集群地址
#hbase.master.info.bindAddress=hbase master地址
#hbase.master.port=hbase master端口
标签:
原文地址:http://my.oschina.net/guoenzhou/blog/515333