使用hbase11xreader写入hdfswriter(数据尽量落至HDFS,Hbase数据是二进制文件,压缩比1:7左右)
{
"job": {
"setting": {
"speed": {
"channel": 1
}
},
"content": [
{
"reader": {
"name": "hbase11xreader",
"parameter": {
"hbaseConfig": {
"hbase.zookeeper.quorum": "zookeeper:2181,zookeeper:2181,zookeeper:2181",
"zookeeper.znode.parent": "/hbase-unsecure",
"hbase.cluster.distributed": true
},
"table": "$table_name",
"encoding": "utf-8",
"mode": "normal",
"column": [
{
"name": "rowkey",
"type": "string"
},
{
"name": "cf: count1",
"type": "string"
}
],
"range": {
"startRowkey": "",
"endRowkey": "",
"isBinaryRowkey": true
}
}
},
"writer": {
"name": "hdfswriter",
"parameter": {
"column": [{
"name": "rowkey",
"type": "string"
},
{
"name": "count1",
"type": "string"
}
],
"defaultFS": "hdfs://nameserver:8020",
"path": "/text/",
"fileName": "text",
"writeMode": "append",
"fileType": "text",
"fieldDelimiter": "\x01"
}
}
}
]
}
}