Posted on 2012-12-28 20:44
鑫龙 阅读(4727)
评论(1) 编辑 收藏 引用 所属分类:
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
转自:
http://blog.sina.com.cn/s/blog_62a9902f01017x7j.html