{"id":69636,"date":"2024-01-05T05:54:43","date_gmt":"2024-01-04T21:54:43","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=69636"},"modified":"2024-01-05T05:54:43","modified_gmt":"2024-01-04T21:54:43","slug":"logs-data-extract","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/logs-data-extract.html","title":{"rendered":"\u57fa\u4e8e\u65e5\u5fd7\u7684\u540c\u6b65\u6570\u636e\u4e00\u81f4\u6027\u548c\u5b9e\u65f6\u62bd\u53d6"},"content":{"rendered":"
\u4f5c\u8005\uff1a\u738b\u4e1c<\/strong><\/p>\n \u5b9c\u4fe1\u6280\u672f\u7814\u53d1\u4e2d\u5fc3\u67b6\u6784\u5e08<\/p>\n \u4e3b\u9898\u7b80\u4ecb\uff1a<\/strong><\/p>\n \u5927\u5bb6\u597d\uff0c\u6211\u662f\u738b\u4e1c\uff0c\u6765\u81ea\u5b9c\u4fe1\u6280\u672f\u7814\u53d1\u4e2d\u5fc3\uff0c\u8fd9\u662f\u6211\u6765\u793e\u7fa4\u7684\u7b2c\u4e00\u6b21\u5206\u4eab\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u4e0d\u8db3\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u6307\u6b63\u3001\u5305\u6db5\u3002<\/p>\n \u672c\u6b21\u5206\u4eab\u7684\u4e3b\u9898\u662f\u300a\u57fa\u4e8e\u65e5\u5fd7\u7684DWS\u5e73\u53f0\u5b9e\u73b0\u548c\u5e94\u7528\u300b\uff0c\u4e3b\u8981\u662f\u5206\u4eab\u4e00\u4e0b\u76ee\u524d\u6211\u4eec\u5728\u5b9c\u4fe1\u505a\u7684\u4e00\u4e9b\u4e8b\u60c5\u3002\u8fd9\u4e2a\u4e3b\u9898\u91cc\u9762\u5305\u542b\u52302\u4e2a\u56e2\u961f\u5f88\u591a\u5144\u5f1f\u59d0\u59b9\u7684\u52aa\u529b\u7684\u7ed3\u679c\uff08\u6211\u4eec\u56e2\u961f\u548c\u5c71\u5dcd\u56e2\u961f\u7684\u6210\u679c\uff09\u3002\u8fd9\u6b21\u5c31\u7531\u6211\u4ee3\u4e3a\u6267\u7b14\uff0c\u5c3d\u6211\u52aa\u529b\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u3002<\/p>\n \u5176\u5b9e\u6574\u4e2a\u5b9e\u73b0\u4ece\u539f\u7406\u4e0a\u6765\u8bf4\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0c\u5f53\u7136\u4e5f\u6d89\u53ca\u5230\u4e0d\u5c11\u6280\u672f\u3002\u6211\u4f1a\u5c1d\u8bd5\u7528\u5c3d\u91cf\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u8868\u8fbe\uff0c\u8ba9\u5927\u5bb6\u4e86\u89e3\u8fd9\u4e2a\u4e8b\u60c5\u7684\u539f\u7406\u548c\u610f\u4e49\u3002\u5728\u8fc7\u7a0b\u4e2d\uff0c\u5927\u5bb6\u6709\u95ee\u9898\u53ef\u4ee5\u968f\u65f6\u63d0\u51fa\uff0c\u6211\u4f1a\u5c3d\u529b\u53bb\u89e3\u7b54\u3002<\/p>\n DWS\u662f\u4e00\u4e2a\u7b80\u79f0\uff0c\u662f\u75313\u4e2a\u5b50\u9879\u76ee\u7ec4\u6210\uff0c\u6211\u7a0d\u540e\u505a\u89e3\u91ca\u3002<\/p>\n \u4e8b\u60c5\u662f\u4ece\u516c\u53f8\u524d\u6bb5\u65f6\u95f4\u7684\u9700\u6c42\u8bf4\u8d77\uff0c\u5927\u5bb6\u77e5\u9053\u5b9c\u4fe1\u662f\u4e00\u4e2a\u4e92\u8054\u7f51\u91d1\u878d\u4f01\u4e1a\uff0c\u6211\u4eec\u7684\u5f88\u591a\u6570\u636e\u4e0e\u6807\u51c6\u4e92\u8054\u7f51\u4f01\u4e1a\u4e0d\u540c\uff0c\u5927\u81f4\u6765\u8bf4\u5c31\u662f\uff1a<\/p>\n <\/p>\n \u73a9\u6570\u636e\u7684\u4eba\u90fd\u77e5\u9053\u6570\u636e\u662f\u975e\u5e38\u6709\u4ef7\u503c\u7684\uff0c\u7136\u540e\u8fd9\u4e9b\u6570\u636e\u662f\u4fdd\u5b58\u5728\u5404\u4e2a\u7cfb\u7edf\u7684\u6570\u636e\u5e93\u4e2d\uff0c\u5982\u4f55\u8ba9\u9700\u8981\u6570\u636e\u7684\u4f7f\u7528\u65b9\u5f97\u5230\u4e00\u81f4\u6027\u3001\u5b9e\u65f6\u7684\u6570\u636e\u5462\uff1f<\/p>\n \u8fd9\u4e9b\u65b9\u6848\u90fd\u4e0d\u7b97\u5b8c\u7f8e\u3002\u6211\u4eec\u5728\u4e86\u89e3\u548c\u8003\u8651\u4e86\u4e0d\u540c\u5b9e\u73b0\u65b9\u5f0f\u540e\uff0c\u6700\u540e\u501f\u9274\u4e86\u00a0linkedin\u7684\u601d\u60f3\uff0c\u8ba4\u4e3a\u8981\u60f3\u540c\u65f6\u89e3\u51b3\u6570\u636e\u4e00\u81f4\u6027\u548c\u5b9e\u65f6\u6027\uff0c\u6bd4\u8f83\u5408\u7406\u7684\u65b9\u6cd5\u5e94\u8be5\u662f\u6765\u81ea\u4e8elog\u3002<\/p>\n <\/p>\n \uff08\u6b64\u56fe\u6765\u81ea\uff1ahttps:\/\/www.confluent.io\/blog\/using-logs-to-build-a-solid-data-infrastructure-or-why-dual-writes-are-a-bad-idea\/\uff09<\/p>\n \u628a\u589e\u91cf\u7684Log\u4f5c\u4e3a\u4e00\u5207\u7cfb\u7edf\u7684\u57fa\u7840\u3002\u540e\u7eed\u7684\u6570\u636e\u4f7f\u7528\u65b9\uff0c\u901a\u8fc7\u8ba2\u9605kafka\u6765\u6d88\u8d39log\u3002<\/p>\n \u6bd4\u5982\uff1a<\/p>\n \u4e3a\u4ec0\u4e48\u4f7f\u7528log\u548ckafka\u4f5c\u4e3a\u57fa\u7840\uff0c\u800c\u4e0d\u4f7f\u7528Sqoop\u8fdb\u884c\u62bd\u53d6\u5462\uff1f \u56e0\u4e3a\uff1a<\/p>\n <\/p>\n \u4e3a\u4ec0\u4e48\u4e0d\u4f7f\u7528dual write\uff08\u53cc\u5199\uff09\u5462\uff1f\uff0c\u8bf7\u53c2\u8003https:\/\/www.confluent.io\/blog\/using-logs-to-build-a-solid-data-infrastructure-or-why-dual-writes-are-a-bad-idea\/<\/p>\n \u6211\u8fd9\u91cc\u5c31\u4e0d\u591a\u505a\u89e3\u91ca\u4e86\u3002<\/p>\n \u4e8e\u662f\u6211\u4eec\u63d0\u51fa\u4e86\u6784\u5efa\u4e00\u4e2a\u57fa\u4e8elog\u7684\u516c\u53f8\u7ea7\u7684\u5e73\u53f0\u7684\u60f3\u6cd5\u3002<\/p>\n \u4e0b\u9762\u89e3\u91ca\u4e00\u4e0bDWS\u5e73\u53f0\uff0c DWS\u5e73\u53f0\u662f\u67093\u4e2a\u5b50\u9879\u76ee\u7ec4\u6210\uff1a<\/p>\n <\/p>\n \u56fe\u4e2d\uff1a<\/p>\n \u7531\u4e8e\u65f6\u95f4\u5173\u7cfb\uff0c\u6211\u4eca\u5929\u4e3b\u8981\u4ecb\u7ecdDWS\u4e2d\u7684Dbus\u548cWormhole\uff0c\u5728\u9700\u8981\u7684\u65f6\u5019\u9644\u5e26\u4ecb\u7ecd\u4e00\u4e0bSwifts\u3002<\/p>\n \u5982\u524d\u9762\u6240\u8bf4\uff0cDbus\u4e3b\u8981\u89e3\u51b3\u7684\u662f\u5c06\u65e5\u5fd7\u4ece\u6e90\u7aef\u5b9e\u65f6\u7684\u62bd\u51fa\u3002 \u8fd9\u91cc\u6211\u4eec\u4ee5MySQL\u4e3a\u4f8b\u5b50\uff0c\u7b80\u5355\u8bf4\u660e\u5982\u4f55\u5b9e\u73b0\u3002<\/p>\n \u6211\u4eec\u77e5\u9053\uff0c\u867d\u7136MySQL InnoDB\u6709\u81ea\u5df1\u7684log\uff0cMySQL\u4e3b\u5907\u540c\u6b65\u662f\u901a\u8fc7binlog\u6765\u5b9e\u73b0\u7684\u3002\u5982\u4e0b\u56fe\uff1a<\/p>\n <\/p>\n \u56fe\u7247\u6765\u81ea\uff1ahttps:\/\/github.com\/alibaba\/canal<\/p>\n \u800cbinlog\u6709\u4e09\u79cd\u6a21\u5f0f\uff1a<\/p>\n \u4ed6\u4eec\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u6b64\u5904\u6765\u81ea\uff1ahttp:\/\/www.jquerycn.cn\/a_13625<\/p>\n \u7531\u4e8estatement \u6a21\u5f0f\u7684\u7f3a\u70b9\uff0c\u5728\u4e0e\u6211\u4eec\u7684DBA\u6c9f\u901a\u8fc7\u7a0b\u4e2d\u4e86\u89e3\u5230\uff0c\u5b9e\u9645\u751f\u4ea7\u8fc7\u7a0b\u4e2d\u90fd\u4f7f\u7528row \u6a21\u5f0f\u8fdb\u884c\u590d\u5236\u3002\u8fd9\u4f7f\u5f97\u8bfb\u53d6\u5168\u91cf\u65e5\u5fd7\u6210\u4e3a\u53ef\u80fd\u3002<\/p>\n \u901a\u5e38\u6211\u4eec\u7684MySQL\u5e03\u5c40\u662f\u91c7\u7528 2\u4e2amaster\u4e3b\u5e93\uff08vip\uff09+ 1\u4e2aslave\u4ece\u5e93 + 1\u4e2abackup\u5bb9\u707e\u5e93 \u7684\u89e3\u51b3\u65b9\u6848\uff0c\u7531\u4e8e\u5bb9\u707e\u5e93\u901a\u5e38\u662f\u7528\u4e8e\u5f02\u5730\u5bb9\u707e\uff0c\u5b9e\u65f6\u6027\u4e0d\u9ad8\u4e5f\u4e0d\u4fbf\u4e8e\u90e8\u7f72\u3002<\/p>\n \u4e3a\u4e86\u6700\u5c0f\u5316\u5bf9\u6e90\u7aef\u4ea7\u751f\u5f71\u54cd\uff0c\u663e\u7136\u6211\u4eec\u8bfb\u53d6binlog\u65e5\u5fd7\u5e94\u8be5\u4eceslave\u4ece\u5e93\u8bfb\u53d6\u3002<\/p>\n \u8bfb\u53d6binlog\u7684\u65b9\u6848\u6bd4\u8f83\u591a\uff0cgithub\u4e0a\u4e0d\u5c11\uff0c\u53c2\u8003https:\/\/github.com\/search?utf8=%E2%9C%93&q=binlog\u3002\u6700\u7ec8\u6211\u4eec\u9009\u7528\u4e86\u963f\u91cc\u7684canal\u505a\u4f4d\u65e5\u5fd7\u62bd\u53d6\u65b9\u3002<\/p>\n Canal\u6700\u65e9\u88ab\u7528\u4e8e\u963f\u91cc\u4e2d\u7f8e\u673a\u623f\u540c\u6b65\uff0c canal\u539f\u7406\u76f8\u5bf9\u6bd4\u8f83\u7b80\u5355\uff1a<\/p>\n <\/p>\n \u56fe\u7247\u6765\u81ea\uff1ahttps:\/\/github.com\/alibaba\/canal<\/p>\n Dbus \u7684MySQL\u7248\u4e3b\u8981\u89e3\u51b3\u65b9\u6848\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u5bf9\u4e8e\u589e\u91cf\u7684log\uff0c\u901a\u8fc7\u8ba2\u9605Canal Server\u7684\u65b9\u5f0f\uff0c\u6211\u4eec\u5f97\u5230\u4e86MySQL\u7684\u589e\u91cf\u65e5\u5fd7\uff1a<\/p>\n \u5728\u8003\u8651\u4f7f\u7528Storm\u4f5c\u4e3a\u89e3\u51b3\u65b9\u6848\u7684\u65f6\u5019\uff0c\u6211\u4eec\u4e3b\u8981\u662f\u8ba4\u4e3aStorm\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a<\/p>\n \u5bf9\u4e8e\u6d41\u6c34\u8868\uff0c\u6709\u589e\u91cf\u90e8\u5206\u5c31\u591f\u4e86\uff0c\u4f46\u662f\u8bb8\u591a\u8868\u9700\u8981\u77e5\u9053\u6700\u521d\uff08\u5df2\u5b58\u5728\uff09\u7684\u4fe1\u606f\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u9700\u8981initial load\uff08\u7b2c\u4e00\u6b21\u52a0\u8f7d\uff09\u3002<\/p>\n \u5bf9\u4e8einitial load\uff08\u7b2c\u4e00\u6b21\u52a0\u8f7d\uff09\uff0c\u540c\u6837\u5f00\u53d1\u4e86\u5168\u91cf\u62bd\u53d6Storm\u7a0b\u5e8f\u901a\u8fc7jdbc\u8fde\u63a5\u7684\u65b9\u5f0f\uff0c\u4ece\u6e90\u7aef\u6570\u636e\u5e93\u7684\u5907\u5e93\u8fdb\u884c\u62c9\u53d6\u3002initial load\u662f\u62c9\u5168\u90e8\u6570\u636e\uff0c\u6240\u4ee5\u6211\u4eec\u63a8\u8350\u5728\u4e1a\u52a1\u4f4e\u5cf0\u671f\u8fdb\u884c\u3002\u597d\u5728\u53ea\u505a\u4e00\u6b21\uff0c\u4e0d\u9700\u8981\u6bcf\u5929\u90fd\u505a\u3002<\/p>\n \u5168\u91cf\u62bd\u53d6\uff0c\u6211\u4eec\u501f\u9274\u4e86Sqoop\u7684\u601d\u60f3\u3002\u5c06\u5168\u91cf\u62bd\u53d6Storm\u5206\u4e3a\u4e862 \u4e2a\u90e8\u5206\uff1a<\/p>\n<\/section>\n \u6570\u636e\u5206\u7247\u9700\u8981\u8003\u8651\u5206\u7247\u5217\uff0c\u6309\u7167\u914d\u7f6e\u548c\u81ea\u52a8\u9009\u62e9\u5217\u5c06\u6570\u636e\u6309\u7167\u8303\u56f4\u6765\u5206\u7247\uff0c\u5e76\u5c06\u5206\u7247\u4fe1\u606f\u4fdd\u5b58\u5230kafka\u4e2d\u3002<\/p>\n <\/p>\n \u4e0b\u9762\u662f\u5177\u4f53\u7684\u5206\u7247\u7b56\u7565\uff1a<\/p>\n <\/p>\n \u5168\u91cf\u62bd\u53d6\u7684Storm\u7a0b\u5e8f\u662f\u8bfb\u53d6kafka\u7684\u5206\u7247\u4fe1\u606f\uff0c\u91c7\u7528\u591a\u4e2a\u5e76\u53d1\u5ea6\u5e76\u884c\u8fde\u63a5\u6570\u636e\u5e93\u5907\u5e93\u8fdb\u884c\u62c9\u53d6\u3002\u56e0\u4e3a\u62bd\u53d6\u7684\u65f6\u95f4\u53ef\u80fd\u5f88\u957f\u3002\u62bd\u53d6\u8fc7\u7a0b\u4e2d\u5c06\u5b9e\u65f6\u72b6\u6001\u5199\u5230Zookeeper\u4e2d\uff0c\u4fbf\u4e8e\u5fc3\u8df3\u7a0b\u5e8f\u76d1\u63a7\u3002<\/p>\n <\/p>\n \u65e0\u8bba\u662f\u589e\u91cf\u8fd8\u662f\u5168\u91cf\uff0c\u6700\u7ec8\u8f93\u51fa\u5230kafka\u4e2d\u7684\u6d88\u606f\u90fd\u662f\u6211\u4eec\u7ea6\u5b9a\u7684\u4e00\u4e2a\u7edf\u4e00\u6d88\u606f\u683c\u5f0f,\u79f0\u4e3aUMS(unified message schema)\u683c\u5f0f\u3002<\/p>\n \u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n <\/p>\n \u6d88\u606f\u4e2dschema\u90e8\u5206\uff0c\u5b9a\u4e49\u4e86namespace \u662f\u7531 \u7c7b\u578b+\u6570\u636e\u6e90\u540d+schema\u540d+\u8868\u540d+\u7248\u672c\u53f7+\u5206\u5e93\u53f7+\u5206\u8868\u53f7\u00a0\u80fd\u591f\u63cf\u8ff0\u6574\u4e2a\u516c\u53f8\u7684\u6240\u6709\u8868\uff0c\u901a\u8fc7\u4e00\u4e2anamespace\u5c31\u80fd\u552f\u4e00\u5b9a\u4f4d\u3002<\/p>\n payload\u662f\u6307\u5177\u4f53\u7684\u6570\u636e\uff0c\u4e00\u4e2ajson\u5305\u91cc\u9762\u53ef\u4ee5\u5305\u542b1\u6761\u81f3\u591a\u6761\u6570\u636e\uff0c\u63d0\u9ad8\u6570\u636e\u7684\u6709\u6548\u8f7d\u8377\u3002<\/p>\n UMS\u4e2d\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\uff0c\u53c2\u8003\u4e86Hive\u7c7b\u578b\u5e76\u8fdb\u884c\u7b80\u5316\uff0c\u57fa\u672c\u4e0a\u5305\u542b\u4e86\u6240\u6709\u6570\u636e\u7c7b\u578b\u3002<\/p>\n \u5728\u6574\u4e2a\u6570\u636e\u4f20\u8f93\u4e2d\uff0c\u4e3a\u4e86\u5c3d\u91cf\u7684\u4fdd\u8bc1\u65e5\u5fd7\u6d88\u606f\u7684\u987a\u5e8f\u6027\uff0ckafka\u6211\u4eec\u4f7f\u7528\u7684\u662f1\u4e2apartition\u7684\u65b9\u5f0f\u3002\u5728\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u57fa\u672c\u4e0a\u662f\u987a\u5e8f\u7684\u548c\u552f\u4e00\u7684\u3002<\/p>\n \u4f46\u662f\u6211\u4eec\u77e5\u9053\u5199kafka\u4f1a\u5931\u8d25\uff0c\u6709\u53ef\u80fd\u91cd\u5199\uff0cStorm\u4e5f\u7528\u91cd\u505a\u673a\u5236\uff0c\u56e0\u6b64\uff0c\u6211\u4eec\u5e76\u4e0d\u4e25\u683c\u4fdd\u8bc1exactly once\u548c\u5b8c\u5168\u7684\u987a\u5e8f\u6027\uff0c\u4f46\u4fdd\u8bc1\u7684\u662fat least once\u3002<\/p>\n \u56e0\u6b64_ums_id_\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002<\/p>\n \u5bf9\u4e8e\u5168\u91cf\u62bd\u53d6\uff0c_ums_id_\u662f\u552f\u4e00\u7684\uff0c\u4ecezk\u4e2d\u6bcf\u4e2a\u5e76\u53d1\u5ea6\u5206\u522b\u53d6\u4e0d\u540c\u7684id\u7247\u533a\uff0c\u4fdd\u8bc1\u4e86\u552f\u4e00\u6027\u548c\u6027\u80fd\uff0c\u586b\u5199\u8d1f\u6570\uff0c\u4e0d\u4f1a\u4e0e\u589e\u91cf\u6570\u636e\u51b2\u7a81\uff0c\u4e5f\u4fdd\u8bc1\u4ed6\u4eec\u662f\u65e9\u4e8e\u589e\u91cf\u6d88\u606f\u7684\u3002<\/p>\n \u5bf9\u4e8e\u589e\u91cf\u62bd\u53d6\uff0c\u6211\u4eec\u4f7f\u7528\u7684\u662fMySQL\u7684\u65e5\u5fd7\u6587\u4ef6\u53f7 + \u65e5\u5fd7\u504f\u79fb\u91cf\u4f5c\u4e3a\u552f\u4e00id\u3002Id\u4f5c\u4e3a64\u4f4d\u7684long\u6574\u6570\uff0c\u9ad87\u4f4d\u7528\u4e8e\u65e5\u5fd7\u6587\u4ef6\u53f7\uff0c\u4f4e12\u4f4d\u4f5c\u4e3a\u65e5\u5fd7\u504f\u79fb\u91cf\u3002<\/p>\n \u4f8b\u5982\uff1a000103000012345678\u3002 103 \u662f\u65e5\u5fd7\u6587\u4ef6\u53f7\uff0c12345678 \u662f\u65e5\u5fd7\u504f\u79fb\u91cf\u3002<\/p>\n \u8fd9\u6837\uff0c\u4ece\u65e5\u5fd7\u5c42\u9762\u4fdd\u8bc1\u4e86\u7269\u7406\u552f\u4e00\u6027\uff08\u5373\u4fbf\u91cd\u505a\u4e5f\u8fd9\u4e2aid\u53f7\u4e5f\u4e0d\u53d8\uff09\uff0c\u540c\u65f6\u4e5f\u4fdd\u8bc1\u4e86\u987a\u5e8f\u6027\uff08\u8fd8\u80fd\u5b9a\u4f4d\u65e5\u5fd7\uff09\u3002\u901a\u8fc7\u6bd4\u8f83_ums_id_ \u6d88\u8d39\u65e5\u5fd7\u5c31\u80fd\u901a\u8fc7\u6bd4\u8f83_ums_id_\u77e5\u9053\u54ea\u6761\u6d88\u606f\u66f4\u65b0\u3002<\/p>\n \u5176\u5b9e_ums_ts_\u4e0e_ums_id_\u610f\u56fe\u662f\u7c7b\u4f3c\u7684\uff0c\u53ea\u4e0d\u8fc7\u6709\u65f6\u5019_ums_ts_\u53ef\u80fd\u4f1a\u91cd\u590d,\u5373\u57281\u6beb\u79d2\u4e2d\u53d1\u751f\u4e86\u591a\u4e2a\u64cd\u4f5c\uff0c\u8fd9\u6837\u5c31\u5f97\u9760\u6bd4\u8f83_ums_id_\u4e86\u3002<\/p>\n \u6574\u4e2a\u7cfb\u7edf\u6d89\u53ca\u5230\u6570\u636e\u5e93\u7684\u4e3b\u5907\u540c\u6b65\uff0cCanal Server\uff0c\u591a\u4e2a\u5e76\u53d1\u5ea6Storm\u8fdb\u7a0b\u7b49\u5404\u4e2a\u73af\u8282\u3002<\/p>\n \u56e0\u6b64\u5bf9\u6d41\u7a0b\u7684\u76d1\u63a7\u548c\u9884\u8b66\u5c31\u5c24\u4e3a\u91cd\u8981\u3002<\/p>\n \u901a\u8fc7\u5fc3\u8df3\u6a21\u5757\uff0c\u4f8b\u5982\u6bcf\u5206\u949f\uff08\u53ef\u914d\u7f6e\uff09\u5bf9\u6bcf\u4e2a\u88ab\u62bd\u53d6\u7684\u8868\u63d2\u5165\u4e00\u6761\u5fc3\u6001\u6570\u636e\u5e76\u4fdd\u5b58\u53d1\u9001\u65f6\u95f4\uff0c\u8fd9\u4e2a\u5fc3\u8df3\u8868\u4e5f\u88ab\u62bd\u53d6\uff0c\u8ddf\u968f\u7740\u6574\u4e2a\u6d41\u7a0b\u4e0b\u6765\uff0c\u4e0e\u88ab\u540c\u6b65\u8868\u5728\u5b9e\u9645\u4e0a\u8d70\u76f8\u540c\u7684\u903b\u8f91\uff08\u56e0\u4e3a\u591a\u4e2a\u5e76\u53d1\u7684\u7684Storm\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u5206\u652f\uff09\uff0c\u5f53\u6536\u5230\u5fc3\u8df3\u5305\u7684\u65f6\u5019\uff0c\u5373\u4fbf\u6ca1\u6709\u4efb\u4f55\u589e\u5220\u6539\u7684\u6570\u636e\uff0c\u4e5f\u80fd\u8bc1\u660e\u6574\u6761\u94fe\u8def\u662f\u901a\u7684\u3002<\/p>\n Storm\u7a0b\u5e8f\u548c\u5fc3\u8df3\u7a0b\u5e8f\u5c06\u6570\u636e\u53d1\u9001\u516c\u5171\u7684\u7edf\u8ba1topic\uff0c\u518d\u7531\u7edf\u8ba1\u7a0b\u5e8f\u4fdd\u5b58\u5230influxdb\u4e2d\uff0c\u4f7f\u7528grafana\u8fdb\u884c\u5c55\u793a\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u6548\u679c\uff1a<\/p>\n <\/p>\n \u56fe\u4e2d\u662f\u67d0\u4e1a\u52a1\u7cfb\u7edf\u7684\u5b9e\u65f6\u76d1\u63a7\u4fe1\u606f\u3002\u4e0a\u9762\u662f\u5b9e\u65f6\u6d41\u91cf\u60c5\u51b5\uff0c\u4e0b\u9762\u662f\u5b9e\u65f6\u5ef6\u65f6\u60c5\u51b5\u3002\u53ef\u4ee5\u770b\u5230\uff0c\u5b9e\u65f6\u6027\u8fd8\u662f\u5f88\u4e0d\u9519\u7684\uff0c\u57fa\u672c\u4e0a1~2\u79d2\u6570\u636e\u5c31\u5df2\u7ecf\u5230\u672b\u7aefkafka\u4e2d\u3002<\/p>\n Granfana\u63d0\u4f9b\u7684\u662f\u4e00\u79cd\u5b9e\u65f6\u76d1\u63a7\u80fd\u529b\u3002<\/p>\n \u5982\u679c\u51fa\u73b0\u5ef6\u65f6\uff0c\u5219\u662f\u901a\u8fc7dbus\u7684\u5fc3\u8df3\u6a21\u5757\u53d1\u9001\u90ae\u4ef6\u62a5\u8b66\u6216\u77ed\u4fe1\u62a5\u8b66\u3002<\/p>\n \u8003\u8651\u5230\u6570\u636e\u5b89\u5168\u6027\uff0c\u5bf9\u4e8e\u6709\u8131\u654f\u9700\u6c42\u7684\u573a\u666f\uff0cDbus\u7684\u5168\u91cfstorm\u548c\u589e\u91cfstorm\u7a0b\u5e8f\u4e5f\u5b8c\u6210\u4e86\u5b9e\u65f6\u8131\u654f\u7684\u529f\u80fd\u3002\u8131\u654f\u65b9\u5f0f\u67093\u79cd\uff1a<\/p>\n <\/p>\n \u603b\u7ed3\u4e00\u4e0b\uff1a\u7b80\u5355\u7684\u8bf4\uff0cDbus\u5c31\u662f\u5c06\u5404\u79cd\u6e90\u7684\u6570\u636e\uff0c\u5b9e\u65f6\u7684\u5bfc\u51fa\uff0c\u5e76\u4ee5UMS\u7684\u65b9\u5f0f\u63d0\u4f9b\u8ba2\u9605\uff0c \u652f\u6301\u5b9e\u65f6\u8131\u654f\uff0c\u5b9e\u9645\u76d1\u63a7\u548c\u62a5\u8b66\u3002<\/p>\n \u8bf4\u5b8cDbus\uff0c\u8be5\u8bf4\u4e00\u4e0bWormhole\uff0c\u4e3a\u4ec0\u4e48\u4e24\u4e2a\u9879\u76ee\u4e0d\u662f\u4e00\u4e2a\uff0c\u800c\u8981\u901a\u8fc7kafka\u6765\u5bf9\u63a5\u5462\uff1f<\/p>\n \u5176\u4e2d\u5f88\u5927\u4e00\u4e2a\u539f\u56e0\u5c31\u662f\u89e3\u8026\uff0ckafka\u5177\u6709\u5929\u7136\u7684\u89e3\u8026\u80fd\u529b\uff0c\u7a0b\u5e8f\u76f4\u63a5\u53ef\u4ee5\u901a\u8fc7kafka\u505a\u5f02\u6b65\u7684\u6d88\u606f\u4f20\u9012\u3002Dbus\u548cWornhole\u5185\u90e8\u4e5f\u4f7f\u7528\u4e86kafka\u505a\u6d88\u606f\u4f20\u9012\u548c\u89e3\u8026\u3002<\/p>\n \u53e6\u5916\u4e00\u4e2a\u539f\u56e0\u5c31\u662f\uff0cUMS\u662f\u81ea\u63cf\u8ff0\u7684\uff0c\u901a\u8fc7\u8ba2\u9605kafka\uff0c\u4efb\u4f55\u6709\u80fd\u529b\u7684\u4f7f\u7528\u65b9\u6765\u76f4\u63a5\u6d88\u8d39UMS\u6765\u4f7f\u7528\u3002<\/p>\n \u867d\u7136UMS\u7684\u7ed3\u679c\u53ef\u4ee5\u76f4\u63a5\u8ba2\u9605\uff0c\u4f46\u8fd8\u9700\u8981\u5f00\u53d1\u7684\u5de5\u4f5c\u3002Wormhole\u89e3\u51b3\u7684\u662f\uff1a\u63d0\u4f9b\u4e00\u952e\u5f0f\u7684\u914d\u7f6e\uff0c\u5c06kafka\u4e2d\u7684\u6570\u636e\u843d\u5730\u5230\u5404\u79cd\u7cfb\u7edf\u4e2d\uff0c\u8ba9\u6ca1\u6709\u5f00\u53d1\u80fd\u529b\u7684\u6570\u636e\u4f7f\u7528\u65b9\u901a\u8fc7wormhole\u6765\u5b9e\u73b0\u4f7f\u7528\u6570\u636e\u3002<\/p>\n <\/p>\n \u5982\u56fe\u6240\u793a\uff0cWormhole \u53ef\u4ee5\u5c06kafka\u4e2d\u7684UMS \u843d\u5730\u5230\u5404\u79cd\u7cfb\u7edf\uff0c\u76ee\u524d\u7528\u7684\u6700\u591a\u7684HDFS\uff0cJDBC\u7684\u6570\u636e\u5e93\u548cHBase\u3002<\/p>\n \u5728\u6280\u672f\u6808\u4e0a\uff0c wormhole\u9009\u62e9\u4f7f\u7528spark streaming\u6765\u8fdb\u884c\u3002<\/p>\n \u5728Wormhole\u4e2d\uff0c\u4e00\u6761flow\u662f\u6307\u4ece\u4e00\u4e2anamaspace\u4ece\u6e90\u7aef\u5230\u76ee\u6807\u7aef\u3002\u4e00\u4e2aspark streaming\u670d\u52a1\u4e8e\u591a\u6761flow\u3002<\/p>\n <\/p>\n \u9009\u7528Spark\u7684\u7406\u7531\u662f\u5f88\u5145\u5206\u7684\uff1a<\/p>\n \u8fd9\u91cc\u8865\u5145\u8bf4\u4e00\u4e0bSwifts\u7684\u4f5c\u7528\uff1a<\/p>\n Wormhole\u548cSwifts\u5bf9\u6bd4\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u901a\u8fc7Wormhole Wpark Streaming\u7a0b\u5e8f\u6d88\u8d39kafka\u7684UMS\uff0c\u9996\u5148UMS log\u53ef\u4ee5\u88ab\u4fdd\u5b58\u5230HDFS\u4e0a\u3002<\/p>\n kafka\u4e00\u822c\u53ea\u4fdd\u5b58\u82e5\u5e72\u5929\u7684\u4fe1\u606f\uff0c\u4e0d\u4f1a\u4fdd\u5b58\u5168\u90e8\u4fe1\u606f\uff0c\u800cHDFS\u4e2d\u53ef\u4ee5\u4fdd\u5b58\u6240\u6709\u7684\u5386\u53f2\u589e\u5220\u6539\u7684\u4fe1\u606f\u3002\u8fd9\u5c31\u4f7f\u5f97\u5f88\u591a\u4e8b\u60c5\u53d8\u4e3a\u53ef\u80fd\uff1a<\/p>\n \u53ef\u4ee5\u8bf4HDFS\u4e2d\u7684\u65e5\u5fd7\u662f\u5f88\u591a\u7684\u4e8b\u60c5\u57fa\u7840\u3002<\/p>\n \u4ecb\u4e8eSpark\u539f\u751f\u5bf9parquet\u652f\u6301\u7684\u5f88\u597d\uff0cSpark SQL\u80fd\u591f\u5bf9Parquet\u63d0\u4f9b\u5f88\u597d\u7684\u67e5\u8be2\u3002UMS\u843d\u5730\u5230HDFS\u4e0a\u662f\u4fdd\u5b58\u5230Parquet\u6587\u4ef6\u4e2d\u7684\u3002Parquet\u7684\u5185\u5bb9\u662f\u6240\u6709log\u7684\u589e\u5220\u6539\u4fe1\u606f\u4ee5\u53ca_ums_id_\uff0c_ums_ts_\u90fd\u5b58\u4e0b\u6765\u3002<\/p>\n Wormhole spark streaming\u6839\u636enamespace \u5c06\u6570\u636e\u5206\u5e03\u5b58\u50a8\u5230\u4e0d\u540c\u7684\u76ee\u5f55\u4e2d\uff0c\u5373\u4e0d\u540c\u7684\u8868\u548c\u7248\u672c\u653e\u5728\u4e0d\u540c\u76ee\u5f55\u4e2d\u3002<\/p>\n <\/p>\n \u7531\u4e8e\u6bcf\u6b21\u5199\u7684Parquet\u90fd\u662f\u5c0f\u6587\u4ef6\uff0c\u5927\u5bb6\u77e5\u9053HDFS\u5bf9\u4e8e\u5c0f\u6587\u4ef6\u6027\u80fd\u5e76\u4e0d\u597d\uff0c\u56e0\u6b64\u53e6\u5916\u8fd8\u6709\u4e00\u4e2ajob\uff0c\u6bcf\u5929\u5b9a\u65f6\u5c06\u8fd9\u4e9b\u7684Parquet\u6587\u4ef6\u8fdb\u884c\u5408\u5e76\u6210\u5927\u6587\u4ef6\u3002<\/p>\n \u6bcf\u4e2aParquet\u6587\u4ef6\u76ee\u5f55\u90fd\u5e26\u6709\u6587\u4ef6\u6570\u636e\u7684\u8d77\u59cb\u65f6\u95f4\u548c\u7ed3\u675f\u65f6\u95f4\u3002\u8fd9\u6837\u5728\u56de\u704c\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u6839\u636e\u9009\u53d6\u7684\u65f6\u95f4\u8303\u56f4\u6765\u51b3\u5b9a\u9700\u8981\u8bfb\u53d6\u54ea\u4e9bParquet\u6587\u4ef6\uff0c\u4e0d\u5fc5\u8bfb\u53d6\u5168\u90e8\u6570\u636e\u3002<\/p>\n \u5e38\u5e38\u6211\u4eec\u9047\u5230\u7684\u9700\u6c42\u662f\uff0c\u5c06\u6570\u636e\u7ecf\u8fc7\u52a0\u5de5\u843d\u5730\u5230\u6570\u636e\u5e93\u6216HBase\u4e2d\u3002\u90a3\u4e48\u8fd9\u91cc\u6d89\u53ca\u5230\u7684\u4e00\u4e2a\u95ee\u9898\u5c31\u662f\uff0c\u4ec0\u4e48\u6837\u7684\u6570\u636e\u53ef\u4ee5\u88ab\u66f4\u65b0\u5230\u6570\u636e\uff1f<\/p>\n \u8fd9\u91cc\u6700\u91cd\u8981\u7684\u4e00\u4e2a\u539f\u5219\u5c31\u662f\u6570\u636e\u7684\u5e42\u7b49\u6027\u3002<\/p>\n \u65e0\u8bba\u662f\u9047\u5230\u589e\u5220\u6539\u4efb\u4f55\u7684\u6570\u636e\uff0c\u6211\u4eec\u9762\u4e34\u7684\u95ee\u9898\u90fd\u662f\uff1a<\/p>\n \u5bf9\u4e8e\u7b2c\u4e00\u4e2a\u95ee\u9898\uff0c\u5176\u5b9e\u5c31\u9700\u8981\u5b9a\u4f4d\u6570\u636e\u8981\u627e\u4e00\u4e2a\u552f\u4e00\u7684\u952e\uff0c\u5e38\u89c1\u7684\u6709\uff1a<\/p>\n \u5bf9\u4e8e\u7b2c\u4e8c\u4e2a\u95ee\u9898\uff0c\u5c31\u6d89\u53ca\u5230_ums_id_\u4e86\uff0c\u56e0\u4e3a\u6211\u4eec\u5df2\u7ecf\u4fdd\u8bc1\u4e86_ums_id_\u5927\u7684\u503c\u66f4\u65b0\uff0c\u56e0\u6b64\u5728\u627e\u5230\u5bf9\u5e94\u6570\u636e\u884c\u540e\uff0c\u6839\u636e\u8fd9\u4e2a\u539f\u5219\u6765\u8fdb\u884c\u66ff\u6362\u66f4\u65b0\u3002<\/p>\n <\/p>\n \u4e4b\u6240\u4ee5\u8981\u8f6f\u5220\u9664\u548c\u52a0\u5165_is_active_\u5217\uff0c\u662f\u4e3a\u4e86\u8fd9\u6837\u4e00\u79cd\u60c5\u51b5\uff1a<\/p>\n \u5982\u679c\u5df2\u7ecf\u63d2\u5165\u7684_ums_id_\u6bd4\u8f83\u5927\uff0c\u662f\u5220\u9664\u7684\u6570\u636e\uff08\u8868\u660e\u8fd9\u4e2a\u6570\u636e\u5df2\u7ecf\u5220\u9664\u4e86\uff09\uff0c \u5982\u679c\u4e0d\u662f\u8f6f\u5220\u9664\uff0c\u6b64\u65f6\u63d2\u5165\u4e00\u4e2a_ums_id_\u5c0f\u7684\u6570\u636e\uff08\u65e7\u6570\u636e\uff09\uff0c\u5c31\u4f1a\u771f\u7684\u63d2\u5165\u8fdb\u53bb\u3002<\/p>\n \u8fd9\u5c31\u5bfc\u81f4\u65e7\u6570\u636e\u88ab\u63d2\u5165\u4e86\u3002\u4e0d\u5e42\u7b49\u4e86\u3002\u6240\u4ee5\u88ab\u5220\u9664\u7684\u6570\u636e\u4f9d\u7136\u4fdd\u7559\uff08\u8f6f\u5220\u9664\uff09\u662f\u6709\u4ef7\u503c\u7684\uff0c\u5b83\u80fd\u88ab\u7528\u4e8e\u4fdd\u8bc1\u6570\u636e\u7684\u5e42\u7b49\u6027\u3002<\/p>\n \u63d2\u5165\u6570\u636e\u5230Hbase\u4e2d\uff0c\u76f8\u5f53\u8981\u7b80\u5355\u4e00\u4e9b\u3002\u4e0d\u540c\u7684\u662fHBase\u53ef\u4ee5\u4fdd\u7559\u591a\u4e2a\u7248\u672c\u7684\u6570\u636e\uff08\u5f53\u7136\u4e5f\u53ef\u4ee5\u53ea\u4fdd\u7559\u4e00\u4e2a\u7248\u672c\uff09\u9ed8\u8ba4\u662f\u4fdd\u75593\u4e2a\u7248\u672c\uff1b<\/p>\n \u56e0\u6b64\u63d2\u5165\u6570\u636e\u5230HBase\uff0c\u9700\u8981\u89e3\u51b3\u7684\u95ee\u9898\u662f\uff1a<\/p>\n Version\u7684\u9009\u62e9\u5f88\u6709\u610f\u601d\uff0c\u5229\u7528_ums_id_\u7684\u552f\u4e00\u6027\u548c\u81ea\u589e\u6027\uff0c\u4e0eversion\u81ea\u8eab\u7684\u6bd4\u8f83\u5173\u7cfb\u4e00\u81f4\uff1a\u5373version\u8f83\u5927\u7b49\u4ef7\u4e8e_ums_id_\u8f83\u5927\uff0c\u5bf9\u5e94\u7684\u7248\u672c\u8f83\u65b0\u3002<\/p>\n \u4ece\u63d0\u9ad8\u6027\u80fd\u7684\u89d2\u5ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6574\u4e2aSpark Streaming\u7684Dataset\u96c6\u5408\u76f4\u63a5\u63d2\u5165\u5230HBase\uff0c\u4e0d\u9700\u8981\u6bd4\u8f83\u3002\u8ba9HBase\u57fa\u4e8eversion\u81ea\u52a8\u66ff\u6211\u4eec\u5224\u65ad\u54ea\u4e9b\u6570\u636e\u53ef\u4ee5\u4fdd\u7559\uff0c\u54ea\u4e9b\u6570\u636e\u4e0d\u9700\u8981\u4fdd\u7559\u3002<\/p>\n Jdbc\u7684\u63d2\u5165\u6570\u636e\uff1a<\/p>\n \u63d2\u5165\u6570\u636e\u5230\u6570\u636e\u5e93\u4e2d\uff0c\u4fdd\u8bc1\u5e42\u7b49\u7684\u539f\u7406\u867d\u7136\u7b80\u5355\uff0c\u8981\u60f3\u63d0\u9ad8\u6027\u80fd\u5728\u5b9e\u73b0\u4e0a\u5c31\u53d8\u5f97\u590d\u6742\u5f88\u591a\uff0c\u603b\u4e0d\u80fd\u4e00\u6761\u4e00\u6761\u7684\u6bd4\u8f83\u7136\u540e\u5728\u63d2\u5165\u6216\u66f4\u65b0\u3002<\/p>\n \u6211\u4eec\u77e5\u9053Spark\u7684RDD\/dataset\u90fd\u662f\u4ee5\u96c6\u5408\u7684\u65b9\u5f0f\u6765\u64cd\u4f5c\u4ee5\u63d0\u9ad8\u6027\u80fd\uff0c\u540c\u6837\u7684\u6211\u4eec\u9700\u8981\u4ee5\u96c6\u5408\u64cd\u4f5c\u7684\u65b9\u5f0f\u5b9e\u73b0\u5e42\u7b49\u6027\u3002<\/p>\n \u5177\u4f53\u601d\u8def\u662f\uff1a<\/p>\n A\uff1a\u4e0d\u5b58\u5728\u7684\u6570\u636e\uff0c\u5373\u8fd9\u90e8\u5206\u6570\u636einsert\u5c31\u53ef\u4ee5\uff1b<\/p>\n B\uff1a\u5b58\u5728\u7684\u6570\u636e\uff0c\u6bd4\u8f83_ums_id_\uff0c \u6700\u7ec8\u53ea\u5c06\u54ea\u4e9b_ums_id_\u66f4\u65b0\u8f83\u5927row\u5230\u76ee\u6807\u6570\u636e\u5e93\uff0c\u5c0f\u7684\u76f4\u63a5\u629b\u5f03\u3002<\/p>\n<\/section>\n \u4f7f\u7528Spark\u7684\u540c\u5b66\u90fd\u77e5\u9053\uff0cRDD\/dataset\u90fd\u662f\u53ef\u4ee5partition\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2aworker\u5e76\u8fdb\u884c\u64cd\u4f5c\u4ee5\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n \u5728\u8003\u8651\u5e76\u53d1\u60c5\u51b5\u4e0b\uff0c\u63d2\u5165\u548c\u66f4\u65b0\u90fd\u53ef\u80fd\u51fa\u73b0\u5931\u8d25\uff0c\u90a3\u4e48\u8fd8\u6709\u8003\u8651\u5931\u8d25\u540e\u7684\u7b56\u7565\u3002<\/p>\n \u6bd4\u5982\uff1a\u56e0\u4e3a\u522b\u7684worker\u5df2\u7ecf\u63d2\u5165\uff0c\u90a3\u4e48\u56e0\u4e3a\u552f\u4e00\u6027\u7ea6\u675f\u63d2\u5165\u5931\u8d25\uff0c\u90a3\u4e48\u9700\u8981\u6539\u4e3a\u66f4\u65b0\uff0c\u8fd8\u8981\u6bd4\u8f83_ums_id_\u770b\u662f\u5426\u80fd\u591f\u66f4\u65b0\u3002<\/p>\n \u5bf9\u4e8e\u65e0\u6cd5\u63d2\u5165\u5176\u4ed6\u60c5\u51b5\uff08\u6bd4\u5982\u76ee\u6807\u7cfb\u7edf\u6709\u95ee\u9898\uff09\uff0cWormhole\u8fd8\u6709\u91cd\u8bd5\u673a\u5236\u3002\u8bf4\u8d77\u6765\u7ec6\u8282\u7279\u522b\u591a\u3002\u8fd9\u91cc\u5c31\u4e0d\u591a\u4ecb\u7ecd\u4e86\u3002<\/p>\n \u6709\u4e9b\u8fd8\u5728\u5f00\u53d1\u4e2d\u3002<\/p>\n \u63d2\u5165\u5230\u5176\u4ed6\u5b58\u50a8\u4e2d\u7684\u5c31\u4e0d\u591a\u4ecb\u7ecd\u4e86\uff0c\u603b\u7684\u539f\u5219\u662f\uff1a\u6839\u636e\u5404\u81ea\u5b58\u50a8\u81ea\u8eab\u7279\u6027\uff0c\u8bbe\u8ba1\u57fa\u4e8e\u96c6\u5408\u7684\uff0c\u5e76\u53d1\u7684\u63d2\u5165\u6570\u636e\u5b9e\u73b0\u3002\u8fd9\u4e9b\u90fd\u662fWormhole\u4e3a\u4e86\u6027\u80fd\u800c\u505a\u7684\u52aa\u529b\uff0c\u4f7f\u7528\uff37ormhole\u7684\u7528\u6237\u4e0d\u5fc5\u5173\u5fc3 \u3002<\/p>\n \u8bf4\u4e86\u90a3\u4e48\u591a\uff0cDWS\u6709\u4ec0\u4e48\u5b9e\u9645\u8fd0\u7528\u5462\uff1f\u4e0b\u9762\u6211\u6765\u4ecb\u7ecd\u67d0\u7cfb\u7edf\u4f7f\u7528DWS\u5b9e\u73b0\u4e86\u7684\u5b9e\u65f6\u8425\u9500\u3002<\/p>\n <\/p>\n \u5982\u4e0a\u56fe\u6240\u793a\uff1a<\/p>\n \u7cfb\u7edfA\u7684\u6570\u636e\u90fd\u4fdd\u5b58\u5230\u81ea\u5df1\u7684\u6570\u636e\u5e93\u4e2d\uff0c\u6211\u4eec\u77e5\u9053\uff0c\u5b9c\u4fe1\u63d0\u4f9b\u5f88\u591a\u91d1\u878d\u670d\u52a1\uff0c\u5176\u4e2d\u5305\u62ec\u501f\u6b3e\uff0c\u800c\u501f\u6b3e\u8fc7\u7a0b\u4e2d\u5f88\u91cd\u8981\u7684\u5c31\u662f\u4fe1\u7528\u5ba1\u6838\u3002<\/p>\n \u501f\u6b3e\u4eba\u9700\u8981\u63d0\u4f9b\u8bc1\u660e\u5177\u6709\u4fe1\u7528\u4ef7\u503c\u7684\u4fe1\u606f\uff0c\u6bd4\u5982\u592e\u884c\u5f81\u4fe1\u62a5\u544a\uff0c\u662f\u5177\u6709\u6700\u5f3a\u4fe1\u7528\u6570\u636e\u7684\u6570\u636e\u3002 \u800c\u94f6\u884c\u6d41\u6c34\uff0c\u7f51\u8d2d\u6d41\u6c34\u4e5f\u662f\u5177\u6709\u8f83\u5f3a\u7684\u4fe1\u7528\u5c5e\u6027\u7684\u6570\u636e\u3002<\/p>\n \u501f\u6b3e\u4eba\u901a\u8fc7Web\u6216\u624b\u673aAPP\u5728\u7cfb\u7edfA\u4e2d\u586b\u5199\u4fe1\u7528\u4fe1\u606f\u65f6\uff0c\u53ef\u80fd\u4f1a\u67d0\u4e9b\u539f\u56e0\u65e0\u6cd5\u7ee7\u7eed\uff0c\u867d\u7136\u53ef\u80fd\u8fd9\u4e2a\u501f\u6b3e\u4eba\u662f\u4e00\u4e2a\u4f18\u8d28\u6f5c\u5728\u5ba2\u6237\uff0c\u4f46\u4ee5\u524d\u7531\u4e8e\u65e0\u6cd5\u6216\u5f88\u4e45\u624d\u80fd\u77e5\u9053\u8fd9\u4e2a\u4fe1\u606f\uff0c\u6240\u4ee5\u5b9e\u9645\u4e0a\u8fd9\u6837\u7684\u5ba2\u6237\u662f\u6d41\u5931\u4e86\u3002<\/p>\n \u5e94\u7528\u4e86DWS\u4ee5\u540e\uff0c\u501f\u6b3e\u4eba\u5df2\u7ecf\u586b\u5199\u7684\u4fe1\u606f\u5df2\u7ecf\u8bb0\u5f55\u5230\u6570\u636e\u5e93\u4e2d\uff0c\u5e76\u901a\u8fc7DWS\u5b9e\u65f6\u7684\u8fdb\u884c\u62bd\u53d6\u3001\u8ba1\u7b97\u548c\u843d\u5730\u5230\u76ee\u6807\u5e93\u4e2d\u3002\u6839\u636e\u5bf9\u5ba2\u6237\u7684\u6253\u5206\uff0c\u8bc4\u4ef7\u51fa\u4f18\u8d28\u5ba2\u6237\u3002\u7136\u540e\u7acb\u523b\u5c06\u8fd9\u4e2a\u5ba2\u6237\u7684\u4fe1\u606f\u8f93\u51fa\u5230\u5ba2\u670d\u7cfb\u7edf\u4e2d\u3002<\/p>\n \u5ba2\u670d\u4eba\u5458\u5728\u5f88\u77ed\u7684\u65f6\u95f4\uff08\u51e0\u5206\u949f\u4ee5\u5185\uff09\u5c31\u901a\u8fc7\u6253\u7535\u8bdd\u7684\u65b9\u5f0f\u8054\u7cfb\u4e0a\u8fd9\u4e2a\u501f\u6b3e\u4eba\uff08\u6f5c\u5ba2\uff09\uff0c\u8fdb\u884c\u5ba2\u6237\u5173\u6000\uff0c\u5c06\u8fd9\u4e2a\u6f5c\u5ba2\u8f6c\u6362\u4e3a\u771f\u6b63\u7684\u5ba2\u6237\u3002\u6211\u4eec\u77e5\u9053\u501f\u6b3e\u662f\u6709\u65f6\u6548\u6027\u7684\uff0c\u5982\u679c\u65f6\u95f4\u592a\u4e45\u5c31\u6ca1\u6709\u4ef7\u503c\u4e86\u3002<\/p>\n \u5982\u679c\u6ca1\u6709\u5b9e\u65f6\u62bd\u53d6\/\u8ba1\u7b97\/\u843d\u5e93\u7684\u80fd\u529b\uff0c\u90a3\u4e48\u8fd9\u4e00\u5207\u90fd\u65e0\u6cd5\u5b9e\u73b0\u3002<\/p>\n \u53e6\u5916\u4e00\u4e2a\u5b9e\u65f6\u62a5\u8868\u7684\u5e94\u7528\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u6211\u4eec\u6570\u636e\u4f7f\u7528\u65b9\u7684\u6570\u636e\u6765\u81ea\u591a\u4e2a\u7cfb\u7edf\uff0c\u4ee5\u524d\u662f\u901a\u8fc7T+1\u7684\u65b9\u5f0f\u83b7\u5f97\u62a5\u8868\u4fe1\u606f\uff0c\u7136\u540e\u6307\u5bfc\u7b2c\u4e8c\u5929\u7684\u8fd0\u8425\uff0c\u8fd9\u6837\u65f6\u6548\u6027\u5f88\u5dee\u3002<\/p>\n \u901a\u8fc7DWS\uff0c\u5c06\u6570\u636e\u4ece\u591a\u4e2a\u7cfb\u7edf\u4e2d\u5b9e\u65f6\u62bd\u53d6\uff0c\u8ba1\u7b97\u548c\u843d\u5730\uff0c\u5e76\u63d0\u4f9b\u62a5\u8868\u5c55\u793a\uff0c\u4f7f\u5f97\u8fd0\u8425\u53ef\u4ee5\u53ca\u65f6\u4f5c\u51fa\u90e8\u7f72\u548c\u8c03\u6574\uff0c\u5feb\u901f\u5e94\u5bf9\u3002<\/p>\n \u8bf4\u4e86\u90a3\u4e48\u591a\uff0c\u5927\u81f4\u603b\u7ed3\u4e00\u4e0b\uff1a<\/p>\n \u9002\u5408\u573a\u666f\u5305\u62ec\uff1a<\/strong>\u5b9e\u65f6\u540c\u6b65\uff0f\u5b9e\u65f6\u8ba1\u7b97\uff0f\u5b9e\u65f6\u76d1\u63a7\uff0f\u5b9e\u65f6\u62a5\u8868\uff0f\u5b9e\u65f6\u5206\u6790\uff0f\u5b9e\u65f6\u6d1e\u5bdf\uff0f\u5b9e\u65f6\u7ba1\u7406\uff0f\u5b9e\u65f6\u8fd0\u8425\uff0f\u5b9e\u65f6\u51b3\u7b56<\/p>\n<\/section>\n \u611f\u8c22\u5927\u5bb6\u7684\u8046\u542c\uff0c\u6b64\u6b21\u5206\u4eab\u5230\u6b64\u4e3a\u6b62\u3002<\/p>\n Q1\uff1a<\/strong>Oracle log reader\u6709\u5f00\u6e90\u65b9\u6848\u5417\uff1f<\/p>\n \uff211\uff1a<\/strong>\u5bf9\u4e8eOracle\u4e1a\u754c\u4e5f\u6709\u8bb8\u591a\u5546\u4e1a\u89e3\u51b3\u65b9\u6848\uff0c\u4f8b\u5982\uff1aOracle GoldenGate(\u539f\u6765\u7684goldengate), Oracle Xstream, IBM InfoSphere Change Data Capture(\u539f\u6765\u7684DataMirror)\uff0cDell SharePlex (\u539f\u6765\u7684Quest)\uff0c\u56fd\u5185\u7684DSG superSync\u7b49\uff0c\u5f00\u6e90\u7684\u65b9\u6848\u597d\u7528\u7684\u5f88\u5c11\u3002<\/p>\n Q2\uff1a<\/strong>\u8fd9\u4e2a\u9879\u76ee\u6295\u5165\u4e86\u591a\u5c11\u4eba\u529b\u7269\u529b\uff1f\u611f\u89c9\u6709\u70b9\u590d\u6742\u3002<\/p>\n Q2\uff1a<\/strong>DWS\u662f\u4e09\u4e2a\u5b50\u9879\u76ee\u7ec4\u6210\uff0c\u5e73\u5747\u6bcf\u4e2a\u9879\u76ee5~7\u4eba\u3002\u662f\u6709\u70b9\u590d\u6742\uff0c\u5176\u5b9e\u4e5f\u662f\u8bd5\u56fe\u4f7f\u7528\u5927\u6570\u636e\u6280\u672f\u6765\u89e3\u51b3\u6211\u4eec\u516c\u53f8\u76ee\u524d\u9047\u5230\u7684\u56f0\u96be\u3002<\/p>\n \u56e0\u4e3a\u662f\u641e\u5927\u6570\u636e\u76f8\u5173\u6280\u672f\uff0c\u6240\u6709\u56e2\u961f\u91cc\u9762\u7684\u5144\u5f1f\u59d0\u59b9\u90fd\u8fd8\u662f\u6bd4\u8f83happy\u7684\uff1a\uff09<\/p>\n \u5176\u5b9e\u8fd9\u91cc\u9762\uff0cDbus\u548cWormhole\u76f8\u5bf9\u56fa\u5b9a\u6a21\u5f0f\u5316\uff0c\u5bb9\u6613\u8f7b\u677e\u590d\u7528\u3002Swifts\u5b9e\u65f6\u8ba1\u7b97\u662f\u4e0e\u6bcf\u4e2a\u4e1a\u52a1\u76f8\u5173\u6bd4\u8f83\u5927\u7684\uff0c\u81ea\u5b9a\u4e49\u6bd4\u8f83\u5f3a\uff0c\u76f8\u5bf9\u6bd4\u8f83\u9ebb\u70e6\u4e00\u4e9b\u3002<\/p>\n Q3\uff1a<\/strong>\u5b9c\u4fe1\u7684\u8fd9\u4e2aDWS\u7cfb\u7edf\u4f1a\u5f00\u6e90\u4e48\uff1f<\/p>\n A3\uff1a<\/strong>\u6211\u4eec\u4e5f\u8003\u8651\u8fc7\u5411\u793e\u533a\u8d21\u732e\uff0c\u5c31\u50cf\u5b9c\u4fe1\u7684\u5176\u4ed6\u5f00\u6e90\u9879\u76ee\u4e00\u6837\uff0c\u76ee\u524d\u9879\u76ee\u521a\u521a\u6210\u5f62\uff0c\u8fd8\u6709\u5f85\u8fdb\u4e00\u6b65\u78e8\u70bc\uff0c\u6211\u76f8\u4fe1\u672a\u6765\u7684\u67d0\u4e2a\u65f6\u5019\uff0c\u6211\u4eec\u4f1a\u7ed9\u5b83\u5f00\u6e90\u51fa\u6765\u3002<\/p>\n Q4\uff1a<\/strong>\u67b6\u6784\u5e08\u600e\u4e48\u7406\u89e3\uff0c\u662f\u4e0d\u662f\u7cfb\u7edf\u5de5\u7a0b\u5e08\uff1f<\/p>\n A4\uff1a<\/strong>\u4e0d\u662f\u7cfb\u7edf\u5de5\u7a0b\u5e08\uff0c\u5728\u6211\u4eec\u5b9c\u4fe1\u6709\u591a\u4f4d\u67b6\u6784\u5e08\uff0c\u5e94\u8be5\u7b97\u662f\u4ee5\u6280\u672f\u9a71\u52a8\u4e1a\u52a1\u7684\u6280\u672f\u7ba1\u7406\u4eba\u5458\u3002\u5305\u542b\u4ea7\u54c1\u8bbe\u8ba1\uff0c\u6280\u672f\u7ba1\u7406\u7b49\u3002<\/p>\n Q5\uff1a<\/strong>\u590d\u5236\u65b9\u6848\u662f\u5426\u662fOGG?<\/p>\n A5\uff1a<\/strong>OGG\u4e0e\u4e0a\u9762\u63d0\u5230\u7684\u5176\u4ed6\u5546\u4e1a\u89e3\u51b3\u65b9\u6848\u90fd\u662f\u53ef\u9009\u65b9\u6848\u3002<\/p>\n \u6587\u7ae0\u51fa\u5904\uff1aDBAplus\u793e\u7fa4\uff08dbaplus\uff09<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/10461.html<\/a><\/p>\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n