diff options
Diffstat (limited to 'src/rocksdb/hdfs/setup.sh')
-rwxr-xr-x | src/rocksdb/hdfs/setup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rocksdb/hdfs/setup.sh b/src/rocksdb/hdfs/setup.sh new file mode 100755 index 00000000..ba76ec20 --- /dev/null +++ b/src/rocksdb/hdfs/setup.sh @@ -0,0 +1,8 @@ +# shellcheck disable=SC2148 +export USE_HDFS=1 +export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64:$HADOOP_HOME/lib/native + +export CLASSPATH=`$HADOOP_HOME/bin/hadoop classpath --glob` +for f in `find /usr/lib/hadoop-hdfs | grep jar`; do export CLASSPATH=$CLASSPATH:$f; done +for f in `find /usr/lib/hadoop | grep jar`; do export CLASSPATH=$CLASSPATH:$f; done +for f in `find /usr/lib/hadoop/client | grep jar`; do export CLASSPATH=$CLASSPATH:$f; done |