xuplus 2014-01-01
1.解压oozie目录下的oozie-client-3.3.2.tar.gz、oozie-examples.tar.gz、oozie-sharelib-3.3.2.tar.gz
2.拷贝examples目录到HDFS上面
hadoopfs–copyFromLocalexamples/user/hadoop/
3.修改oozie目录下examples/apps/map-reduce/job.properties
主要是修改NameNode和JobTracker的值
nameNode=hdfs://centos.master:9000
jobTracker=centos.master:9001
4.执行相关命令
bin/ooziejob-ooziehttp://centos.master:11000/oozie-config../examples/apps/map-reduce/job.properties-run
可以修改/etc/profile
exportOOZIE_URL=http://centos.master:11000/oozie
以后执行就不必在带上
-ooziehttp://centos.master:11000/oozie