当前位置:网站首页>搭建Ozzie环境
搭建Ozzie环境
2022-07-17 00:12:00 【sun_xo】
1) build
## download oozie-5.2.1.tar.gz from http://archive.apache.org/dist/
## unpack to ~/work/oozie-src-5.2.1
$ cd ~/work/oozie-src-5.2.1
$ diff pom.xml.orig pom.xml # modify according to hadoop version
83c83
< <hadoop.version>2.6.0</hadoop.version>
---
> <hadoop.version>2.8.0</hadoop.version>
$ bin/mkdistro.sh -Puber -DskipTests
## the tar ball distro/target/oozie-5.2.1-distro.tar.gz should be create
2) install
$ cd ~/work
$ tar xvf oozie-src-5.2.1/distro/target/oozie-5.2.1-distro.tar.gz
$ cd oozie-5.2.1
## download ExtJS 2.2 library to enable Oozie web console
## http://archive.cloudera.com/gplextras/misc/ext-2.2.zip
$ mkdir libext
$ cp ../downloads/ext-2.2.zip libext
3) configure
## modify oozie-site.xml
$ diff conf/oozie-site.xml.orig conf/oozie-site.xml
65c65,68
> <property>
> <name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
> <value>*=/Users/sun_xo/work/hadoop/etc/hadoop/</value>
> </property>
## modify core-site.xml and restart hadoop
$ cd ~/work/hadoop
$ mr.sh stop yarn
$ diff -r myconf/core-site.xml etc/hadoop/core-site.xml
27a28,36
> <!-- OOZIE -->
> <property>
> <name>hadoop.proxyuser.sun_xo.hosts</name>
> <value>localhost</value>
> </property>
> <property>
> <name>hadoop.proxyuser.sun_xo.groups</name>
> <value>*</value>
> </property>
$ mr.sh start yarn
## upload sharelib to hdfs
$ cd ~/work/oozie-5.2.1
$ bin/oozie-setup.sh sharelib create -fs hdfs://localhost:9000 -locallib oozie-sharelib-5.2.1.tar.gz
## check result on http://localhost:50070/explorer.html#/user/sun_xo/share
## create oozie db (in derby as default)
$ cd ~/work/oozie-5.2.1
$ bin/ooziedb.sh create -sqlfile oozie.sql -run
4) start oozie
$ bin/oozied.sh start # check by jps - check EmbeddedOozieServer
$ bin/oozie admin -oozie http://localhost:11000/oozie -status
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
System mode: NORMAL
## check result on http://localhost:11000/oozie/
5) run case
## prepare examples
$ cd ~/work/oozie-5.2.1
$ tar xvf oozie-examples.tar.gz
$ hdfs dfs -put examples /user/sun_xo/examples # upload examples
$ cd examples/apps/map-reduce # modify job.properties
$ diff job.properties.orig job.properties
19c19
< nameNode=hdfs://localhost:8020
---
> nameNode=hdfs://localhost:9000
## run a map-reduce case in examples
$ cd ~/work/oozie-5.2.1
$ export OOZIE_URL=http://localhost:11000/oozie
$ bin/oozie job -config examples/apps/map-reduce/job.properties -run
job: 0000000-220523112321053-oozie-sun_-W
## check result by job id or check on http://localhost:11000/oozie/
$ bin/oozie job -info 0000000-220523112321053-oozie-sun_-W
$ hdfs dfs -cat "/user/sun_xo/examples/output-data/map-reduce/*"
6) stop oozie
$ bin/oozied.sh stop # check by jps
边栏推荐
- SAE j1708/j1587 protocol details
- [literature reading] vaqf: full automatic software hardware co design framework for low bit vision transformer
- Hands on deep learning -- from full connection layer to convolution layer
- Fairness in Semi-supervised Learning: Unlabeled Data Help to Reduce Discrimination
- 03基于ZigBee的城市道路除尘降温系统设计
- Frustratingly Simple Few-Shot Object Detection
- Fairness in Deep Learning: A Computational Perspective
- Saber's most powerful digital analog mixed signal simulation software
- Nacos配置管理
- PCA主成分分析(降维)过程推导
猜你喜欢

动手学深度学习--线性神经网络篇

动手学深度学习--多层感知机篇(MLP)

动手学深度学习---深度学习计算篇

二阶边缘检测 - Laplacian of Guassian 高斯拉普拉斯算子

Frustratingly Simple Few-Shot Object Detection

L1,L2范数

Frustratingly Simple Few-Shot Object Detection

随机森林的理解

03 design of urban road dedusting and cooling system based on ZigBee

MATLAB :Warning: the font “Times” is not available
随机推荐
Fairness in Deep Learning: A Computational Perspective
JS practical tips
中心极限定理
Boost thread pool
Oozie 集成 Sqoop
利用因果线性模型监测不公平A Causal Linear Model to Quantify Edge Unfairness for Unfair Edge Prioritization
关于1000BASE-T1 1000BASE-TX和100BASE-T1
01 design of intelligent warehouse management system based on RFID
Remote sensing submission process
JS tree view array batch circular operation
IGBT 直通短路过程问题分析
Leveraging Semi-Supervised Learning for Fairness using Neural Networks
工厂方法模式随记
Yolov5训练建议
Handling Conditional Discrimination(可解释歧视和确切的歧视)
[vernacular analog 1] PN junction and diode
高斯分布的性质(含代码)
Rivaliser pour la guerre clé des utilisateurs de stock, aider les entreprises à construire un système d'étiquetage parfait 丨 01 examen en direct
Problems encountered in yolov3 training its own data set
原码,反码,补码