Module load not working in bash
- Details Hits: 11112
module load not working in bash
workaround: load environment manually.
. /opt/modules/Modules/3.2.5/init/bash
for example:
#!/bin/bash
. /opt/modules/Modules/3.2.5/init/bash
module load java/jdk1.6.0_23-64bit
module load libraries/hadoop-0.20.2
[[ ! -d build ]] && mkdir build;
javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar \
-sourcepath src \
-d build \
src/org/myorg/WordCount.java
jar -cvf wordcount.jar -C build/ .
You need this only if you're running this on fep.grid.pub.ro. The worker nodes do not need this.
Original link: http://www.unix.com/unix-advanced-expert-users/74588-makefile-problem-how-run-module-load-makefile.html