Using Apache Phoenix to store and access data
Also available as:
PDF

Connect to secured cluster

You can connect to a secured cluster using the Phoenix JDBC connector.

Enter the following syntax in the shell:

jdbc:phoenix:<zk hostname>:2181:<secured znode>:<principal name> :<hbase headless keytab file location> jdbc:phoenix:zk-host1:2181:/hbase-secure:hbase@EXAMPLE.COM/Users/user1.keytab

You need Principal and keytab parameters only if you have not done the kinit before starting the job and want Phoenix to log you in automatically.