oozie安装成功后,接下来运行一个官方的mapreduce案例,参考官网:
http://archive.cloudera.com/cdh5/cdh/5/oozie-4.0.0-cdh5.3.6/DG_Examples.html
1、解压oozie-example到oozie根目录
Expanding this file will create an examples/ directory in the local file system
examples下的子目录解析:
apps:所有自带的oozie案例,有mapreduce、hive、sqoop等等
input-data:案例存放的测试数据
src:案例源码
2、将exmples上传到HDFS的跟目录下
hdfs的根目录,即/uer/xusy
xusy—HDFS的用户名
命令:
$dfs -put examples examples
3、workflow解析
workflow.xml----->必须在hdfs上
start
...
action
...
end
job.properties:属性信息 --->必须在本地-->需要根据实际配置
lib:依赖包---->必须在本地
4、配置job.properties
nameNode=hdfs://xuxudede.com:9000
jobTracker=xuxudede.com:8032
queueName=default
examplesRoot=examples
oozie.wf.appli