Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Not applicable

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

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

136 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎02-07-2018 03:16 PM
Updated by:
 
Contributors
Top Kudoed Authors