nohup ./hbase-indexer server -z s1:2181,s2:2181,s3:2181,s4:2181,s5:2181 > /work/hbase-indexer.log &
./hbase-indexer add-indexer -n indexer_vip -c /opt/lucidworks-hdpsearch/hbase-indexer/demo/vip_indexer_mapper.xml -cp solr.zk=s1:2181,s2:2181,s3:2181,s4:2181,s5:2181/solr -cp solr.collection=collection_vip
<xml version="1.0" encoding="UTF-8"?> <indexer table="BizvaneV2.Vip" mapper="com.ngdata.hbaseindexer.morphline.MorphlineResultToSolrMapper"> <field name="firstname" value="info:firstname"/> <field name="age" value="info:age" type="int"/> indexer>
./hbase-indexer delete-indexer --name ‘indexer_vip‘
./hbase-indexer list-indexers -dump
Hbase-indexer常用命令