[Azkaban] azkaban configuration parameter transfer

Pass parameters (variables) to the world through configuration files

Example:

 1. Create a chuansan.job and a configuration file cs.properties on windows

chuansan.job

type=command
command=sh /test/test.sh ${a} ${b}

cs.properties

If the configuration file is a properties file, the file name can be customized

a=aaaaaa
b=bbbbbb

2. Write the script test.sh in Linux

test.sh

echo $2.$1 > /test/log.log

Combine the chuansan.job and cs.properties files into a zip package

3. Upload to azkaban web for execution

 

4. View the results

Guess you like

Origin blog.csdn.net/qq_44065303/article/details/109073494