Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 05-08-2017 03:07 PM
I want to avoid setting auto-commit=true by default, thus I am not adding the required property in hbase-site.xml.
However, I want to add auto commit property to the jdbc url so that I can get a connection with autocommit=true on need basis.
I am not able to find how to add this property to connection url.
I have a kerberized cluster and I an using the following url:
jdbc:phoenix[:zk_quorum][:zk_port][:zk_hbase_path][:headless_keytab_file:principal]
I also tried the following approach but it did not connect due to malformed url:
jdbc:phoenix[:zk_quorum][:zk_port][:zk_hbase_path][:headless_keytab_file:principal][:AutoCommit=true]
Created 05-08-2017 03:11 PM
Replace the colon with a semi-colon in jdbc url and this will work:jdbc:phoenix[:zk_quorum][:zk_port][:zk_hbase_path][:headless_keytab_file:principal] [;autocommit=true]
Created 05-08-2017 03:11 PM
Replace the colon with a semi-colon in jdbc url and this will work:jdbc:phoenix[:zk_quorum][:zk_port][:zk_hbase_path][:headless_keytab_file:principal] [;autocommit=true]
Created 05-08-2017 07:52 PM
Thank you. This solved the problem.
Created 05-08-2017 03:13 PM
you can use PhoenixRuntime.AUTO_COMMIT_ATTRIB as supported in following class.
Please see the following JIRA to make sure you are using the version of Phoenix that supports it.