HBase20x SQL Writer
HBase20x SQL Writer plugin implements writing data to HBase 2.x via Phoenix SQL interface.
Configuration Example
This plugin is used to write data to HBase 2.x via Phoenix. This plugin is based on RDBMS Writer, so you can refer to all configuration items of RDBMS Writer.
json
{
"job": {
"content": {
"reader": {
"name": "txtfilereader",
"parameter": {
"path": "/tmp/normal.txt",
"charset": "UTF-8",
"column": [
{
"index": 0,
"type": "String"
},
{
"index": 1,
"type": "string"
},
{
"index": 2,
"type": "string"
},
{
"index": 3,
"type": "string"
}
],
"fieldDelimiter": ","
}
},
"writer": {
"name": "hbase20xsqlwriter",
"parameter": {
"batchSize": "100",
"column": [
"UID",
"TS",
"EVENTID",
"CONTENT"
],
"queryServerAddress": "http://127.0.0.1:8765",
"nullMode": "skip",
"table": "TEST_TBL"
}
}
},
"setting": {
"speed": {
"channel": 5,
"bytes": -1
}
}
}
}