{"id":1347,"date":"2021-02-20T13:20:57","date_gmt":"2021-02-20T05:20:57","guid":{"rendered":"https:\/\/www.zeroheart.xyz\/wordpress\/?p=1347"},"modified":"2021-02-20T13:20:57","modified_gmt":"2021-02-20T05:20:57","slug":"datax%e7%9b%b8%e5%85%b3%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.zeroheart.xyz\/wordpress\/?p=1347","title":{"rendered":"datax\u76f8\u5173\u8bb0\u5f55"},"content":{"rendered":"\n<p>186 datax\u76f8\u5173<\/p>\n\n\n\n<p>1.Python\u73af\u5883<\/p>\n\n\n\n<p>[vmuser@186 ~]$&nbsp; ll \/usr\/bin\/pyth*<\/p>\n\n\n\n<p>\/usr\/bin\/python -> \/usr\/bin\/python2.6<\/p>\n\n\n\n<p>\/usr\/bin\/python2.6<\/p>\n\n\n\n<p>2.Datax \u76ee\u5f55<\/p>\n\n\n\n<p>\/home\/vmuser\/datax<\/p>\n\n\n\n<p>3. datax-web\u76ee\u5f55<\/p>\n\n\n\n<p>\/home\/vmuser\/datax\/datax-web-2.1.2<\/p>\n\n\n\n<p>4.\u542f\u52a8datax-web<\/p>\n\n\n\n<p>cd \/home\/vmuser\/datax\/datax-web-2.1.2\/bin<\/p>\n\n\n\n<p>.\/start-all.sh<\/p>\n\n\n\n<p>\u4f8b\u5b50\u4e2d\u914d\u7f6e\u7684\uff0cdatax_web\u548cdatax_web_copy\u8fd9\u4e24\u4e2a\u5e93\u90fd\u5728186mysql\u4e0a\uff0c\u53ef\u4ee5\u767b\u5f55\u4e0a\u53bb\u67e5\u770b\u6570\u636e\u540c\u6b65\u60c5\u51b5<\/p>\n\n\n\n<p>6.\u6dfb\u52a0\u6267\u884c\u5668 \u6b63\u5e38\u5e94\u8be5\u662f\u81ea\u52a8\u6ce8\u518c\u4e0a\u6765\u7684\uff0c\u8fd8\u6709\u70b9\u95ee\u9898\uff0c\u4e0d\u8fc7\u8bd5\u4e86\u4e0b\u624b\u52a8\u6ce8\u518c\u4e5f\u80fd\u4f7f\u7528\u3002\u5df2\u7ecf\u6ce8\u518c\u4e0a\u4e86\uff0c\u73b0\u5728\u7aef\u53e31999\uff0c\u53ea\u9700\u8981\u6ce8\u518c\u4e00\u6b21\u5c31\u884c\u4e86\uff0c\u4efb\u52a1\u7531\u8fd9\u4e2a\u6267\u884c\u5668\u6267\u884c\u5177\u4f53\u64cd\u4f5c\u3002\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u66f4\u591a\u7684\u6267\u884c\u5668\uff0c\u5b9e\u73b0\u6a2a\u5411\u6269\u5c55\uff0c\u8fd9\u4e2a\u4e5f\u53ef\u4ee5\u540e\u9762\u8003\u8651\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">7.\u6dfb\u52a0\u8fd9\u4e2a\u4e32\u6307\u5b9a\u53c2\u6570   \n?serverTimezone=Asia\/Shanghai&amp;useLegacyDatetimeCode=false&amp;useSSL=false&amp;nullNamePatternMatchesAll=true&amp;useUnicode=true&amp;characterEncoding=UTF-8\n\u540c\u6b65\u4e4b\u540e\u624d\u4e0d\u4f1a\u51fa\u73b0\u4e71\u7801<\/pre>\n\n\n\n<p>8.\u00a0\u00a0\u589e\u91cf\u540c\u6b65\u7684\u4f8b\u5b50<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n   \"job\": {\n     \"setting\": {\n       \"speed\": {\n         \"channel\": 3\n       },\n       \"errorLimit\": {\n         \"record\": 0,\n         \"percentage\": 0.02\n       }\n     },\n     \"content\": [\n       {\n         \"reader\": {\n           \"name\": \"mysqlreader\",\n           \"parameter\": {\n             \"username\": \"yRjwDFuoPKlqya9h9H2Amg==\",\n             \"password\": \"\",\n             \"column\": [\n               \"<code>id<\/code>\",\n               \"<code>job_group<\/code>\",\n               \"<code>job_id<\/code>\",\n               \"<code>job_desc<\/code>\",\n               \"<code>executor_address<\/code>\",\n               \"<code>executor_handler<\/code>\",\n               \"<code>executor_param<\/code>\",\n               \"<code>executor_sharding_param<\/code>\",\n               \"<code>executor_fail_retry_count<\/code>\",\n               \"<code>trigger_time<\/code>\",\n               \"<code>trigger_code<\/code>\",\n               \"<code>trigger_msg<\/code>\",\n               \"<code>handle_time<\/code>\",\n               \"<code>handle_code<\/code>\",\n               \"<code>handle_msg<\/code>\",\n               \"<code>alarm_status<\/code>\",\n               \"<code>process_id<\/code>\",\n               \"<code>max_id<\/code>\"\n             ],\n             \"splitPk\": \"\",\n             \"connection\": [\n               {\n                 \"querySql\": [\n                   \"select * from job_log where id>= ${startId} and id&lt; ${endId}\"\n                 ],\n                 \"jdbcUrl\": [\n                   \"jdbc:mysql:\/\/localhost:3306\/datax_web?serverTimezone=Asia\/Shanghai&amp;useLegacyDatetimeCode=false&amp;useSSL=false&amp;nullNamePatternMatchesAll=true&amp;useUnicode=true&amp;characterEncoding=UTF-8\"\n                 ]\n               }\n             ]\n           }\n         },\n         \"writer\": {\n           \"name\": \"mysqlwriter\",\n           \"parameter\": {\n             \"username\": \"yRjwDFuoPKlqya9h9H2Amg==\",\n             \"password\": \"\",\n             \"column\": [\n               \"<code>id<\/code>\",\n               \"<code>job_group<\/code>\",\n               \"<code>job_id<\/code>\",\n               \"<code>job_desc<\/code>\",\n               \"<code>executor_address<\/code>\",\n               \"<code>executor_handler<\/code>\",\n               \"<code>executor_param<\/code>\",\n               \"<code>executor_sharding_param<\/code>\",\n               \"<code>executor_fail_retry_count<\/code>\",\n               \"<code>trigger_time<\/code>\",\n               \"<code>trigger_code<\/code>\",\n               \"<code>trigger_msg<\/code>\",\n               \"<code>handle_time<\/code>\",\n               \"<code>handle_code<\/code>\",\n               \"<code>handle_msg<\/code>\",\n               \"<code>alarm_status<\/code>\",\n               \"<code>process_id<\/code>\",\n               \"<code>max_id<\/code>\"\n             ],\n             \"connection\": [\n               {\n                 \"table\": [\n                   \"job_log\"\n                 ],\n                 \"jdbcUrl\": \"jdbc:mysql:\/\/localhost:3306\/datax_web_copy?serverTimezone=Asia\/Shanghai&amp;useLegacyDatetimeCode=false&amp;useSSL=false&amp;nullNamePatternMatchesAll=true&amp;useUnicode=true&amp;characterEncoding=UTF-8\"\n               }\n             ]\n           }\n         }\n       }\n     ]\n   }\n }<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>186 datax\u76f8\u5173 1.Python\u73af\u5883 [vmuser@186 ~]$&nbsp; ll \/usr\/bi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[86,87],"_links":{"self":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1347"}],"collection":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1347"}],"version-history":[{"count":11,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1347\/revisions"}],"predecessor-version":[{"id":1358,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1347\/revisions\/1358"}],"wp:attachment":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}