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 html
(提示:EOF是將其餘應用程序在shell中輸出,切記:特別在shell中有if判斷語句 EOF要頂格寫) java
#pig.load.default.statements= shell
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 apache
hbase.master.info.bindAddress=10.11.5.222 分佈式
hbase.master.port=60000 ide
# -------------------------------------------------------------------------------------------------------------------------------------------- 函數
#hbase.zookeeper.quorum= zookeeper集羣地址 oop
#hbase.master.info.bindAddress=hbase master地址 spa
#hbase.master.port=hbase master端口 htm