tar -zxf /opt/pkg/apache-maven-3.6.3-bin.tar.gz -C /opt/core/
vim ~/.bash_profile
export M2_HOME=/opt/core/apache-maven-3.6.3/
export PATH=$PATH:$M2_HOME/bin
source ~/.bash_profile
mvn -version
vim /opt/core/apache-maven-3.6.3/conf/settings.xml
alimaven
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/
tar -zxf /opt/pkg/oozie-4.1.0.tar.gz -C /opt/core/
修改pom.xml,将Java版本修改为1.8
编译
cd /opt/core/oozie-4.1.0/
bin/mkdistro.sh -DskipTests
mv /opt/core/oozie-4.1.0 /opt/core/oozie-4.1.0_bak
tar -zxf /opt/core/oozie-4.1.0/distro/target/oozie-4.1.0-distro.tar.gz -C /opt/core/
mkdir /opt/core/oozie-4.1.0/libext
cp /opt/core/hadoop-2.7.5/share/hadoop/*/lib/*.jar /opt/core/oozie-4.1.0/libext
cp /opt/core/hadoop-2.7.5/share/hadoop/*/*.jar /opt/core/oozie-4.1.0/libext
cp /opt/pkg/mysql-connector-java-5.1.40-bin.jar /opt/core/oozie-4.1.0/libext
cp /opt/pkg/ext-2.2.zip /opt/core/oozie-4.1.0/libext
mv /opt/core/oozie-4.1.0/libext/servlet-api-2.5.jar /opt/core/oozie-4.1.0/libext/servlet-api-2.5.jar.bak
mv /opt/core/oozie-4.1.0/libext/jsp-api-2.1.jar /opt/core/oozie-4.1.0/libext/jsp-api-2.1.jar.bak
cd /opt/core/oozie-4.1.0/
bin/oozie-setup.sh prepare-war
# Set Java hoem and hadoop prefix
export JAVA_HOME=/opt/core/jdk1.8.0_65
export OOZIE_PREFIX=/opt/core/oozie-4.1.0/
# Set hadoop configuration path
export OOZIE_CONF_DIR=/opt/core/oozie-4.1.0//conf/
export OOZIE_HOME=/opt/core/oozie-4.1.0/
# add hadoop package
export CLASSPATH=$CLASSPATH:$OOZIE_HOME/libext/*.jar
source conf/oozie-env.sh
cd /opt/core/oozie-4.1.0/
tar -xzvf oozie-sharelib-4.1.0.tar.gz
cd /opt/core/oozie-4.1.0/
hdfs dfs -put share /user/root/
bin/ooziedb.sh create -sqlfile oozie.sql -run
start-dfs.sh
start-yarn.sh
mr-jobhistory-daemon.sh start historyserve
bin/oozied.sh start
bin/oozie admin --oozie http://localhost:11000/oozie -status
1.[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.7:javadoc (default) on project oozie-client: An error has occurred in JavaDocs report generation:
原因:Javadoc编译错误
解决:修改pom.xml文件中的maven-javadoc-plugin
插件,将版本升级到3.x之后,不然下面的参数 -Xdoclint:none 不会生效
org.apache.maven.plugins
maven-javadoc-plugin
3.0.1
false
none
参考:Javadoc编译错误
2. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-project-info-reports-plugin:2.3:dependencies (default) on project oozie-webapp: An error has occurred in Dependencies report generation.: error in opening zip file
解决:注释掉pom.xml
中的maven-project-info-reports-plugin
插件