Skip to content

Instantly share code, notes, and snippets.

@dbist
Last active March 28, 2018 14:36
Show Gist options
  • Save dbist/e0628a9b8a99fca95446dd6b0fc52006 to your computer and use it in GitHub Desktop.
Save dbist/e0628a9b8a99fca95446dd6b0fc52006 to your computer and use it in GitHub Desktop.
build and deploy oozie
wget http://people.apache.org/\~satishsaley/oozie-4.3.1-rc3/oozie-4.3.1.tar.gz
$ bin/mkdistro.sh -DskipTests -Puber -DtargetJavaVersion=1.8 -DjavaVersion=1.8 -Dhadoop.version=2.7.5
$ cd distro/target/oozie-4.3.1-distro/oozie-4.3.1/
$ ls -lrt
total 871232
drwxr-xr-x 4 asasvari staff 136 Jan 30 11:16 oozie-core
-rw-r--r-- 1 asasvari staff 121306053 Jan 30 11:16 oozie.war
-rw-r--r-- 1 asasvari staff 46437 Jan 30 11:16 oozie-examples.tar.gz
-rw-r--r-- 1 asasvari staff 9140548 Jan 30 11:16 oozie-client-4.3.1.tar.gz
-rw-r--r-- 1 asasvari staff 8154484 Jan 30 11:16 docs.zip
-rw-r--r-- 1 asasvari staff 118650 Jan 30 11:16 release-log.txt
-r--r--r-- 1 asasvari staff 307294992 Jan 30 11:16 oozie-sharelib-4.3.1.tar.gz
drwxr-xr-x 4 asasvari staff 136 Jan 30 11:16 libtools
drwxr-xr-x 11 asasvari staff 374 Jan 30 11:16 conf
drwxr-xr-x 17 asasvari staff 578 Jan 30 11:16 bin
drwxr-xr-x 13 asasvari staff 442 Jan 30 11:17 oozie-server
# this is not required on Oozie 5.0 since we're using Jetty instead of Tomcat
$ bin/oozie-setup.sh prepare-war
setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
INFO: Oozie webconsole disabled, ExtJS library not specified
New Oozie WAR file with added '' at /Users/asasvari/Downloads/oozie-4.3.1-rc3/distro/target/oozie-4.3.1-distro/oozie-4.3.1/oozie-server/webapps/oozie.war
hdfs dfs -mkdir -p /user/oozie
hdfs dfs -chown -R oozie:hdfs /user/oozie
INFO: Oozie is ready to be started
$ bin/oozie-setup.sh sharelib create -fs hdfs://localhost:9000 -concurrency 8 -locallib /user/oozie/oozie-sharelib-4.3.1.tar.gz
$ bin/oozied.sh start
$ curl http://localhost:11000/oozie/v2/admin/status
{"systemMode":"NORMAL"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment