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 hostnames>:<ZK port>:<root znode>:<principal name>:<keytab file location>
jdbc:phoenix:h1.hdp.local,h2.hdp.local,h3.hdp.local:2181:/hbase-secure:user1@HDP.LOCAL:/Users/user1/keytabs/myuser.headless.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.