compile
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:1k
- #!/usr/bin/env bash
- export HADOOP_HOME=../../../../..
- export CLASSPATH="$HADOOP_HOME/build/classes"
- export CLASSPATH=${CLASSPATH}:"$HADOOP_HOME/build/contrib/abacus/classes"
- # so that filenames w/ spaces are handled correctly in loops below
- IFS=
- # add libs to CLASSPATH
- for f in $HADOOP_HOME/lib/*.jar; do
- CLASSPATH=${CLASSPATH}:$f;
- done
- for f in $HADOOP_HOME/lib/jetty-ext/*.jar; do
- CLASSPATH=${CLASSPATH}:$f;
- done
- # restore ordinary behaviour
- unset IFS
- jythonc -p org.apache.hadoop.abacus.examples -d -j jwc.jar -c JythonAbacus.py JyAbacusWCPlugIN.py
- jar -uvf jwc.jar -C $HADOOP_HOME/build/contrib/abacus/classes .