运行jar包所需要的环境依赖

前端之家收集整理的这篇文章主要介绍了运行jar包所需要的环境依赖前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

```

hadoop_HOME="/opt/cloudera/parcels/CDH-5.6.0-1.cdh5.6.0.p0.45/bin/../lib/hadoop"

for f in $hadoop_HOME/hadoop-*.jar; do

hadoop_CLASSPATH=${hadoop_CLASSPATH}:$f

done

for f in $hadoop_HOME/lib/*.jar; do

hadoop_CLASSPATH=${hadoop_CLASSPATH}:$f

done

hadoopvfs_HOME="/home/work/tools/java/hadoop-client/hadoop-vfs"

for f in $hadoopvfs_HOME/lib/*.jar; do

hadoop_CLASSPATH=${hadoop_CLASSPATH}:$f

done

export hadoop_CLASSPATH=${hadoop_CLASSPATH}:/home/boco4a/Utils-1.0-SNAPSHOT.jar

java -classpath $CLASSPATH:$hadoop_CLASSPATH FTP.FtpPonshine2HDFS2

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/work/tools/java/hadoop-client/hadoop/lib/native/Linux-amd64-64/

```

原文链接:https://www.f2er.com/javaschema/283548.html

猜你在找的设计模式相关文章