[hadoop][Azkaban]#1_azkaban快速入门

Dependency作业

# foo.job
type=command
command=echo foo
# bar.job
type=command
dependencies=foo
command=echo bar

2个文件打包为zip

hdfs作业

# hdfs.job
type=command
command=hadoop fs -ls /

打包为zip

mapreduce作业

# mr.job
type=command
command=hadoop jar /opt/hadoop-2.6.0-cdh5.15.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0-cdh5.15.1.jar pi 2 3

hive作业

# hive.job
type=command
command=$HIVE_HOME/bin hive -f 'test.sql'

将hive.job,test.sql打为一个包

你可能感兴趣的:(hadoop)