Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Celebrating as our community reaches 100,000 members! Thank you!
avatar
New Contributor

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.

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