Oozie运行Hadoop

1.解压oozie目录下的oozie-client-3.3.2.tar.gz、oozie-examples.tar.gz、oozie-sharelib-3.3.2.tar.gz
2.拷贝examples目录到HDFS上面
hadoop fs –copyFromLocal examples /user/hadoop/
3.修改oozie目录下examples/apps/map-reduce/job.properties
主要是修改NameNode和JobTracker的值
nameNode=hdfs://centos.master:9000
jobTracker=centos.master:9001
4.执行相关命令
bin/oozie job -oozie http://centos.master:11000/oozie -config ../examples/apps/map-reduce/job.properties -run

可以修改/etc/profile
export OOZIE_URL=http://centos.master:11000/oozie
以后执行就不必在带上
-oozie http://centos.master:11000/oozie

你可能感兴趣的:(hadoop,oozie)