HADOOP_CLASSPATH设置
(2012-08-07 18:32:01)
标签:
hadoopit |
分类: Hadoop研究 |
在写hadoop程序编译时,往往需要HADOOP_CLASSPATH路径,可通过以下方式进行在编译脚本中设置:
for f in $HADOOP_HOME/hadoop-*.jar;
do
CLASSPATH=${CLASSPATH}:$f
done
for f in $HADOOP_HOME/lib/*.jar; do
CLASSPATH=${CLASSPATH}:$f
done
for f in $HIVE_HOME/lib/*.jar; do
CLASSPATH=${CLASSPATH}:$f
done
CLASSPATH=${CLASSPATH}:$f
done
for f in $HADOOP_HOME/lib/*.jar; do
CLASSPATH=${CLASSPATH}:$f
done
for f in $HIVE_HOME/lib/*.jar; do
CLASSPATH=${CLASSPATH}:$f
done