- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
unable to start smarsense activity analyzer
Created 11-29-2017 05:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to start SmartSense activity analyzer but it is getting fail and logs are also not available for the same.
but I cat activity-analyzer.out and below is error :
nohup: failed to run command ‘/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/bin/java’: No such file or directory
I have checked java_home and it is : /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
and cat /etc/smartsense-activity/conf/activity.ini :
[java]
home = /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
then why in activity-analyzer.out this error is coming ?
Created 11-29-2017 06:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you will make changes to the "" script manually then that is not right because upon restart via Ambari Server , it will be replaced with the default JAVA_HOME setting that ambari server is setting.
export JAVA_HOME={{java_home}}So please make changes via ambari to make it permanently reflected.
Ambari UI --> SmartSense --> Configs --> Advanced --> Advanced activity-env --> activity-env.sh (Edit the "JAVA_HOME" here)
Replace the following:
export JAVA_HOME={{java_home}}
With:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
.
Please check your other hosts if the PATH exists? And check if other processes on the other hosts are using the JRE that you wanted to use or the JDK home that is mentioned in the ambari.properties? (usually the {{java_home}} is taken what is set in the ambari.properties if you do not explicitly make changes to it.)
# ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/bin/java # ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre/bin/java
.
# grep 'java.home' /etc/ambari-server/conf/ambari.properties java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64
.
Created 11-29-2017 06:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you will make changes to the "" script manually then that is not right because upon restart via Ambari Server , it will be replaced with the default JAVA_HOME setting that ambari server is setting.
export JAVA_HOME={{java_home}}So please make changes via ambari to make it permanently reflected.
Ambari UI --> SmartSense --> Configs --> Advanced --> Advanced activity-env --> activity-env.sh (Edit the "JAVA_HOME" here)
Replace the following:
export JAVA_HOME={{java_home}}
With:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre
.
Please check your other hosts if the PATH exists? And check if other processes on the other hosts are using the JRE that you wanted to use or the JDK home that is mentioned in the ambari.properties? (usually the {{java_home}} is taken what is set in the ambari.properties if you do not explicitly make changes to it.)
# ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/bin/java # ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64/jre/bin/java
.
# grep 'java.home' /etc/ambari-server/conf/ambari.properties java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64
.
Created 11-29-2017 07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it is starting thanks
Created 05-10-2018 07:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nice explanation @Jay Kumar SenSharma