当前位置: 首页 > article >正文

Kettle使用命令pan/kitchen执行任务时传参问题

在用windows任务执行kettle的kjb或ktr文件时,可通过bat命令传递参数,测试了很久,特此记录一下。

一、pan\kitchen 参数说明

Options:
/rep        : Repository name
/user       : Repository username
/pass       : Repository password
/job        : The name of the job to launch
/dir        : The directory (dont forget the leading /)
/file       : The filename (Job XML) to launch
/level      : The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing)
/logfile    : The logging file to write to
/listdir    : List the directories in the repository
/listjobs   : List the jobs in the specified directory
/listrep    : List the available repositories
/norep      : Do not log into the repository
/version    : show the version, revision and build date
/param      : Set a named parameter <NAME>=<VALUE>. For example -param:FOO=bar
/listparam : List information concerning the defined parameters in the specified job.
/export     : Exports all linked resources of the specified job. The argument is the name of a ZIP

二、常规变量的书写格式

options 后面可以是=也可以是:也可以是空格

如:pan /file d:\test.ktr   或者 -file=D:\test.ktr

三、参数变量的特殊格式

window下,一定要用 " " 双引号,多个变量按顺序书写即可(linux下不用引号)

如:pan /file d:\test.ktr "-param:key1=value1" "-param:key2=value2"

四、kjb\ktr参数变量的接收

      一定在任务中定义命名参数,否则参数无法传递成功


http://www.kler.cn/news/295190.html

相关文章:

  • Node.js学习记录(一)
  • MySQL中常见的存储引擎有什么?
  • python操作数据对象方法和高阶函数
  • 19章 泛型(编程练习题)
  • windows C++-并行编程-将使用缩减变量的 OpenMP 循环转换为使用并发运行时
  • 经验笔记:负载均衡
  • Hive的优势与使用场景
  • WebTopo 组态软件+ARM 工业计算机:重塑污水处理
  • macos系统内置php文件列表 系统自带php卸载方法
  • 周报2024、9、8
  • 消息认证码(MAC)
  • HTTP与HTTPS:网络通信的安全之旅
  • 通信工程学习:什么是AB地址总线、DB数据总线、CD控制总线
  • 今日早报 每日精选15条新闻简报 每天一分钟 知晓天下事 9月8日,星期日
  • [动态规划] 删除并获得点数
  • el-table 封装表格(完整代码-实时更新)
  • 【技术调研】三维(0)-webGL、三维基础知识、前置知识、数学知识以及简单示例
  • 【Linux】服务器上在VSCode中运行JupyterNotebook
  • Exchange 服务器地址列表的配置方法与注意事项
  • 物联网之MQTT
  • 计算机视觉中,如何理解自适应和注意力机制的关系?
  • 云手机怎样简化海外社媒平台运营
  • 网关功能介绍
  • ffmpeg命令(详解)
  • 什么是GPT-3的自回归架构?为什么GPT-3无需梯度更新和微调
  • 数学基础 -- 统计学之零均值化
  • 小米Vela:端侧AI推理框架
  • 域名证书,泛域名证书,sni
  • 测试一些概念
  • Flutter集成Firebase框架