{"id":188424,"date":"2024-11-11T22:36:24","date_gmt":"2024-11-11T14:36:24","guid":{"rendered":"https:\/\/server.hk\/cnblog\/188424\/"},"modified":"2024-11-11T22:36:26","modified_gmt":"2024-11-11T14:36:26","slug":"%e6%8e%a2%e7%a9%b6%e5%85%a9%e5%80%8b%e6%95%b8%e6%93%9a%e5%ba%ab%e5%9c%a8kettle%e4%b8%ad%e7%9a%84%e4%bd%bf%e7%94%a8%e6%8a%80%e5%b7%a7-%e5%85%a9%e5%80%8b%e6%95%b8%e6%93%9a%e5%ba%abkettle","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/188424\/","title":{"rendered":"\u63a2\u7a76\u5169\u500b\u6578\u64da\u5eab\u5728Kettle\u4e2d\u7684\u4f7f\u7528\u6280\u5de7 (\u5169\u500b\u6578\u64da\u5eabkettle)"},"content":{"rendered":"<h1 id=\"%e6%8e%a2%e7%a9%b6%e5%85%a9%e5%80%8b%e6%95%b8%e6%93%9a%e5%ba%ab%e5%9c%a8kettle%e4%b8%ad%e7%9a%84%e4%bd%bf%e7%94%a8%e6%8a%80%e5%b7%a7-MpjwhPqSQC\">\u63a2\u7a76\u5169\u500b\u6578\u64da\u5eab\u5728Kettle\u4e2d\u7684\u4f7f\u7528\u6280\u5de7<\/h1>\n<p>\u5728\u6578\u64da\u8655\u7406\u548c\u8f49\u63db\u7684\u9818\u57df\u4e2d\uff0cKettle\uff08\u4e5f\u7a31\u70baPentaho Data Integration\uff09\u662f\u4e00\u500b\u5f37\u5927\u7684\u5de5\u5177\uff0c\u80fd\u5920\u5e6b\u52a9\u7528\u6236\u8f15\u9b06\u5730\u5f9e\u591a\u500b\u6578\u64da\u6e90\u63d0\u53d6\u3001\u8f49\u63db\u548c\u52a0\u8f09\u6578\u64da\u3002\u7576\u6d89\u53ca\u5230\u540c\u6642\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u6642\uff0cKettle\u63d0\u4f9b\u4e86\u9748\u6d3b\u7684\u529f\u80fd\u4f86\u5be6\u73fe\u9019\u4e00\u76ee\u6a19\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5728Kettle\u4e2d\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u7684\u6280\u5de7\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u6709\u6548\u5730\u9032\u884c\u6578\u64da\u8655\u7406\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%81%b8%e6%93%87%e4%bd%bf%e7%94%a8%e5%85%a9%e5%80%8b%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%9f-MpjwhPqSQC\">\u70ba\u4ec0\u9ebc\u9078\u64c7\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\uff1f<\/h2>\n<p>\u5728\u5be6\u969b\u61c9\u7528\u4e2d\uff0c\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u7684\u539f\u56e0\u591a\u7a2e\u591a\u6a23\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u6574\u5408\uff1a<\/strong>\u7576\u4f01\u696d\u9700\u8981\u5c07\u4f86\u81ea\u4e0d\u540c\u4f86\u6e90\u7684\u6578\u64da\u6574\u5408\u5230\u4e00\u500b\u5831\u544a\u6216\u6578\u64da\u5009\u5eab\u4e2d\u6642\uff0c\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u662f\u975e\u5e38\u5fc5\u8981\u7684\u3002<\/li>\n<li><strong>\u6578\u64da\u9077\u79fb\uff1a<\/strong>\u5728\u6578\u64da\u9077\u79fb\u904e\u7a0b\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5f9e\u4e00\u500b\u6578\u64da\u5eab\u63d0\u53d6\u6578\u64da\u4e26\u5c07\u5176\u52a0\u8f09\u5230\u53e6\u4e00\u500b\u6578\u64da\u5eab\u4e2d\u3002<\/li>\n<li><strong>\u6578\u64da\u6bd4\u8f03\uff1a<\/strong>\u5728\u9032\u884c\u6578\u64da\u5206\u6790\u6642\uff0c\u53ef\u80fd\u9700\u8981\u6bd4\u8f03\u4f86\u81ea\u4e0d\u540c\u6578\u64da\u5eab\u7684\u6578\u64da\u3002<\/li>\n<\/ul>\n<h2 id=\"kettle%e4%b8%ad%e4%bd%bf%e7%94%a8%e5%85%a9%e5%80%8b%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%ad%a5%e9%a9%9f-MpjwhPqSQC\">Kettle\u4e2d\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u7684\u57fa\u672c\u6b65\u9a5f<\/h2>\n<p>\u5728Kettle\u4e2d\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u7684\u904e\u7a0b\u53ef\u4ee5\u5206\u70ba\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e8%a8%ad%e7%bd%ae%e6%95%b8%e6%93%9a%e5%ba%ab%e9%80%a3%e6%8e%a5-MpjwhPqSQC\">1. \u8a2d\u7f6e\u6578\u64da\u5eab\u9023\u63a5<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5728Kettle\u4e2d\u8a2d\u7f6e\u5169\u500b\u6578\u64da\u5eab\u7684\u9023\u63a5\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u5b8c\u6210\uff1a<\/p>\n<ol>\n<li>\u6253\u958bKettle\u4e26\u9032\u5165\u201c\u6578\u64da\u5eab\u9023\u63a5\u201d\u9078\u9805\u3002<\/li>\n<li>\u9ede\u64ca\u201c\u65b0\u5efa\u201d\u4f86\u5275\u5efa\u7b2c\u4e00\u500b\u6578\u64da\u5eab\u7684\u9023\u63a5\uff0c\u586b\u5beb\u5fc5\u8981\u7684\u9023\u63a5\u4fe1\u606f\uff0c\u5982\u6578\u64da\u5eab\u985e\u578b\u3001\u4e3b\u6a5f\u540d\u3001\u7aef\u53e3\u3001\u6578\u64da\u5eab\u540d\u7a31\u3001\u7528\u6236\u540d\u548c\u5bc6\u78bc\u3002<\/li>\n<li>\u91cd\u8907\u4e0a\u8ff0\u6b65\u9a5f\u4ee5\u5275\u5efa\u7b2c\u4e8c\u500b\u6578\u64da\u5eab\u7684\u9023\u63a5\u3002<\/li>\n<\/ol>\n<h3 id=\"2-%e4%bd%bf%e7%94%a8%e8%bd%89%e6%8f%9b%e6%ad%a5%e9%a9%9f-MpjwhPqSQC\">2. \u4f7f\u7528\u8f49\u63db\u6b65\u9a5f<\/h3>\n<p>\u5728\u8a2d\u7f6e\u597d\u6578\u64da\u5eab\u9023\u63a5\u5f8c\uff0c\u60a8\u53ef\u4ee5\u958b\u59cb\u5275\u5efa\u8f49\u63db\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u8f49\u63db\u6b65\u9a5f\uff1a<\/p>\n<ul>\n<li><strong>\u8868\u8f38\u5165\u6b65\u9a5f\uff1a<\/strong>\u4f7f\u7528\u201c\u8868\u8f38\u5165\u201d\u6b65\u9a5f\u5f9e\u7b2c\u4e00\u500b\u6578\u64da\u5eab\u4e2d\u63d0\u53d6\u6578\u64da\u3002\u60a8\u53ef\u4ee5\u7de8\u5bebSQL\u67e5\u8a62\u4f86\u9078\u64c7\u6240\u9700\u7684\u6578\u64da\u3002<\/li>\n<li><strong>\u8868\u8f38\u51fa\u6b65\u9a5f\uff1a<\/strong>\u4f7f\u7528\u201c\u8868\u8f38\u51fa\u201d\u6b65\u9a5f\u5c07\u6578\u64da\u52a0\u8f09\u5230\u7b2c\u4e8c\u500b\u6578\u64da\u5eab\u4e2d\u3002\u78ba\u4fdd\u9078\u64c7\u6b63\u78ba\u7684\u6578\u64da\u5eab\u9023\u63a5\u3002<\/li>\n<\/ul>\n<h3 id=\"3-%e6%95%b8%e6%93%9a%e8%bd%89%e6%8f%9b%e5%92%8c%e8%99%95%e7%90%86-MpjwhPqSQC\">3. \u6578\u64da\u8f49\u63db\u548c\u8655\u7406<\/h3>\n<p>\u5728\u63d0\u53d6\u548c\u52a0\u8f09\u6578\u64da\u7684\u904e\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u9032\u884c\u6578\u64da\u8f49\u63db\u548c\u8655\u7406\u3002Kettle\u63d0\u4f9b\u4e86\u591a\u7a2e\u8f49\u63db\u6b65\u9a5f\uff0c\u5982\u201c\u6578\u64da\u985e\u578b\u8f49\u63db\u201d\u3001\u201c\u5408\u4f75\u884c\u201d\u3001\u201c\u904e\u6ffe\u884c\u201d\u7b49\uff0c\u9019\u4e9b\u90fd\u53ef\u4ee5\u5e6b\u52a9\u60a8\u5728\u5169\u500b\u6578\u64da\u5eab\u4e4b\u9593\u9032\u884c\u6578\u64da\u8655\u7406\u3002<\/p>\n<h2 id=\"%e5%af%a6%e9%9a%9b%e6%a1%88%e4%be%8b-MpjwhPqSQC\">\u5be6\u969b\u6848\u4f8b<\/h2>\n<p>\u5047\u8a2d\u60a8\u6709\u4e00\u500bMySQL\u6578\u64da\u5eab\u548c\u4e00\u500bPostgreSQL\u6578\u64da\u5eab\uff0c\u60a8\u5e0c\u671b\u5c07MySQL\u4e2d\u7684\u5ba2\u6236\u6578\u64da\u9077\u79fb\u5230PostgreSQL\u4e2d\u3002\u60a8\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\uff1a<\/p>\n<pre><code>\n1. \u5728Kettle\u4e2d\u8a2d\u7f6eMySQL\u548cPostgreSQL\u7684\u6578\u64da\u5eab\u9023\u63a5\u3002\n2. \u4f7f\u7528\u201c\u8868\u8f38\u5165\u201d\u6b65\u9a5f\u5f9eMySQL\u4e2d\u63d0\u53d6\u5ba2\u6236\u6578\u64da\uff1a\n   SELECT * FROM customers;\n3. \u4f7f\u7528\u201c\u8868\u8f38\u51fa\u201d\u6b65\u9a5f\u5c07\u6578\u64da\u52a0\u8f09\u5230PostgreSQL\u4e2d\uff0c\u78ba\u4fdd\u8868\u7d50\u69cb\u5339\u914d\u3002\n<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-MpjwhPqSQC\">\u7e3d\u7d50<\/h2>\n<p>\u5728Kettle\u4e2d\u4f7f\u7528\u5169\u500b\u6578\u64da\u5eab\u7684\u6280\u5de7\u4e0d\u50c5\u80fd\u63d0\u9ad8\u6578\u64da\u8655\u7406\u7684\u6548\u7387\uff0c\u9084\u80fd\u5e6b\u52a9\u7528\u6236\u66f4\u597d\u5730\u6574\u5408\u548c\u5206\u6790\u6578\u64da\u3002\u901a\u904e\u8a2d\u7f6e\u6578\u64da\u5eab\u9023\u63a5\u3001\u4f7f\u7528\u8f49\u63db\u6b65\u9a5f\u4ee5\u53ca\u9032\u884c\u6578\u64da\u8655\u7406\uff0c\u60a8\u53ef\u4ee5\u8f15\u9b06\u5730\u5728\u4e0d\u540c\u6578\u64da\u5eab\u4e4b\u9593\u9032\u884c\u64cd\u4f5c\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6548\u6578\u64da\u8655\u7406\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u9078\u64c7\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4e5f\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff0c\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u8655\u7406\u904e\u7a0b\u9806\u5229\u9032\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22Kettle\u4e2d\u5169\u500b\u6578\u64da\u5eab\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u63d0\u5347\u6578\u64da\u8655\u7406\u6548\u7387\uff0c\u5be6\u73fe\u66f4\u9748\u6d3b\u7684\u6578\u64da\u6574\u5408\u8207\u8f49\u63db\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-188424","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=188424"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188424\/revisions"}],"predecessor-version":[{"id":188425,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188424\/revisions\/188425"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=188424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=188424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=188424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}