Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

SolrCloud Indexing is not working on HDP-2.6.0.3....

Highlighted

SolrCloud Indexing is not working on HDP-2.6.0.3....

Hi All,

I have installed HDP2.6 in my test environment and Solr service also enable using Ambari Management Pack. Following below steps, i am not able to see my Solr index updated.

>>>Start Solr in cloud mode (pointing to ZK)
cd /opt/lucidworks-hdpsearch/solr
bin/solr start -c -z xtlinno1vbigd2:2181
>>>Create collection
cd /opt/lucidworks-hdpsearch/solr
bin/solr create -c hbaseCol -d data_driven_schema_configs -n myCollConfigs -s 1 -rf 1
>>>Create collection
cd /opt/lucidworks-hdpsearch/solr
bin/solr create -c hbaseCol -d data_driven_schema_configs -n myCollConfigs -s 1 -rf 1
>>>Start Hbase indexer
cd /opt/lucidworks-hdpsearch/hbase-indexer/bin/
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre
./hbase-indexer server

>>>In a second terminal, create table to be indexed in HBase. Open hbase shell and run below to create a table named "indexdemo-user", with a single column family named "info". Note that the REPLICATION_SCOPE of the column family of the table must be set to 1.:
create 'indexdemo-user', { NAME => 'info', REPLICATION_SCOPE => '1' }
!quit


>>>Now we'll create an indexer that will index the the indexdemo-user table as its contents are updated.
vi /opt/lucidworks-hdpsearch/hbase-indexer/indexdemo-indexer.xml
 
<?xml version="1.0"?>
<indexer table="indexdemo-user">
  <field name="firstname_s" value="info:firstname"/>
  <field name="lastname_s" value="info:lastname"/>
  <field name="age_i" value="info:age" type="int"/>
</indexer>

>>>Next, create an indexer based on the created indexer xml file.
/opt/lucidworks-hdpsearch/hbase-indexer/bin/hbase-indexer add-indexer -n koko -c /opt/lucidworks-hdpsearch/hbase-indexer/indexdemo-indexer.xml -cp solr.zk=xtlinno1vbigd2:2181 -cp solr.collection=hbaseCol


>>>Log back in the hbase shell try adding some data to the indexdemo-user table
hbase> put 'indexdemo-user', 'row1', 'info:firstname', 'John'
hbase> put 'indexdemo-user', 'row2', 'info:lastname', 'Smith'
hbase> put 'indexdemo-user', 'row2', 'info:age', '30'

>>>Run commit
curl http://xtlinno1vbigd2:8983/solr/hbaseCol/update?commit=true

I cant see indexer updated with hbase entries.

Is this known issue with HDP2.6 as this has been working fine with HDP2.5?

or anybody have same issue or workaround?