<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
<str name="clean">false</str>
<str name="commit">true</str>
<str name="verbose">true</str>
</lst>
</requestHandler>
<dataConfig>
<dataSource name="HBase" type="HBaseDataSource"
rootDir="hdfs://localhost:8020/hbase"
zookeeper="localhost"/>
<document>
<entity name="hbase" dataSource="HBase" processor="HBaseEntityProcessor"
table ="Test" columns="f1:cq1,f1:cq2" required="f1:cq1,f1:cq2"
startTime="${dataimporter.last_index_time}">
<field column="rowkey" name="id" />
<field column="cq1" name="columnQualifier1" />
<field column="cq2" name="columnQualifier2" />
</entity>
</document>
</dataConfig>
- rootDir: Hbase Root Directory
- zookeeper: Hbase Zookeeper
- table: hbase table name
- columns: column family and column qualifier
- required: required column for scan filter
- rowkey: hbase rowkey