Configuring Phoenix to Run in a Secure Cluster
To configure Phoenix to run in a secure Hadoop cluster, set HBASE_CONF_PATH as follows:
export HBASE_CONF_PATH=HBASE_CONFIG_DIR:HADOOP_CONFIG_DIR
For example:
export HBASE_CONF_PATH=/etc/hbase/conf:/etc/hadoop/conf
Alternately, you can use the pre-2.2 method:
Link the HBase configuration file with the Phoenix libraries:
ln -sf <HBASE_CONFIG_DIR>/hbase-site.xml /usr/hdp/current/phoenix-client/bin/hbase-site.xml
Link the Hadoop configuration file with the Phoenix libraries:
ln -sf <HADOOP_CONFIG_DIR>/core-site.xml /usr/hdp/current/phoenix-client/bin/core-site.xml
ln -sf >HADOOP_CONFIG_DIR>/hdfs-site.xml /usr/hdp/current/phoenix-client/bin/hdfs-site.xml
Note | |
---|---|
When running the pssql.py and sqlline.py Phoenix scripts in secure mode, you can safely ignore the following warnings:
|