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]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to use PostgreSQL with Ambari and Ranger without errors in Namenode and Plugins

avatar

PostgreSQL is configured for Ambari, Hive and as the Ranger Audit store, instead of MySQL or Oracle.

The following errors occur upon Name node start after configuring Ranger HDFS Plugin:

  1. Connection to Postgres Timeout
  2. Cannot find jersey-client.jar
1 ACCEPTED SOLUTION

avatar

241-postgres-hadoop-env.png

  • Change hadoop-env template under HDFS -> Configs -> Advanced -> Advanced hadoop-env. Add the following:
#Add libraries required by postgres
for jarFile in `ls /usr/share/java/*postgres* 2>/dev/null`
do
  JAVA_JDBC_LIBS=${JAVA_JDBC_LIBS}:$jarFile
done
  • Save changes
  • If you are receiving the missing jersey-client.jar file, most likely Yarn Resource Manager is not on the same node as the NameNode
  • Use Ambari to move the Resource Manager to the Name Node

View solution in original post

2 REPLIES 2

avatar

241-postgres-hadoop-env.png

  • Change hadoop-env template under HDFS -> Configs -> Advanced -> Advanced hadoop-env. Add the following:
#Add libraries required by postgres
for jarFile in `ls /usr/share/java/*postgres* 2>/dev/null`
do
  JAVA_JDBC_LIBS=${JAVA_JDBC_LIBS}:$jarFile
done
  • Save changes
  • If you are receiving the missing jersey-client.jar file, most likely Yarn Resource Manager is not on the same node as the NameNode
  • Use Ambari to move the Resource Manager to the Name Node

avatar
Master Mentor