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.

Enabling secondary indexes in Phoenix

Highlighted

Enabling secondary indexes in Phoenix

Contributor

I followed the configuration changes mentioned here to enable secondary indexes for mutable columns in Phoenix, but am getting ClassNotFound exceptions now when I try to restart my HBase services. Has anyone else been able to do this? Can you share your config settings?

2 REPLIES 2
Highlighted

Re: Enabling secondary indexes in Phoenix

If you are on HDP 2.4 or plus,

Please remove following classes from master and regionserver configs respectively.

<property>
  <name>hbase.master.loadbalancer.class</name>
  <value>org.apache.phoenix.hbase.index.balancer.IndexLoadBalancer</value>
</property>
<property>
  <name>hbase.coprocessor.master.classes</name>
  <value>org.apache.phoenix.hbase.index.master.IndexMasterObserver</value> 
</property>
<property>
  <name>hbase.coprocessor.regionserver.classes</name>
  <value>org.apache.hadoop.hbase.regionserver.LocalIndexMerger</value>
</property>

As these are not required, because our local index implementation has changed.

Highlighted

Re: Enabling secondary indexes in Phoenix

If @ankit's suggestion did not help, please post the ClassNotFoundException trace and message so we can provide more help. Thanks.

Don't have an account?
Coming from Hortonworks? Activate your account here