start_thrift_server.sh
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:1k
- #!/bin/sh
- CLASSPATH=
- TOP=../../../..
- # the hadoop libraries
- for f in $TOP/build/*.jar ; do
- CLASSPATH=$CLASSPATH:$f
- done
- # the apache libraries
- for f in $TOP/lib/*.jar ; do
- CLASSPATH=$CLASSPATH:$f
- done
- # the thrift libraries
- for f in $TOP/lib/thrift/*.jar ; do
- CLASSPATH=$CLASSPATH:$f
- done
- # the thrift server
- for f in $TOP/build/contrib/thriftfs/*.jar ; do
- CLASSPATH=$CLASSPATH:$f
- done
- # the thrift hadoop api
- for f in $TOP/src/contrib/thriftfs/lib/*.jar ; do
- CLASSPATH=$CLASSPATH:$f
- done
- java -Dcom.sun.management.jmxremote -cp $CLASSPATH org.apache.hadoop.thriftfs.HadoopThriftServer $*