Kettle 笔记

Kettle 笔记

脚本用途说明:

    carte.sh:kettle 提供的Web Server,可以远程监控和开启转换集群;

    kitchen.sh:用来运行作业;

    pan.sh:用来运行转换;



运行作业方式:

    第一种:>./kitchen.sh -norep -file=/home/hadoop/test.kjb

    第二种:>./pan.sh -norep -file=/home/hadoop/test.ktr

    第三种:>./kitchen.sh -rep=rep_name -user=user_name -pass=password -dir=dir_path -job=***_job

    第四种:>./pan.sh -rep=rep_name -user=user_name -pass=password -dir=dir_path -trans=XXXXX_trans


其他参数说明

        -logfile:可以通过这个参数指定要输出的log存放位置。这里需要给定的是文件路径+文件名
        -param:这个就是所谓的命名参数,可以通过命名参数往转换,或是job中传递变量,得到的变量自然也就是命名变量了。使用的格式为:-param:param1='',param2=''
        -level:指定输出log的级别


你可能感兴趣的:(Kettle)