diff --git a/bin/worker.sh b/bin/worker.sh index 26e3b2f..d978e22 100755 --- a/bin/worker.sh +++ b/bin/worker.sh @@ -8,4 +8,6 @@ fi CONFDIR="${PREFIX}/etc" . ${CONFDIR}/env.sh +export LD_LIBRARY_PATH + java -cp $CLASSPATH nfdist.Worker $@ diff --git a/etc/libdeps.sh b/etc/libdeps.sh index ea25af5..27b2e60 100644 --- a/etc/libdeps.sh +++ b/etc/libdeps.sh @@ -2,16 +2,16 @@ # List of required libraries LIBS="nfdist.jar" -LIBS="$LIBS log4j-1.2.jar slf4j-api.jar slf4j-log4j12.jar protobuf.jar zookeeper.jar" +LIBS="$LIBS log4j-1.2.17.jar slf4j-api-1.7.5.jar slf4j-log4j12.jar protobuf-java-2.5.0.jar zookeeper.jar" LIBS="$LIBS hadoop-common.jar hadoop-auth.jar hadoop-hdfs.jar hadoop-annotations.jar" -LIBS="$LIBS commons-lang.jar commons-logging.jar commons-configuration.jar" -LIBS="$LIBS commons-collections3.jar commons-cli.jar commons-io-2.4.jar guava.jar" +LIBS="$LIBS commons-lang-2.6.jar commons-logging-1.1.3.jar commons-configuration-1.6.jar" +LIBS="$LIBS commons-collections-3.2.1.jar commons-cli-1.2.jar commons-io-2.4.jar guava-11.0.2.jar" # Search path for library dependencies if [ -z "$LIBDIRS" ]; then LIBDIRS="./lib" fi -LIBDIRS="$LIBDIRS /usr/share/java /usr/lib/hadoop /usr/lib/hadoop-hdfs /usr/lib/zookeeper" +LIBDIRS="$LIBDIRS /usr/share/java /usr/lib/hadoop /usr/lib/hadoop/lib /usr/lib/hadoop-hdfs /usr/lib/zookeeper" if [ -z "$CLASSPATH" ]; then CLASSPATH="./etc"