jbenninghoff / cluster-validation

Scripts to validate that a cluster is ready for MapR Data Platform installation
85 stars 94 forks source link

Fix JDK find in cluster-audit.sh #29

Closed jbenninghoff closed 7 years ago

jbenninghoff commented 7 years ago

Issue: The cluster audit reports that JDK is not installed, but it is. Here is the relevant error message from the audit logs: ls: cannot access /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el6_8.x86_64/jre/bin/jps: No such file or directory JDK not installed

jbenninghoff commented 7 years ago

Done. clush $parg $parg2 'javadir=$(dirname $(readlink -f /usr/bin/java); ls $javadir/jps || { ls $javadir/../../bin/jps || echo JDK not installed; }'