Greg Senia created SYSTEMML-655:
-----------------------------------
Summary: Missing JAVA_HOME when Starting Application Master
Key: SYSTEMML-655
URL: https://issues.apache.org/jira/browse/SYSTEMML-655
Project: SystemML
Issue Type: Bug
Components: Runtime
Affects Versions: SystemML 0.10
Environment: RHEL6/Cent OS6
Reporter: Greg Senia
When attempting to execute the following task via SystemML using the YARN
ApplicationMaster it is not sourcing Hadoop's JAVA_HOME it is taking whatever
is defined in the OS $PATH variable throwing the error below. The solution is
to use the YARN function: Environment.JAVA_HOME.$$() + "/bin/java".
The version of java installed by Centos/RHEL is 1.5 GCC version:
$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ rpm -qa | grep -i java
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
Log Type: stderr
Log Upload Time: Fri Apr 29 13:52:31 -0400 2016
Log Length: 759
Exception in thread "main" java.lang.NoClassDefFoundError:
org.apache.sysml.yarn.DMLAppMaster
at gnu.java.lang.MainThread.run(libgcj.so.10)
Caused by: java.lang.ClassNotFoundException: org.apache.sysml.yarn.DMLAppMaster
not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/hdp/current/hadoop-client/conf/,file:/var/log/hadoop/yarn/local/usercache/user1/appcache/application_1461793090016_0095/container_e160_1461793090016_0095_02_000001/,file:/etc/hadoop/conf/secure/],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at gnu.java.lang.MainThread.run(libgcj.so.10)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)