Configure HBase for use with Phoenix

Before you start using Phoenix with HBase, you must configure HBase to recognize Phoenix operations.

Configure the following HBase properties using Cloudera Manager:

  1. Go to the HBase service.
  2. Click the Configuration tab.
  3. Select Scope > RegionServer.
  4. Select Category > Advanced.
  5. Locate WAL Codec class property or search for hbase.regionserver.wal.codec.
    Click View as XML and add the following property value:
    org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec
  6. Set the HBase Service Advanced Configuration Snippet and HBase Client Advanced Configuration Snippet properties to enable user-defined functions. Locate the property or search for HBase Service Advanced Configuration Snippet (Safety Valve) for hbase-site.xml and HBase Client Advanced Configuration Snippet (Safety Valve) for hbase-site.xml.
    Add the following property value:
    <property>
      <name>phoenix.functions.allowUserDefinedFunctions</name>
      <value>true</value>
    </property>
  7. Enter a Reason for change, and then click Save Changes to commit the changes.
  8. Restart the role and service when Cloudera Manager prompts you to restart.