tHBaseOutput example
In the following example, the tHBaseOutput component is configured to write data to a HortonWorks HBase table named hbase_employees, 550000 rows per batch. If the specified table already exists, the component will delete it and then create it again. The HBase version is HortonWorks Data Platform 2.5.0, the name of the the ZooKeeper service is hbase, and client listening port number is 2181.
DISTRIBUTION : "HORTONWORKS",
HBASE_VERSION : "HDP_2_5",
ZOOKEEPER_QUORUM : "\"hbase\"",
ZOOKEEPER_CLIENT_PORT : "\"2181\"",
TABLE : "\"hbase_employees\"",
TABLE_ACTION : "DROP_IF_EXISTS_AND_CREATE",
FAMILIES {
SCHEMA_COLUMN : "id",
FAMILY_COLUMN : "\"family1\"",
SCHEMA_COLUMN : "name",
FAMILY_COLUMN : "\"family2\"",
SCHEMA_COLUMN : "age",
FAMILY_COLUMN : "\"family1\""
},
USE_BATCH_MODE : "true",
BATCH_SIZE : "550000"
}