准备环境
下载Oozie工作流
http://oozie.apache.org/
oozie-4.2.0
下载依赖
http://oozie.apache.org/docs/4.2.0/DG_QuickStart.html
ext-2.2.zip
解压后
tar -zxvf oozie-4.2.0.tar.gz
cd oozie-4.2.0
修改POM文件里的以下参数
1.7
因为不支持最新的Hive和Spark其他的版本保持默认
修改hadoop-2的版本
hadoop-2
<repository>
<id>codehaus-mule-repo</id>
<url>https://repository-master.mulesoft.org/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
编译
bin/mkdistro.sh -P hadoop-2 -DskipTests
或
mvn clean package assembly:single -P hadoop-2 -DskipTests
将./oozie-4.2.0/distro/target/oozie-4.2.0-distro.tar.gz 拷贝出来解压
tar -zxvf oozie-4.2.0-distro.tar.gz /usr/local/
mv oozie-4.2.0 oozie
环境变量
vim /etc/profile
export OOZIE_HOME=/usr/local/oozie
export OOZIE_CONFIG=/usr/local/oozie/conf
PATH=$OOZIE_HOME/bin:$PATH
复制依赖包
mkdir -p /usr/local/oozie/libext
cp /usr/local/src/mysql-connector-java-5.1.35.jar /usr/local/oozie/libext/
cp ext