Configure transaction support
Before you can start using transactions, you must first add the Apache Omid service and configure Apache Phoenix to enable transactions. Apache Omid provides the transaction management capability in Apache Phoenix.
- If your cluster is Kerberized, run the
hbaseuser before adding the Apache Omid service to the cluster. Ensure you have valid Kerberos credentials. You can list the Kerberos credentials using the
If you do not want to
hbaseuser, you can use Apache Ranger in the SDX Data Lake to grant the user permissions to CREATE, READ and WRITE on the commit table (default table name
OMID_COMMIT_TABLE) and timestamp table (default table name
Apache Omid creates and writes to
OMID_TIMESTAMP_TABLEduring a transaction.
- Ensure that the Apache Phoenix client doing transactions should have minimum
WRITEpermissions on commit table (default table name
Add the Apache Omid service, and configure Apache Phoenix using Cloudera Manager.
- On the Home > Status tab, click to the right of the cluster name and select Add a Service. A list of service types display. You can add one type of service at a time.
- Select Omid and click Continue.
- Click Finish to complete adding the Omid service. You return to the Cloudera Manager home page.
Verify the new service is started properly by checking the health status of the
new service. If the Health Status is
Good, then the service started properly.
- After the Omid service has started, go to the HBase service.
- Click the Configuration tab.
- Select Scope > Gateway.
- Select Category > Advanced.
Locate the HBase Client Advanced Configuration Snippet
property or search for
HBase Client Advanced Configuration Snippet (Safety Valve) for hbase-site.xml:Click View as XML and add the following property value:
<property> <name>phoenix.transactions.enabled</name> <value>true</value> </property>
- Enter a Reason for change, and then click Save Changes to commit the changes.
- Restart the role and service when Cloudera Manager prompts you to restart.