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]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
avatar
New Member

Whenever in SmartSense bundle if ranger metric related information is not there and if there is any consistent error or if the json files are completely blank. There is probability that the metric generating scripts doesn't get environment variable so please perform the below given steps and verify again.

1) Open file /etc/ambari-server/conf/ambari.properties
2) Check for java.home variable and copy its value
3) Go to Ranger conf directory, cd /usr/hdp/current/ranger-admin/conf/
4) Create a new file ranger-admin-env.sh with below content and save it.

export JAVA_HOME=<paste the java.home variable path value copied from ambari.properties file> 

5) Go to Ranger KMS conf directory, cd /usr/hdp/current/ranger-kms/conf/
6) Create a new file ranger-kms-env.sh with below content and save it.

export JAVA_HOME=<paste the java.home variable path value copied from ambari.properties file> 

7) From Amabari Restart Ranger and Ranger KMS

😎 Generate bundle from Ambari -> SmartSense View and verify it.

855 Views
Version history
Last update:
‎02-07-2018 03:16 PM
Updated by:
Contributors