Nodejs-Koa2框架生态实战-从零模拟新浪微博
本篇博客展示案例:使用Oozie调度Shell脚本。
必看!如何download课程1.解压官方案例模板
[root
soozie-4.0.0-cdh5.3.6]#lltotaldrwxr-xr-x6Julbindrwxr-xr-x6Sep:08confdrwxr-xr-x6Juldocsdrwxr-xr-xJulhadooplibsdrwxr-xr-x6Jullibdrwxr-xr-x2rootrootSep:05libextdrwxr-xr-x2Jullibtools-rw-r--r--64JulLICENSE.txtdrwxr-xr-x2rootrootSep:42logs-rw-r--r--JulNOTICE.txtdrwxr-xr-xJuloozie-core-rw-r--r--53Juloozie-examples.tar.gz-rw-r--r--Juloozie-hadooplibs-4.0.0-cdh5.3.6.tar.gzdrwxr-xr-xJuloozie-server-r--r--r--Juloozie-sharelib-4.0.0-cdh5.3.6.tar.gz-r--r--r--Juloozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz-rw-r--r--1rootrootSep:33oozie.sql-rw-r--r--Juloozie.war-rw-r--r--10Julrelease-log.txtdrwxr-xr-x2011064001Julsrc[rootsoozie-4.0.0-cdh5.3.6]#[rootsoozie-4.0.0-cdh5.3.6]#tar-zxfoozie-examples.tar.gz[rootsoozie-4.0.0-cdh5.3.6]#lltotaldrwxr-xr-x6Julbindrwxr-xr-x6Sep:08confdrwxr-xr-x6Juldocsdrwxr-xr-x5rootroot44Sep:08examplesdrwxr-xr-xJulhadooplibsdrwxr-xr-x6Jullibdrwxr-xr-x2rootrootSep:05libextdrwxr-xr-x2Jullibtools-rw-r--r--64JulLICENSE.txtdrwxr-xr-x2rootrootSep:42logs-rw-r--r--JulNOTICE.txtdrwxr-xr-xJuloozie-core-rw-r--r--53Juloozie-examples.tar.gz-rw-r--r--Juloozie-hadooplibs-4.0.0-cdh5.3.6.tar.gzdrwxr-xr-xJuloozie-server-r--r--r--Juloozie-sharelib-4.0.0-cdh5.3.6.tar.gz-r--r--r--Juloozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz-rw-r--r--1rootrootSep:33oozie.sql-rw-r--r--Juloozie.war-rw-r--r--10Julrelease-log.txtdrwxr-xr-x2011064001Julsrc[rootsoozie-4.0.0-cdh5.3.6]#[rootsoozie-4.0.0-cdh5.3.6]#[rootsoozie-4.0.0-cdh5.3.6]#llgrepexamplesdrwxr-xr-x5rootroot44Sep:08examples-rw-r--r--53Juloozie-examples.tar.gz[root
soozie-4.0.0-cdh5.3.6]#2.创建工作目录
[root
soozie-4.0.0-cdh5.3.6]#mkdiryinzhengjie-oozie-jobs[rootsoozie-4.0.0-cdh5.3.6]#3.拷贝任务模板到oozie-apps/目录
[root
soozie-4.0.0-cdh5.3.6]#cp-rexamples/apps/shell/yinzhengjie-oozie-jobs/[rootsoozie-4.0.0-cdh5.3.6]#4.随意编写一个脚本yinzhengjie.sh
[root
yinzhengjieoozie-4.0.0-cdh5.3.6]#viyinzhengjie-oozie-jobs/shell/yinzhengjie.sh[rootyinzhengjieoozie-4.0.0-cdh5.3.6]#[rootyinzhengjieoozie-4.0.0-cdh5.3.6]#moreyinzhengjie-oozie-jobs/shell/yinzhengjie.sh#!/bin/bash#author:yinzhengjie#blog: 查看webUI状态:11.检查作业状态
[root
yinzhengjieoozie-4.0.0-cdh5.3.6]#bin/ooziejob--oozie转载请注明:http://www.0431gb208.com/sjszyzl/7939.html