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
kinit
command ashbase
user before adding the Apache Omid service to the cluster. Ensure you have valid Kerberos credentials. You can list the Kerberos credentials using theklist
command.or
If you do not want to
kinit
as ahbase
user, 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 nameOMID_COMMIT_TABLE
) and timestamp table (default table nameOMID_TIMESTAMP_TABLE
).Apache Omid creates and writes to
OMID_COMMIT_TABLE
andOMID_TIMESTAMP_TABLE
during a transaction. - Ensure that the Apache Phoenix client doing transactions should have minimum
WRITE
permissions on commit table (default table nameOMID_COMMIT_TABLE
).
Add the Apache Omid service, and configure Apache Phoenix using Cloudera Manager.