当前位置:网站首页>Azkaban actual combat
Azkaban actual combat
2022-07-05 02:46:00 【A vegetable chicken that is working hard】
A single job Case study
1. establish job Description file
- vim job1.job
#first.job
type=command
command=echo 'this is my first job'
2. take job Resource files are packaged into zip file
- install zip,unzip command
yum install -y unzip zip
- Compress
zip job1.zip job1.job
- Azkaban Uploaded workflow file Only support xxx.zip file ,zip Should include xxx.job Files and any files needed to run the job ( file name The suffix must be .job, Otherwise, I can't recognize ), The job name must be unique in the project
3. adopt azkaban Of web Management platform creation project And upload job Of zip package
- establish project

- Upload zip package

- Start execution of the job



- Job Successful implementation

- Click to see job journal

many job Workflow case
1. establish job Description file
- first job:start.job
vim start.job
#start.job
type=command
command=touch /usr/local/azkaban/jobs/t2test.txt
- the second job:step1.job rely on start.job
vim step1.job
#step1.job
type=command
dependencies=start
command=echo "this is step1 job"
- Third job:step2.job rely on start.job
vim step2.job
#step2.job
type=command
dependencies=start
command=echo "this is step2 job"
- The fourth one job:finish.job rely on step1.job and step2.job
vim finish.job
#finish.job
type=command
dependencies=step1,step2
command=echo "this is finish job"
2. take job Resource files are packaged into zip file
- zip jobs.zip start.job step1.job step2.job finish.job
3. adopt azkaban Of web Management platform creation project And upload job Of zip package


Java Operational tasks
1. To write java Program
import java.io.FileOutputStream;
import java.io.IOException;
public class AzkabanTest {
public void run() throws IOException {
FileOutputStream fos = new FileOutputStream("/usr/local/azkaban/t3test.txt");
fos.write("this is a java progress".getBytes());
fos.close();
}
public static void main(String[] args) throws IOException {
AzkabanTest azkabanTest = new AzkabanTest();
azkabanTest.run();
}
}
2.java The program is written as jar
- Generate class file

- jar -cvf AzkabanTest.jar AzkabanTest.class

- Move to linux Inside

- A test run
java -jar AzkabanTest.jar
3. To write job
- vim java.job
type=javaprocess
java.class=AzkabanTest
classpath=/usr/local/azkaban/jobs/t3/jar/* 4. take job become involved zip
- zip java.zip java.job
5.web operation

HDFS Operational tasks
1. establish job Description file
- vim fs.job
type=command
command=/usr/local/hadoop-2.7.1/bin/hadoop fs -mkdir /azkaban
2. take job Resource files are packaged into zip file
zip fs.zip fs.job
3.web operation


MapReduce Mission
1. establish job Description file
- vim mapreduce.job
#mapreduce job
type=command
command=/usr/local/hadoop-2.7.1/bin/hadoop jar /usr/local/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1.jar wordcount /wordcountinput /wordcountinputazkaban
2. take job Resource files are packaged into zip file
zip mapreduce.zip mapreduce.job
3.web operation


边栏推荐
- Design of kindergarten real-time monitoring and control system
- Elk log analysis system
- Azkaban实战
- Pytest (4) - test case execution sequence
- 2021 Li Hongyi machine learning (3): what if neural network training fails
- PHP cli getting input from user and then dumping into variable possible?
- Bumblebee: build, deliver, and run ebpf programs smoothly like silk
- Yolov5 model training and detection
- Why is this an undefined behavior- Why is this an undefined behavior?
- Hmi-31- [motion mode] solve the problem of picture display of music module
猜你喜欢

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety

openresty ngx_lua執行階段

Learn game model 3D characters, come out to find a job?

Azkaban实战

Exploration of short text analysis in the field of medical and health (I)

el-select,el-option下拉选择框

Avoid material "minefields"! Play with super high conversion rate

Application and Optimization Practice of redis in vivo push platform

2021 Li Hongyi machine learning (1): basic concepts

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
随机推荐
When the low alcohol race track enters the reshuffle period, how can the new brand break the three major problems?
Can you really learn 3DMAX modeling by self-study?
Design and implementation of community hospital information system
"C zero foundation introduction hundred knowledge and hundred cases" (72) multi wave entrustment -- Mom shouted for dinner
Tencent cloud, realize image upload
Hmi-30- [motion mode] the module on the right side of the instrument starts to write
Design and practice of kubernetes cluster and application monitoring scheme
PHP cli getting input from user and then dumping into variable possible?
Comparison of advantages and disadvantages between platform entry and independent deployment
From task Run get return value - getting return value from task Run
低度酒赛道进入洗牌期,新品牌如何破局三大难题?
Use the difference between "Chmod a + X" and "Chmod 755" [closed] - difference between using "Chmod a + X" and "Chmod 755" [closed]
Design and implementation of high availability website architecture
Yyds dry goods inventory intelligent fan based on CC2530 design
How to find hot projects in 2022? Dena community project progress follow-up, there is always a dish for you (1)
Chinese natural language processing, medical, legal and other public data sets, sorting and sharing
Serious bugs with lifted/nullable conversions from int, allowing conversion from decimal
【LeetCode】222. The number of nodes of a complete binary tree (2 mistakes)
单项框 复选框
Scientific research: are women better than men?