首先要做的是将kettle在linux下搭建好。

一、搭建linux的kettle环境

1.1解压

(my_python_env)[root@hadoop26 ~]# unzip pdi-ce-6.0.0.0-.zip -d /usr/local/kettle/

1.2配置kettle_home

export KETTLE_HOME=/usr/local/kettle

1.3需要把文件资源库的配置拷贝到linux环境下

(my_python_env)[root@hadoop26 kettle]# ls -a
. .. data-integration .kettle

1.4拷贝资源库到linux下

(my_python_env)[root@hadoop26 kettle]# ls -a
. .. data-integration .kettle local_file_repo

1.5修改.kettle目录下的资源库的映射

<repository>
<id>KettleFileRepository</id>
<name>local_file_repo</name>
<description>local_file_repo</description>
<base_directory>/usr/local/kettle/local_file_repo</base_directory>
<read_only>N</read_only>
<hides_hidden_files>N</hides_hidden_files>
</repository>

1.6吧mysql的驱动包放到kettle的lib目录下

二、如何在linux下运行转换和job

2.1不指定资源库的运行方式

1、执行作业
sh /opt/data-integration/kitchen.sh -norep -file **.kjb -level Detailed -param:beginDate=2015-03-08 -param:endDate=2015-03-08
2、执行转换
sh /opt/data-integration/pan.sh -norep -file **.ktr -level Detailed -param:beginDate=2015-03-08 -param:endDate=2015-03-08

2.2指定文件资源库

1、执行作业
sh /opt/data-integration/kitchen.sh -rep kettle_file -job J_exam_core_stat -dir /exam_core_stat -level Detailed -param:queryDate=2015-11-17
2、执行转换
sh /opt/data-integration/pan.sh -rep kettle_file -trans T_O_core_stat -dir /exam_core_stat -level Detailed -param:queryDate=2015-02-28

2.3指定数据库资源库

1、执行作业
sh /opt/data-integration/kitchen.sh -rep online -user admin -pass admin -job J_exam_core_stat -dir /core/exam_core_data_stat/ -level detail -param:queryDate=2014-10-08
2、执行转换
sh /opt/data-integration/pan.sh -rep online -user admin -pass admin -job J_exam_core_stat -dir /core/exam_core_data_stat/ -level detail -param:queryDate=2014-10-08

kettle--window开发环境和linux运行环境的迁移的更多相关文章

  1. 【netcore基础】CentOS 7.6.1810 搭建.net core 2.1 linux 运行环境 nginx反向代理 supervisor配置自启动

    之前写过一篇Ubuntu的环境搭建博客,感觉一些配置大同小异,这里重点记录下 nginx 作为静态 angular 项目文件服务器的配置 参考链接 [netcore基础]ubuntu 16.04 搭建 ...

  2. Linux环境安装.NET运行环境

    Linux环境安装.NET运行环境 Linux环境安装.NET运行环境 1. 构建编译环境: (1) sudo apt-get install build-essential (2) sudo apt ...

  3. 通过命令验证docker容器相当一个轻量级的Linux运行环境,且每个容器内都有一个属于自己的文件系统,容器之间相互隔离

    一.docker的三个重要概念 1.镜像:打包项目带上环境,即镜像 Docker镜像是一个特殊的文件系统,除了提供容器运行时所需的程序.库.资源.配置等文件外,还包含了一些为运行时准备的配置参数.镜像 ...

  4. 【netcore基础】ubuntu 16.04 搭建.net core 2.1 linux 运行环境 nginx反向代理 supervisor配置自启动

    今天来整理下 netcore 在 linux(ubuntu) 上的运行环境搭建 对应版本 ubuntu 16.04 .net core 2.1 nginx version: nginx/1.10.3 ...

  5. Linux入门(三)搭建服务器linux运行环境LAMP/LNMP

    本文内容主要根据慕课网教学视频整理,原链接http://www.imooc.com/learn/170 我用的linux系统是ubuntu 12.04 LTS  虚拟机是VMware Workstat ...

  6. 搭建Linux运行环境-虚拟机

    1.虚拟机软件介绍 虚拟机(Virtual Machina)软件就是一套特殊的软件,它可以作为系统独立运行,也可以运行与系统之上. 若是运行与系统之上的虚拟机软件,在一台电脑(PC或笔记本等)上安装虚 ...

  7. Linux运行环境搭建(一)——安装JDK

    下载Linux版jdk 官网:http://www.oracle.com/technetwork/java/javase/downloads/index.html 解压并拷贝到指定目录 tar zxv ...

  8. Linux入门(四)linux运行环境mysql详细操作及安装phpmyadmin

    1.1 安装mysql(中间需要设定数据库的密码) sudo apt-get install mysql-serversudo apt-get install php5-mysql   #安装php5 ...

  9. Win7如何配置java环境变量,运行环境

    直接运行eclipse,弹出错误提示.   1 确保你安装了JDK,安装之后文件夹示例如下(jdk1.x.x取决于你安装的JDK版本)   2 系统,高级系统设置,高级,环境变量新建一个JAVA_HO ...

随机推荐

  1. warning: LF will be replaced by CRLF in ***. The file will have its original line endings in your working directory.

    git config --global core.autocrlf false

  2. Service Account和其secrets 作用和场景,看了不亏。。

    Service Account概念的引入是基于这样的使用场景: 运行在pod里的进程需要调用Kubernetes API以及非Kubernetes API的其它服务.Service Account它并 ...

  3. matplotlib.pyplot 绘制图形

    收集的一些觉得非常有用的绘图的资料: Python--matplotlib绘图可视化知识点整理 matplotlib.pyplot matplotlib gallery

  4. 51nod-1534-博弈

    1534 棋子游戏  题目来源: CodeForces 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题  收藏  关注 波雷卡普和瓦西里喜欢简单的逻辑游戏.今天他们 ...

  5. golang channel本质——共享内存

    channel是golang中很重要的概念,配合goroutine是golang能够方便实现并发编程的关键.channel其实就是传统语言的阻塞消息队列,可以用来做不同goroutine之间的消息传递 ...

  6. 信号处理signal、sigaction、pause、信号嵌套处理、不可重入函数

    信号的捕捉和处理 主要由signal和sigaction函数来完成.还有一个函数pause,它可用来响应任何信号,不过不做任何处理. 1.signal函数 typedef void (*sighand ...

  7. js运动例子1

    <!doctype html> <html> <head> <meta charset="utf-8"> <meta name ...

  8. 关于Ubuntu 常用的简单指令

    这几天工作强度不算太高,就自己学了一下linux,我就把一些简单的指令整理了一下,希望以后有参考: 我是用的VMware 安装的Ubuntu 虚拟机: 下面直接贴出我整理的简单的日常使用的指令 创建文 ...

  9. delphi 高亮选中MEMO某一行

    http://www.delphitop.com/html/kongjian/2641.html选中第5行 //转到指定行并选中这行的文本 procedure SelectLine(Memo1: TM ...

  10. 关于c++显示调用析构函数的陷阱

    版权声明:欢迎转载,注明出处就好!如果不喜欢请留言说明原因再踩哦,谢谢,我也可以知道原因,不断进步!!   目录(?)[+]   一.文章来由 现在在写一个项目,需要用到多叉树存储结构,但是在某个时候 ...