Kettle-3-使用

来源:互联网 发布:阿里指数在哪进入淘宝 编辑:程序博客网 时间:2024/06/05 11:27

【环境说明

工作节点
bigdata0
路径
/data2/jianxin/Kettle


【安装
安装Hadoop-2.2.0插件
http://blog.csdn.net/john_f_lau/article/details/18676005


【实例
本地file-Hadoop
http://blog.csdn.net/john_f_lau/article/details/18676281
MySQL-MySQL
MySQL-PostgreSQL
http://blog.csdn.net/xiaohai798/article/details/34188549

【其他url
Kettle 简介和实例
http://blog.csdn.net/john_f_lau/article/details/9260699
Kettle调度和监控
http://blog.csdn.net/john_f_lau/article/details/9260863
kettle入门(三) 之kettle连接hadoop&hdfs图文详解,使用pdi-ce-5.1.0.0-752.zip
http://blog.csdn.net/xiaohai798/article/details/39558939
不同学习url
http://blog.csdn.net/xiaohai798/article/category/2389115
http://blog.csdn.net/huangaigang6688/article/details/24600451


Kettle连接MySQL


Kettle连接Oracle


Kettle连接PostgreSQL



取特定时间

Date.prototype.Format = function (fmt) { //author: meizz     var o = {        "M+": this.getMonth() + 1, //月份         "d+": this.getDate(), //日         "h+": this.getHours(), //小时         "m+": this.getMinutes(), //分         "s+": this.getSeconds(), //秒         "q+": Math.floor((this.getMonth() + 3) / 3), //季度         "S": this.getMilliseconds() //毫秒     };    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));    for (var k in o)    if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));    return fmt;}var dtNew=new Date(new Date().getTime()-2*24*60*60*1000).Format("yyyyMMdd"); //--new 当前时间对象 2代表2天 24*60*60*1000代表2天时间的ms数//--即当天减去2天时间ms数 得到前天的时间
参考

http://blog.csdn.net/xiaohai798/article/details/41867835
http://blog.csdn.net/rotkang/article/details/21008271

0 0