pider_car_db为hbase名
status:status, info:buy_kind为一行数据的展示信息
-loadKey导出主键
/tmp/pig_content_export为Hdfs文件位置
PigStorage(‘,’)为输出分隔符
x = LOAD ‘hbase://pider_car_db’ USING org.apache.pig.backend.hadoop.hbase.HBaseStorage(‘status:status,info:buy_kind,info:mileage,info:engine_volume’,’-loadKey’);
STORE x INTO ‘/tmp/pig_content_export’ USING PigStorage(‘,’);