PM commands issue an error when executed on the shell. It throws error even though I had run the profile.js and profile.lsf before running the command.
ERROR Message:
jsub
Error: Could not find
or load main class com.platform.LSFJobFlow.app.cli.JFSubmitFlow
caleditor
Error: Could not find
or load main class
com.platform.LSFJobFlow.app.caleditor.JFCalContainer
[/users/admin]$
jsub
Exception in thread
"main" java.lang.NoClassDefFoundError:
com.platform.LSFJobFlow.api.JFException
at
java.lang.J9VMInternals.verifyImpl(Native Method)
at
java.lang.J9VMInternals.verify(J9VMInternals.java:93)
at
java.lang.J9VMInternals.verify(J9VMInternals.java:91)
at
java.lang.J9VMInternals.prepare(J9VMInternals.java:490)
at
java.lang.Class.getMethod(Class.java:949)
at
sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by:
java.lang.ClassNotFoundException:
com.platform.LSFJobFlow.api.JFException
at
java.net.URLClassLoader.findClass(URLClassLoader.java:588)
at
java.lang.ClassLoader.loadClassHelper(ClassLoader.java:743)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:711)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:313)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:690)
Solution:
Linux does not have the JRE and class paths loaded by default. Try this
VERSION_DIR=$JS_HOME/$JS_VERSION/
APP_DIR=$VERSION_DIR/app
JRE_BIN=$VERSION_DIR/$JS_ARCH/jre/bin
LIB_JAVA_DIR=$VERSION_DIR/lib/java
JS_HOME is the home directory of the process manager. In other words it the location of process manager installation.
[admin@localhost app]$ . ~/profile.pm
[admin@localhost app]$ jjob
Usage: jjob [-h] [-V] [-u user_name] -i flow_id -r | -k | -c | -p | -g [-a] flow_name[:subflow_name]:job_name
[admin@localhost app]$ jsub
Usage: jsub [-h] [-V] [-H] [-r | -d] [-m comment] [ [ [-T time_event]...] [ [-F file_event]...]
[ [-p proxy_event]...] [-C combination_type] ] file_name
Comments
Post a Comment