{"id":118596,"date":"2026-10-27T19:08:39","date_gmt":"2026-10-27T11:08:39","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/118596.html"},"modified":"2026-10-27T19:08:39","modified_gmt":"2026-10-27T11:08:39","slug":"dolphinscheduler%e3%80%81airflow%e3%80%81xxl-job-%e9%83%bd%e5%be%88%e5%bc%ba%ef%bc%8c%e4%b8%ba%e4%bb%80%e4%b9%88%e6%88%91%e4%bb%ac%e8%bf%98%e8%a6%81%e8%87%aa%e7%a0%94%e4%b8%80%e4%b8%aa%e8%b0%83","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/118596.html","title":{"rendered":"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f"},"content":{"rendered":"<h2>DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a&#xff0c;\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce&#xff1f;<\/h2>\n<p>\u2014\u2014DataY \u5206\u5e03\u5f0f\u8c03\u5ea6\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/p>\n<p>\u51cc\u6668\u4e24\u70b9&#xff0c;\u8ba2\u5355\u540c\u6b65\u4efb\u52a1\u6ca1\u6709\u6309\u65f6\u8dd1\u3002<\/p>\n<p>\u503c\u73ed\u540c\u5b66\u5148\u770b\u8c03\u5ea6\u5668&#xff0c;\u518d\u770b\u6ce8\u518c\u4e2d\u5fc3&#xff0c;\u518d\u770b\u6570\u636e\u5e93&#xff0c;\u6700\u540e\u53d1\u73b0\u662f\u67d0\u4e2a ETL \u4efb\u52a1\u628a\u8c03\u5ea6\u8fdb\u7a0b\u7684\u5185\u5b58\u62d6\u57ae\u4e86\u3002<\/p>\n<p>\u4efb\u52a1\u548c\u8c03\u5ea6\u6324\u5728\u4e00\u4e2a JVM \u91cc&#xff0c;\u4e00\u4e2a\u4efb\u52a1\u5931\u63a7&#xff0c;\u6574\u4e2a\u8c03\u5ea6\u505c\u6446\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u67d0\u4e2a\u4ea7\u54c1\u7684 bug&#xff0c;\u800c\u662f\u5f88\u591a\u8c03\u5ea6\u7cfb\u7edf\u90fd\u4f1a\u9047\u5230\u7684\u67b6\u6784\u95ee\u9898&#xff1a;<\/p>\n<p>\u8c03\u5ea6\u548c\u6267\u884c&#xff0c;\u5230\u5e95\u8be5\u4e0d\u8be5\u653e\u5728\u4e00\u8d77&#xff1f;<\/p>\n<hr \/>\n<h3>01 \u4e3a\u4e86\u51e0\u5341\u4e2a\u4efb\u52a1&#xff0c;\u5148\u7ef4\u62a4\u5341\u4e2a\u8fdb\u7a0b&#xff1f;<\/h3>\n<p>\u5148\u770b\u4e00\u4e2a\u5f88\u591a\u56e2\u961f\u90fd\u4f3c\u66fe\u76f8\u8bc6\u7684\u573a\u9762\u3002<\/p>\n<p>\u4e1a\u52a1\u90e8\u95e8\u63d0\u4e86 30 \u4e2a\u6570\u636e\u4efb\u52a1&#xff1a;\u6bcf\u5929\u51cc\u6668\u540c\u6b65\u8ba2\u5355\u3001\u6bcf\u5c0f\u65f6\u66f4\u65b0\u5e93\u5b58\u3001\u6bcf 10 \u5206\u949f\u8dd1\u4e00\u6b21\u6307\u6807\u3001\u5931\u8d25\u8981\u91cd\u8bd5\u3001\u4e0a\u6e38\u6210\u529f\u4e0b\u6e38\u624d\u80fd\u8dd1\u3002<\/p>\n<p>\u4e8e\u662f\u5f00\u59cb\u9009\u578b&#xff1a;<\/p>\n<ul>\n<li>\u8981\u53ef\u89c6\u5316 DAG&#xff0c;\u4e0a DolphinScheduler&#xff1b;<\/li>\n<li>\u8981 Python \u751f\u6001&#xff0c;\u4e0a Airflow&#xff1b;<\/li>\n<li>\u8981\u8f7b\u91cf\u5b9a\u65f6&#xff0c;\u4e0a XXL-JOB&#xff1b;<\/li>\n<li>\u8981\u5bb9\u5668\u9694\u79bb&#xff0c;\u518d\u914d Kubernetes CronJob&#xff1b;<\/li>\n<li>\u8981\u534f\u8c03&#xff0c;\u518d\u52a0 ZooKeeper&#xff1b;<\/li>\n<li>\u8981\u72b6\u6001&#xff0c;\u518d\u52a0\u6570\u636e\u5e93\u548c Redis\u3002<\/li>\n<\/ul>\n<p>\u6700\u540e&#xff0c;\u4efb\u52a1\u8fd8\u6ca1\u8dd1\u7a33&#xff0c;\u5e73\u53f0\u5148\u6709\u4e86\u5341\u51e0\u4e2a\u8fdb\u7a0b&#xff1a;<\/p>\n<p>API Server<br \/>\nMaster \u00d7 3<br \/>\nWorker \u00d7 3<br \/>\nZooKeeper \u00d7 3<br \/>\nDatabase \u00d7 2<br \/>\nRedis<br \/>\nAlert Server<br \/>\n\u76d1\u63a7 \/ \u65e5\u5fd7 \/ \u7f51\u5173\u2026\u2026<\/p>\n<p>\u8fd9\u4e0d\u662f\u5938\u5f20&#xff0c;\u800c\u662f\u5f88\u591a\u300c\u6807\u51c6\u5206\u5e03\u5f0f\u8c03\u5ea6\u300d\u7684\u9ed8\u8ba4\u5f62\u6001\u3002<\/p>\n<p>\u95ee\u9898\u662f&#xff1a;\u8fd9\u4e9b\u7ec4\u4ef6\u4e0d\u662f\u4e3a 30 \u4e2a\u4efb\u52a1\u51c6\u5907\u7684&#xff0c;\u800c\u662f\u4e3a 3000 \u4e2a\u4efb\u52a1\u3001\u51e0\u5341\u4e2a\u56e2\u961f\u3001\u8de8\u96c6\u7fa4\u5bb9\u707e\u51c6\u5907\u7684\u3002<\/p>\n<p>\u5bf9\u4e2d\u5c0f\u56e2\u961f\u6765\u8bf4&#xff0c;\u771f\u6b63\u9700\u8981\u7684\u5f80\u5f80\u4e0d\u662f\u300c\u6700\u5f3a\u8c03\u5ea6\u300d&#xff0c;\u800c\u662f&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u5929\u80fd\u5355\u673a\u8dd1&#xff0c;\u7b2c\u4e8c\u5e74\u9700\u8981\u6269\u5bb9\u65f6&#xff0c;\u4e0d\u7528\u6362\u4e00\u5957\u7cfb\u7edf\u3002<\/p>\n<hr \/>\n<h3>02 DolphinScheduler&#xff1a;\u80fd\u529b\u5b8c\u6574&#xff0c;\u4f46\u9ed8\u8ba4\u5f88\u91cd<\/h3>\n<p>Apache DolphinScheduler \u662f\u56fd\u5185\u4f7f\u7528\u6700\u5e7f\u7684\u5f00\u6e90\u5206\u5e03\u5f0f\u8c03\u5ea6\u4e4b\u4e00\u3002<\/p>\n<p>\u5b83\u7684\u5b9a\u4f4d\u5f88\u6e05\u6670&#xff1a;<\/p>\n<p>\u53ef\u89c6\u5316\u3001\u5206\u5e03\u5f0f\u3001\u591a\u79df\u6237\u7684\u5de5\u4f5c\u6d41\u4efb\u52a1\u8c03\u5ea6\u5e73\u53f0\u3002<\/p>\n<p>\u6838\u5fc3\u80fd\u529b\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u53ef\u89c6\u5316 DAG \u7f16\u6392&#xff0c;\u62d6\u62fd\u8282\u70b9\u3001\u8fde\u7ebf\u3001\u914d\u7f6e\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u4e30\u5bcc\u7684\u4efb\u52a1\u7c7b\u578b&#xff1a;Shell\u3001SQL\u3001Spark\u3001Flink\u3001HTTP\u3001DataX\u3001\u5b50\u6d41\u7a0b\u7b49&#xff1b;<\/li>\n<li>Cron \u5b9a\u65f6\u3001\u4f9d\u8d56\u8c03\u5ea6\u3001\u5931\u8d25\u91cd\u8bd5\u3001\u8865\u6570\u3001\u544a\u8b66&#xff1b;<\/li>\n<li>Master \/ Worker \u5206\u79bb&#xff0c;\u652f\u6301\u6c34\u5e73\u6269\u5c55&#xff1b;<\/li>\n<li>\u591a\u79df\u6237\u3001\u8d44\u6e90\u4e2d\u5fc3\u3001Worker \u5206\u7ec4\u3001\u73af\u5883\u7ba1\u7406&#xff1b;<\/li>\n<li>\u6ce8\u518c\u4e2d\u5fc3 &#043; \u6570\u636e\u5e93&#xff0c;\u652f\u6301\u9ad8\u53ef\u7528\u90e8\u7f72\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u7684\u7ec4\u7ec7\u6709\u591a\u4e2a\u6570\u636e\u56e2\u961f\u3001\u4e0a\u5343\u4e2a\u4efb\u52a1\u3001\u9700\u8981\u8d44\u6e90\u7ec4\u548c\u5f3a\u9694\u79bb&#xff0c;DolphinScheduler \u662f\u975e\u5e38\u6210\u719f\u7684\u9009\u62e9\u3002<\/p>\n<p>\u4f46\u5b83\u7684\u300c\u5b8c\u6574\u300d&#xff0c;\u4e5f\u610f\u5473\u7740\u300c\u91cd\u300d&#xff1a;<\/p>\n<ul>\n<li>API\u3001Master\u3001Worker\u3001Alert \u591a\u4e2a\u670d\u52a1&#xff1b;<\/li>\n<li>\u901a\u5e38\u8fd8\u8981\u6ce8\u518c\u4e2d\u5fc3&#xff08;\u5982 ZooKeeper&#xff09;\u548c\u5173\u7cfb\u578b\u6570\u636e\u5e93&#xff1b;<\/li>\n<li>\u591a Master\u3001\u591a Worker \u7684\u90e8\u7f72\u3001\u5347\u7ea7\u3001\u6392\u969c&#xff0c;\u9700\u8981\u4e13\u95e8\u7684\u8fd0\u7ef4\u7ecf\u9a8c&#xff1b;<\/li>\n<li>\u4efb\u52a1\u7c7b\u578b\u591a&#xff0c;\u914d\u7f6e\u9879\u4e5f\u591a&#xff0c;\u5c0f\u56e2\u961f\u5bb9\u6613\u300c\u7528\u4e0d\u5230\u4f46\u5fc5\u987b\u7ef4\u62a4\u300d&#xff1b;<\/li>\n<li>\u4e3a\u4e86\u9ad8\u53ef\u7528&#xff0c;\u7ec4\u4ef6\u5f80\u5f80\u8981\u4e09\u526f\u672c\u8d77\u6b65\u3002<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd&#xff1a;<\/p>\n<p>DolphinScheduler \u662f\u4e00\u5957\u5b8c\u6574\u7684\u8c03\u5ea6\u5e73\u53f0&#xff0c;\u4e0d\u662f\u4e00\u4e2a\u5c0f\u56e2\u961f\u7684\u8f7b\u91cf\u5b9a\u65f6\u5668\u3002<\/p>\n<hr \/>\n<h3>03 Airflow&#xff1a;DAG \u8868\u8fbe\u529b\u5f88\u5f3a&#xff0c;\u8fd0\u884c\u65f6\u4e5f\u5f88\u91cd<\/h3>\n<p>Apache Airflow \u662f\u53e6\u4e00\u4e2a\u7ed5\u4e0d\u5f00\u7684\u540d\u5b57\u3002<\/p>\n<p>\u5b83\u7684\u6838\u5fc3\u4f18\u52bf\u662f\u300c\u7528\u4ee3\u7801\u5b9a\u4e49\u5de5\u4f5c\u6d41\u300d&#xff1a;<\/p>\n<p><span class=\"token keyword\">with<\/span> DAG<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;order_pipeline&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    schedule<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;0 2 * * *&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    start_date<span class=\"token operator\">&#061;<\/span>datetime<span class=\"token punctuation\">(<\/span><span class=\"token number\">2026<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    catchup<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> dag<span class=\"token punctuation\">:<\/span><br \/>\n    extract <span class=\"token operator\">&#061;<\/span> PythonOperator<span class=\"token punctuation\">(<\/span>task_id<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;extract&#034;<\/span><span class=\"token punctuation\">,<\/span> python_callable<span class=\"token operator\">&#061;<\/span>extract_orders<span class=\"token punctuation\">)<\/span><br \/>\n    transform <span class=\"token operator\">&#061;<\/span> PythonOperator<span class=\"token punctuation\">(<\/span>task_id<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;transform&#034;<\/span><span class=\"token punctuation\">,<\/span> python_callable<span class=\"token operator\">&#061;<\/span>transform_orders<span class=\"token punctuation\">)<\/span><br \/>\n    load <span class=\"token operator\">&#061;<\/span> PythonOperator<span class=\"token punctuation\">(<\/span>task_id<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;load&#034;<\/span><span class=\"token punctuation\">,<\/span> python_callable<span class=\"token operator\">&#061;<\/span>load_orders<span class=\"token punctuation\">)<\/span><\/p>\n<p>    extract <span class=\"token operator\">&gt;&gt;<\/span> transform <span class=\"token operator\">&gt;&gt;<\/span> load<\/p>\n<p>Airflow \u7684\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li>Python \u539f\u751f&#xff0c;DAG \u5c31\u662f\u4ee3\u7801&#xff0c;\u8868\u8fbe\u80fd\u529b\u5f3a&#xff1b;<\/li>\n<li>Operator \/ Provider \u751f\u6001\u4e30\u5bcc&#xff0c;\u51e0\u4e4e\u4ec0\u4e48\u7cfb\u7edf\u90fd\u80fd\u63a5&#xff1b;<\/li>\n<li>Web UI \u6210\u719f&#xff0c;\u65e5\u5fd7\u3001\u91cd\u8bd5\u3001\u8865\u6570\u3001\u4f9d\u8d56\u7ba1\u7406\u90fd\u6709&#xff1b;<\/li>\n<li>\u652f\u6301 Celery\u3001Kubernetes \u7b49 Executor&#xff1b;<\/li>\n<li>\u793e\u533a\u5927&#xff0c;\u8d44\u6599\u591a\u3002<\/li>\n<\/ul>\n<p>\u4f46\u5b83\u7684\u8fd0\u884c\u65f6\u540c\u6837\u4e0d\u8f7b&#xff1a;<\/p>\n<ul>\n<li>Web Server\u3001Scheduler\u3001Executor\u3001Metadata Database&#xff1b;<\/li>\n<li>\u5206\u5e03\u5f0f\u6267\u884c\u8fd8\u8981 Celery Broker&#xff08;Redis\/RabbitMQ&#xff09;\u6216 Kubernetes&#xff1b;<\/li>\n<li>Scheduler \u8981\u4e0d\u65ad\u89e3\u6790 DAG \u6587\u4ef6&#xff0c;DAG \u591a\u4e86\u4ee5\u540e\u672c\u8eab\u5c31\u6709\u538b\u529b&#xff1b;<\/li>\n<li>Python \u4f9d\u8d56\u7ba1\u7406\u662f\u957f\u671f\u75db\u70b9&#xff0c;\u4e0d\u540c\u4efb\u52a1\u7684\u73af\u5883\u5bb9\u6613\u51b2\u7a81&#xff1b;<\/li>\n<li>\u5bf9\u300c\u6570\u636e\u4efb\u52a1\u300d\u7684\u8bed\u4e49\u652f\u6301&#xff0c;\u9700\u8981\u9760 Operator \u548c\u63d2\u4ef6\u62fc&#xff1b;<\/li>\n<li>\u9ad8\u53ef\u7528 Scheduler\u3001\u6570\u636e\u5e93\u3001\u65e5\u5fd7\u5b58\u50a8&#xff0c;\u90fd\u662f\u989d\u5916\u7684\u8fd0\u7ef4\u5de5\u4f5c\u3002<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd&#xff1a;<\/p>\n<p>Airflow \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u5de5\u4f5c\u6d41\u7f16\u6392\u6846\u67b6&#xff0c;\u4f46\u5b83\u4e0d\u662f\u4e3a\u300c\u8f7b\u91cf\u6570\u636e\u5e73\u53f0\u300d\u8bbe\u8ba1\u7684\u3002<\/p>\n<hr \/>\n<h3>04 XXL-JOB\u3001Quartz\u3001K8s CronJob&#xff1a;\u8f7b&#xff0c;\u4f46\u4e0d\u591f<\/h3>\n<p>\u9664\u4e86\u4e0a\u9762\u4e24\u4e2a\u300c\u5e73\u53f0\u7ea7\u300d\u8c03\u5ea6&#xff0c;\u8fd8\u6709\u5f88\u591a\u66f4\u8f7b\u7684\u9009\u62e9\u3002<\/p>\n<h4>XXL-JOB<\/h4>\n<p>XXL-JOB \u662f\u56fd\u5185\u975e\u5e38\u6d41\u884c\u7684\u8f7b\u91cf\u5206\u5e03\u5f0f\u4efb\u52a1\u8c03\u5ea6\u5e73\u53f0&#xff1a;<\/p>\n<ul>\n<li>\u8c03\u5ea6\u4e2d\u5fc3&#xff08;Admin&#xff09; &#043; \u6267\u884c\u5668&#xff08;Executor&#xff09;&#xff1b;<\/li>\n<li>Cron \u5b9a\u65f6\u3001\u5931\u8d25\u91cd\u8bd5\u3001\u544a\u8b66&#xff1b;<\/li>\n<li>\u8def\u7531\u7b56\u7565\u4e30\u5bcc&#xff1a;\u8f6e\u8be2\u3001\u968f\u673a\u3001\u4e00\u81f4\u6027 Hash\u3001\u6545\u969c\u8f6c\u79fb\u3001\u5fd9\u788c\u8f6c\u79fb&#xff1b;<\/li>\n<li>\u6267\u884c\u5668\u6ce8\u518c\u3001\u4efb\u52a1\u5206\u7247\u3001GLUE \u6a21\u5f0f&#xff1b;<\/li>\n<li>\u90e8\u7f72\u7b80\u5355&#xff0c;Java \u751f\u6001\u53cb\u597d\u3002<\/li>\n<\/ul>\n<p>\u5b83\u5f88\u9002\u5408\u300cJava \u5e94\u7528\u91cc\u7684\u5b9a\u65f6\u4efb\u52a1\u300d&#xff0c;\u4f46\u5b83\u7684\u6838\u5fc3\u62bd\u8c61\u662f\u300c\u4efb\u52a1\u300d&#xff0c;\u4e0d\u662f\u300c\u6570\u636e\u5de5\u4f5c\u6d41\u300d&#xff1a;<\/p>\n<ul>\n<li>DAG \u80fd\u529b\u5f31&#xff0c;\u590d\u6742\u4f9d\u8d56\u8981\u9760\u5b50\u4efb\u52a1\u6216\u4e1a\u52a1\u4ee3\u7801\u62fc&#xff1b;<\/li>\n<li>\u6ca1\u6709\u6570\u636e\u4efb\u52a1\u7279\u6709\u7684 Schema\u3001CDC \u4f4d\u70b9\u3001\u589e\u91cf\u72b6\u6001&#xff1b;<\/li>\n<li>\u8c03\u5ea6\u548c\u6267\u884c\u867d\u7136\u5206\u79bb&#xff0c;\u4f46\u4efb\u52a1\u7f16\u6392\u80fd\u529b\u6709\u9650&#xff1b;<\/li>\n<li>\u4e0d\u9002\u5408\u8868\u8fbe\u300c\u591a\u4efb\u52a1\u3001\u591a\u4f9d\u8d56\u3001\u53ef\u56de\u586b\u300d\u7684\u6570\u636e\u7ba1\u9053\u3002<\/li>\n<\/ul>\n<h4>Quartz<\/h4>\n<p>Quartz \u662f Java \u4e16\u754c\u91cc\u6700\u7ecf\u5178\u7684\u5b9a\u65f6\u4efb\u52a1\u5e93&#xff1a;<\/p>\n<ul>\n<li>Cron \u8868\u8fbe\u5f0f&#xff1b;<\/li>\n<li>RAMJobStore \/ JDBCJobStore&#xff1b;<\/li>\n<li>\u96c6\u7fa4\u6a21\u5f0f\u901a\u8fc7\u6570\u636e\u5e93\u9501\u907f\u514d\u91cd\u590d\u89e6\u53d1&#xff1b;<\/li>\n<li>\u751f\u6001\u6210\u719f&#xff0c;Spring Boot \u76f4\u63a5\u96c6\u6210\u3002<\/li>\n<\/ul>\n<p>\u4f46 Quartz \u53ea\u662f\u4e00\u4e2a\u300c\u65f6\u95f4\u89e6\u53d1\u5185\u6838\u300d&#xff1a;<\/p>\n<ul>\n<li>\u6ca1\u6709 Web UI&#xff1b;<\/li>\n<li>\u6ca1\u6709 DAG&#xff1b;<\/li>\n<li>\u6ca1\u6709\u4efb\u52a1\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u6ca1\u6709\u5b9e\u4f8b\u72b6\u6001\u673a&#xff1b;<\/li>\n<li>\u6ca1\u6709\u6267\u884c\u9694\u79bb&#xff1b;<\/li>\n<li>\u6ca1\u6709\u4efb\u52a1\u7ea7\u522b\u7684\u91cd\u8bd5\u3001\u8d85\u65f6\u3001\u505c\u6b62\u3002<\/li>\n<\/ul>\n<p>\u5b83\u662f\u5f88\u597d\u7684\u300c\u96f6\u4ef6\u300d&#xff0c;\u4f46\u4e0d\u662f\u300c\u8c03\u5ea6\u5e73\u53f0\u300d\u3002<\/p>\n<h4>Kubernetes CronJob<\/h4>\n<p>Kubernetes CronJob \u7684\u4f18\u52bf\u662f\u5bb9\u5668\u9694\u79bb&#xff1a;<\/p>\n<ul>\n<li>\u5230\u70b9\u8d77\u4e00\u4e2a Pod&#xff0c;\u8dd1\u5b8c\u9500\u6bc1&#xff1b;<\/li>\n<li>\u8d44\u6e90\u9650\u5236\u6e05\u6670&#xff1b;<\/li>\n<li>\u548c K8s \u751f\u6001\u5929\u7136\u96c6\u6210\u3002<\/li>\n<\/ul>\n<p>\u4f46\u5b83\u7684\u8c03\u5ea6\u8bed\u4e49\u5f88\u8584&#xff1a;<\/p>\n<ul>\n<li>\u6ca1\u6709 DAG&#xff1b;<\/li>\n<li>\u6ca1\u6709\u8de8\u4efb\u52a1\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u6ca1\u6709\u5b9e\u4f8b\u72b6\u6001\u673a&#xff1b;<\/li>\n<li>\u6ca1\u6709\u7edf\u4e00\u7684\u65e5\u5fd7\u3001\u91cd\u8bd5\u3001\u544a\u8b66\u3001\u8865\u6570&#xff1b;<\/li>\n<li>\u51fa\u95ee\u9898\u53ea\u80fd\u770b Pod \u72b6\u6001\u548c\u65e5\u5fd7\u3002<\/li>\n<\/ul>\n<p>\u5b83\u9002\u5408\u300c\u7b80\u5355\u5b9a\u65f6\u4efb\u52a1\u300d&#xff0c;\u4e0d\u9002\u5408\u300c\u6570\u636e\u7ba1\u9053\u8c03\u5ea6\u300d\u3002<\/p>\n<hr \/>\n<h3>05 \u8fd9\u4e9b\u8c03\u5ea6\u7cfb\u7edf&#xff0c;\u5171\u540c\u7684\u95ee\u9898\u662f\u4ec0\u4e48&#xff1f;<\/h3>\n<p>\u628a\u5e02\u9762\u4e0a\u7684\u8c03\u5ea6\u7cfb\u7edf\u653e\u5728\u4e00\u8d77\u770b&#xff1a;<\/p>\n<table>\n<tr>\u4ea7\u54c1\u6838\u5fc3\u62bd\u8c61\u5f3a\u9879\u4e3b\u8981\u6210\u672c<\/tr>\n<tbody>\n<tr>\n<td>DolphinScheduler<\/td>\n<td>\u5de5\u4f5c\u6d41 &#043; \u4efb\u52a1<\/td>\n<td>DAG\u3001\u591a\u79df\u6237\u3001\u4efb\u52a1\u7c7b\u578b\u4e30\u5bcc<\/td>\n<td>\u7ec4\u4ef6\u591a&#xff0c;\u90e8\u7f72\u8fd0\u7ef4\u91cd<\/td>\n<\/tr>\n<tr>\n<td>Airflow<\/td>\n<td>Python DAG<\/td>\n<td>\u8868\u8fbe\u529b\u5f3a\u3001\u751f\u6001\u4e30\u5bcc<\/td>\n<td>\u8fd0\u884c\u65f6\u91cd&#xff0c;\u4f9d\u8d56\u7ba1\u7406\u590d\u6742<\/td>\n<\/tr>\n<tr>\n<td>XXL-JOB<\/td>\n<td>\u4efb\u52a1<\/td>\n<td>\u8f7b\u91cf\u3001\u8def\u7531\u7b56\u7565\u4e30\u5bcc<\/td>\n<td>DAG \u4e0e\u6570\u636e\u8bed\u4e49\u5f31<\/td>\n<\/tr>\n<tr>\n<td>Quartz<\/td>\n<td>\u5b9a\u65f6\u89e6\u53d1\u5668<\/td>\n<td>\u6210\u719f\u3001\u5d4c\u5165\u7b80\u5355<\/td>\n<td>\u6ca1\u6709\u5e73\u53f0\u80fd\u529b<\/td>\n<\/tr>\n<tr>\n<td>K8s CronJob<\/td>\n<td>\u5bb9\u5668\u4efb\u52a1<\/td>\n<td>\u9694\u79bb\u597d\u3001\u4e91\u539f\u751f<\/td>\n<td>\u8c03\u5ea6\u8bed\u4e49\u8584<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b83\u4eec\u7684\u80fd\u529b\u90fd\u5f88\u5f3a&#xff0c;\u4f46\u590d\u6742\u5ea6\u6765\u6e90\u4e5f\u5f88\u4e00\u81f4\u3002<\/p>\n<h4>\u95ee\u9898\u4e00&#xff1a;\u5206\u5e03\u5f0f\u662f\u9ed8\u8ba4\u503c&#xff0c;\u4e0d\u662f\u53ef\u9009\u9879<\/h4>\n<p>\u5f88\u591a\u8c03\u5ea6\u7cfb\u7edf\u4ece\u7b2c\u4e00\u5929\u5c31\u5047\u8bbe\u4f60\u4f1a\u90e8\u7f72\u591a Master\u3001\u591a Worker\u3001\u6ce8\u518c\u4e2d\u5fc3\u3001\u6570\u636e\u5e93\u3002<\/p>\n<p>\u4f46\u5c0f\u56e2\u961f\u7b2c\u4e00\u5929\u53ef\u80fd\u53ea\u6709\u4e00\u53f0\u673a\u5668\u3002<\/p>\n<p>\u4e3a\u4e86\u300c\u4ee5\u540e\u53ef\u80fd\u6269\u5bb9\u300d&#xff0c;\u5148\u627f\u62c5\u4e86\u300c\u73b0\u5728\u5c31\u590d\u6742\u300d\u3002<\/p>\n<h4>\u95ee\u9898\u4e8c&#xff1a;\u8c03\u5ea6\u548c\u6267\u884c\u5bb9\u6613\u8026\u5408<\/h4>\n<p>\u4efb\u52a1\u5982\u679c\u76f4\u63a5\u8dd1\u5728\u8c03\u5ea6\u8fdb\u7a0b\u91cc&#xff1a;<\/p>\n<ul>\n<li>\u4e00\u4e2a ETL \u4efb\u52a1\u5185\u5b58\u6cc4\u6f0f&#xff0c;\u8c03\u5ea6\u670d\u52a1\u8ddf\u7740\u6302&#xff1b;<\/li>\n<li>\u4efb\u52a1\u4f9d\u8d56\u7684 JDBC \u9a71\u52a8\u3001Python \u5305\u3001\u7b2c\u4e09\u65b9 jar&#xff0c;\u4f1a\u6c61\u67d3\u8c03\u5ea6\u8fdb\u7a0b&#xff1b;<\/li>\n<li>\u4efb\u52a1\u65e5\u5fd7\u3001\u4e34\u65f6\u6587\u4ef6\u3001\u7ebf\u7a0b\u6c60&#xff0c;\u548c\u8c03\u5ea6\u5171\u4eab\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<p>\u4f46\u5b8c\u5168\u62c6\u5f00&#xff0c;\u53c8\u9700\u8981\u6d88\u606f\u961f\u5217\u3001\u6ce8\u518c\u4e2d\u5fc3\u3001\u670d\u52a1\u53d1\u73b0&#xff0c;\u590d\u6742\u5ea6\u7acb\u523b\u4e0a\u5347\u3002<\/p>\n<h4>\u95ee\u9898\u4e09&#xff1a;\u72b6\u6001\u548c\u65e5\u5fd7\u8de8\u8282\u70b9\u540e\u5f88\u96be\u67e5<\/h4>\n<p>\u8c03\u5ea6\u5668\u77e5\u9053\u300c\u4efb\u52a1\u5931\u8d25\u4e86\u300d&#xff0c;\u4f46\u4e0d\u77e5\u9053&#xff1a;<\/p>\n<ul>\n<li>\u662f\u54ea\u4e2a\u8282\u70b9\u8dd1\u7684&#xff1f;<\/li>\n<li>\u5931\u8d25\u5728\u54ea\u4e00\u6b65&#xff1f;<\/li>\n<li>\u65e5\u5fd7\u5728\u54ea\u53f0\u673a\u5668\u4e0a&#xff1f;<\/li>\n<li>\u91cd\u8bd5\u540e\u72b6\u6001\u6709\u6ca1\u6709\u8986\u76d6&#xff1f;<\/li>\n<li>\u4e0a\u4e00\u6b21\u6210\u529f\u5b9e\u4f8b\u662f\u4ec0\u4e48\u65f6\u5019&#xff1f;<\/li>\n<\/ul>\n<p>\u6ca1\u6709\u7edf\u4e00\u7684\u5b9e\u4f8b\u72b6\u6001\u548c\u65e5\u5fd7\u56de\u6536&#xff0c;\u5206\u5e03\u5f0f\u8c03\u5ea6\u5c31\u4f1a\u53d8\u6210\u300c\u5206\u5e03\u5f0f\u6392\u969c\u300d\u3002<\/p>\n<h4>\u95ee\u9898\u56db&#xff1a;\u6570\u636e\u4efb\u52a1\u7684\u8bed\u4e49&#xff0c;\u901a\u7528\u8c03\u5ea6\u5668\u4e0d\u4e00\u5b9a\u61c2<\/h4>\n<p>\u6570\u636e\u4efb\u52a1\u4e0d\u53ea\u662f\u300c\u5230\u70b9\u6267\u884c\u4e00\u4e2a\u811a\u672c\u300d&#xff0c;\u5b83\u8fd8\u9700\u8981&#xff1a;<\/p>\n<ul>\n<li>\u4e0a\u6e38\u6210\u529f\u540e\u624d\u8dd1&#xff1b;<\/li>\n<li>\u4e0a\u6e38\u6700\u8fd1\u4e00\u6b21\u5b9e\u4f8b\u7684\u65f6\u95f4\u7a97\u53e3&#xff1b;<\/li>\n<li>\u5931\u8d25\u91cd\u8bd5\u3001\u8d85\u65f6\u4e2d\u65ad&#xff1b;<\/li>\n<li>\u589e\u91cf\u4f4d\u70b9\u3001\u65ad\u70b9\u7eed\u4f20&#xff1b;<\/li>\n<li>DAG \u5185\u90e8\u7236\u5b50\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u4efb\u52a1\u5b9e\u4f8b\u53ef\u8ffd\u8e2a\u3001\u53ef\u505c\u6b62\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u8bed\u4e49&#xff0c;\u901a\u7528\u8c03\u5ea6\u5668\u8981\u4e48\u6ca1\u6709&#xff0c;\u8981\u4e48\u8981\u9760\u63d2\u4ef6\u548c\u5916\u90e8\u7cfb\u7edf\u62fc\u3002<\/p>\n<hr \/>\n<h3>06 DataY \u7684\u7b54\u6848&#xff1a;\u4e0d\u662f\u518d\u505a\u4e00\u4e2a\u8c03\u5ea6\u5e73\u53f0<\/h3>\n<p>\u6211\u4eec\u505a DataY \u8c03\u5ea6\u65f6&#xff0c;\u6ca1\u6709\u60f3\u518d\u5199\u4e00\u4e2a DolphinScheduler\u3002<\/p>\n<p>\u800c\u662f\u5148\u95ee\u4e86\u4e00\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p>\u5982\u679c\u5927\u591a\u6570\u56e2\u961f\u53ea\u9700\u8981\u300c\u6309\u65f6\u3001\u6309\u4f9d\u8d56\u3001\u53ef\u9760\u5730\u8dd1\u4efb\u52a1\u300d&#xff0c;\u4e3a\u4ec0\u4e48\u4e00\u5b9a\u8981\u5148\u6709\u4e00\u5957\u5206\u5e03\u5f0f\u96c6\u7fa4&#xff1f;<\/p>\n<p>DataY \u7684\u7b54\u6848\u662f\u628a\u8c03\u5ea6\u505a\u8fdb\u5e73\u53f0\u672c\u8eab&#xff0c;\u5e76\u4e14\u575a\u6301\u4e09\u4e2a\u539f\u5219&#xff1a;<\/p>\n<li>\u5355\u673a\u662f\u9ed8\u8ba4\u503c&#xff1a;standalone \u6a21\u5f0f\u4e0d\u9700\u8981 Redis&#xff0c;\u8c03\u5ea6\u548c\u6267\u884c\u540c\u8fdb\u7a0b&#xff1b;<\/li>\n<li>\u96c6\u7fa4\u662f\u53ef\u9009\u9879&#xff1a;\u9700\u8981\u6269\u5bb9\u65f6&#xff0c;\u6539\u4e00\u4e2a\u914d\u7f6e\u5c31\u80fd\u62c6\u6210 master \/ worker&#xff1b;<\/li>\n<li>\u540c\u4e00\u5957\u4ee3\u7801&#xff1a;\u5355\u673a\u548c\u96c6\u7fa4\u4e0d\u662f\u4e24\u4e2a\u7248\u672c&#xff0c;\u4e0d\u662f\u4e24\u5957\u5206\u652f\u3002<\/li>\n<p>DataY \u7684\u8c03\u5ea6\u7cfb\u7edf\u7531\u4e24\u5c42\u7ec4\u6210&#xff1a;<\/p>\n<ul>\n<li>\u65f6\u95f4\u89e6\u53d1\u5c42&#xff1a;Quartz \u8d1f\u8d23 Cron \u5230\u70b9\u89e6\u53d1&#xff1b;<\/li>\n<li>\u8c03\u5ea6\u7f16\u6392\u5c42&#xff1a;DataY \u81ea\u7814&#xff0c;\u8d1f\u8d23\u5b9e\u4f8b\u3001\u4f9d\u8d56\u3001\u5206\u53d1\u3001\u72b6\u6001\u3001\u91cd\u8bd5\u3001\u8d85\u65f6\u3001\u505c\u6b62\u3002<\/li>\n<\/ul>\n<p>Quartz \u8d1f\u8d23\u300c\u4ec0\u4e48\u65f6\u5019\u8dd1\u300d&#xff0c;DataY \u8d1f\u8d23\u300c\u8dd1\u4ec0\u4e48\u3001\u80fd\u4e0d\u80fd\u8dd1\u3001\u5728\u54ea\u8dd1\u3001\u8dd1\u5b8c\u600e\u4e48\u8bb0\u300d\u3002<\/p>\n<hr \/>\n<h3>07 \u4e00\u5957\u4ee3\u7801&#xff0c;\u4e09\u79cd\u89d2\u8272<\/h3>\n<p>DataY \u901a\u8fc7\u4e00\u4e2a\u914d\u7f6e\u9879 development.mode \u58f0\u660e\u5f53\u524d\u8fdb\u7a0b\u7684\u89d2\u8272&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u5f0f\u8c03\u5ea6\u80fd\u529b\u6267\u884c\u80fd\u529b\u4f9d\u8d56 Redis\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>standalone<\/td>\n<td>\u6709<\/td>\n<td>\u6709<\/td>\n<td>\u5426<\/td>\n<td>\u5355\u673a\u3001\u5f00\u53d1\u3001\u8fb9\u7f18\u8282\u70b9<\/td>\n<\/tr>\n<tr>\n<td>master<\/td>\n<td>\u6709<\/td>\n<td>\u65e0<\/td>\n<td>\u662f<\/td>\n<td>\u53ea\u505a\u8c03\u5ea6&#xff0c;\u53ef\u591a\u526f\u672c<\/td>\n<\/tr>\n<tr>\n<td>worker<\/td>\n<td>\u65e0<\/td>\n<td>\u6709<\/td>\n<td>\u662f<\/td>\n<td>\u53ea\u505a\u6267\u884c&#xff0c;\u6c34\u5e73\u6269\u5c55<\/td>\n<\/tr>\n<tr>\n<td>master,worker<\/td>\n<td>\u6709<\/td>\n<td>\u6709<\/td>\n<td>\u662f<\/td>\n<td>\u5c0f\u96c6\u7fa4&#xff0c;\u8c03\u5ea6\u4e0e\u6267\u884c\u540c\u673a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u51e0\u4e2a\u5173\u952e\u70b9&#xff1a;<\/p>\n<ul>\n<li>standalone \u662f\u9ed8\u8ba4\u503c&#xff0c;\u5355\u673a\u4e0d\u9700\u8981 Redis&#xff1b;<\/li>\n<li>\u89d2\u8272\u7528\u9017\u53f7\u5206\u9694&#xff0c;\u4e5f\u652f\u6301\u5206\u53f7\u548c\u7a7a\u683c&#xff0c;\u5927\u5c0f\u5199\u4e0d\u654f\u611f&#xff1b;<\/li>\n<li>\u89d2\u8272\u662f\u8fd0\u884c\u65f6\u884c\u4e3a&#xff0c;\u4e0d\u662f\u4e24\u5957\u4ee3\u7801&#xff1b;<\/li>\n<li>\u4e0d\u9700\u8981\u7ef4\u62a4 application-master.yml\u3001application-worker.yml \u8fd9\u79cd\u89d2\u8272 profile&#xff1b;<\/li>\n<li>\u53ea\u6709\u7eaf standalone \u8d70\u8fdb\u7a0b\u5185\u961f\u5217&#xff0c;\u4e00\u65e6\u5e26\u4e0a master \/ worker&#xff0c;\u5c31\u5207\u6362\u5230 Redis \u4e8b\u4ef6\u901a\u9053\u3002<\/li>\n<\/ul>\n<p>\u542f\u52a8\u65b9\u5f0f\u4e5f\u5f88\u76f4\u63a5&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5355\u673a&#xff08;\u9ed8\u8ba4&#xff0c;\u65e0\u9700 Redis&#xff09;<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-jar<\/span> datay-web.jar<\/p>\n<p><span class=\"token comment\"># \u53ea\u505a\u8c03\u5ea6<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-jar<\/span> datay-web.jar <span class=\"token parameter variable\">&#8211;development.mode<\/span><span class=\"token operator\">&#061;<\/span>master<\/p>\n<p><span class=\"token comment\"># \u53ea\u505a\u6267\u884c<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-jar<\/span> datay-web.jar <span class=\"token parameter variable\">&#8211;development.mode<\/span><span class=\"token operator\">&#061;<\/span>worker<\/p>\n<p><span class=\"token comment\"># \u8c03\u5ea6 &#043; \u6267\u884c\u540c\u673a<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-jar<\/span> datay-web.jar <span class=\"token parameter variable\">&#8211;development.mode<\/span><span class=\"token operator\">&#061;<\/span>master,worker<\/p>\n<p>\u5bf9\u5c0f\u56e2\u961f\u6765\u8bf4&#xff0c;\u8fd9\u610f\u5473\u7740&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u5929\u7528\u4e00\u4e2a JAR \u8dd1\u8d77\u6765&#xff0c;\u7b49\u4efb\u52a1\u771f\u7684\u591a\u4e86&#xff0c;\u518d\u6539\u914d\u7f6e\u6269\u5bb9\u3002<\/p>\n<p>\u800c\u4e0d\u662f\u7b2c\u4e00\u5929\u5c31\u6309\u300c\u5927\u5382\u67b6\u6784\u300d\u90e8\u7f72\u3002<\/p>\n<hr \/>\n<h3>08 \u65f6\u95f4\u89e6\u53d1\u3001Leader \u9009\u4e3e\u4e0e\u4efb\u52a1\u5206\u7247<\/h3>\n<h4>8.1 Quartz \u53ea\u505a\u65f6\u95f4\u89e6\u53d1<\/h4>\n<p>DataY \u6ca1\u6709\u81ea\u5df1\u9020\u4e00\u4e2a Cron \u5f15\u64ce&#xff0c;\u800c\u662f\u590d\u7528\u4e86 Quartz&#xff1a;<\/p>\n<ul>\n<li>Cron \u8868\u8fbe\u5f0f\u7cbe\u786e\u5230\u79d2&#xff1b;<\/li>\n<li>\u4efb\u52a1\u4e0a\u7ebf\u65f6\u6ce8\u518c\u89e6\u53d1\u5668&#xff0c;\u4e0b\u7ebf\u65f6\u79fb\u9664&#xff1b;<\/li>\n<li>\u4fee\u6539 Cron \u65f6\u91cd\u65b0\u8c03\u5ea6&#xff1b;<\/li>\n<li>\u7acb\u5373\u6267\u884c\u65f6\u89e6\u53d1\u4e00\u6b21\u3002<\/li>\n<\/ul>\n<p>\u4f46 Quartz \u53ea\u8d1f\u8d23\u300c\u5230\u70b9\u89e6\u53d1\u300d&#xff0c;\u4e0d\u8d1f\u8d23\u5206\u5e03\u5f0f\u534f\u8c03\u3002<\/p>\n<p>\u771f\u6b63\u7684\u8c03\u5ea6\u8bed\u4e49\u5728 Quartz \u4e4b\u4e0a&#xff1a;<\/p>\n<p>Quartz \u5230\u70b9<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u521b\u5efa\u4efb\u52a1\u5b9e\u4f8b&#xff08;APPENDING&#xff09;<br \/>\n   \u2502<br \/>\n   \u25bc<br \/>\n\u68c0\u67e5\u4f9d\u8d56\u662f\u5426\u6ee1\u8db3<br \/>\n   \u2502<br \/>\n   \u251c\u2500\u2500 \u6ee1\u8db3 \u2500\u2500\u25b6 \u6295\u9012\u6267\u884c\u4e8b\u4ef6 \u2500\u2500\u25b6 Worker \u6267\u884c<br \/>\n   \u2502<br \/>\n   \u2514\u2500\u2500 \u4e0d\u6ee1\u8db3 \u2500\u2500\u25b6 \u5b9e\u4f8b\u7f6e\u4e3a WAITING<\/p>\n<h4>8.2 \u591a Master \u600e\u4e48\u907f\u514d\u91cd\u590d\u89e6\u53d1&#xff1f;<\/h4>\n<p>\u5148\u8bf4\u7ed3\u8bba&#xff1a;<\/p>\n<p>DataY \u7684\u591a Master \u662f\u300c\u4e3b\u5907\u5f0f\u591a Master\u300d&#xff0c;\u4e0d\u662f\u300c\u6bcf\u4e2a Master \u5404\u8dd1\u4e00\u90e8\u5206\u300d\u7684\u591a\u6d3b\u8c03\u5ea6\u3002<\/p>\n<p>\u540c\u4e00\u65f6\u523b&#xff0c;\u53ea\u6709\u4e00\u4e2a Leader \u771f\u6b63\u8d1f\u8d23\u8c03\u5ea6&#xff0c;\u5176\u4ed6 Master \u5f85\u547d\u3002\u907f\u514d\u91cd\u590d\u89e6\u53d1&#xff0c;\u9760\u7684\u662f\u524d\u4e09\u5c42\u7ea6\u675f&#xff1b;\u7b2c\u56db\u5c42\u7528\u4e8e\u4e8b\u540e\u5224\u5b9a\u3002<\/p>\n<p>\u5982\u679c\u5e0c\u671b\u5f85\u547d\u8282\u70b9\u4e0d\u6d6a\u8d39&#xff0c;\u53ef\u4ee5\u7528 master,worker \u90e8\u7f72&#xff1a;\u975e Leader \u4e0d\u53c2\u4e0e\u8c03\u5ea6&#xff0c;\u4f46\u4ecd\u7136\u4f5c\u4e3a Worker \u6d88\u8d39\u4efb\u52a1\u961f\u5217\u3002\u7eaf master \u8282\u70b9\u624d\u662f\u70ed\u5907\u3002<\/p>\n<p>\u7b2c\u4e00\u5c42&#xff1a;\u62a2\u540c\u4e00\u628a\u9501\u3002<\/p>\n<p>DataY \u7528 Redis \u5206\u5e03\u5f0f\u9501\u505a Leader \u9009\u4e3e&#xff1a;<\/p>\n<ul>\n<li>\u9501\u540d\u9ed8\u8ba4 datafusion-leader&#xff1b;<\/li>\n<li>\u672a\u5f53\u9009\u7684\u8282\u70b9\u5faa\u73af\u5c1d\u8bd5 tryLock&#xff08;\u6700\u591a\u7b49\u5f85 1 \u79d2&#xff09;&#xff1b;<\/li>\n<li>\u5f53\u9009\u540e\u56de\u8c03 onElected()&#xff0c;\u52a0\u8f7d\u5df2\u4e0a\u7ebf\u4efb\u52a1\u3001\u6ce8\u518c Cron \u89e6\u53d1\u5668&#xff1b;<\/li>\n<li>\u53ea\u6709 Leader \u4ece\u6570\u636e\u5e93\u52a0\u8f7d\u5df2\u4e0a\u7ebf\u4efb\u52a1\u5e76\u91cd\u5efa\u89e6\u53d1\u5668&#xff1b;<\/li>\n<li>Leader \u6302\u6389\u540e&#xff0c;\u5176\u4ed6\u8282\u70b9\u63a5\u7ba1&#xff0c;\u91cd\u65b0\u521d\u59cb\u5316\u3002<\/li>\n<\/ul>\n<p>\u7b2c\u4e8c\u5c42&#xff1a;\u53ea\u6709 Leader \u6ce8\u518c Cron \u89e6\u53d1\u5668\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u8bbe\u8ba1&#xff1a;<\/p>\n<p>Quartz \u7684 JobStore \u662f\u8fdb\u7a0b\u5185\u7684&#xff0c;\u4e0d\u662f\u5171\u4eab\u6570\u636e\u5e93\u3002<\/p>\n<p>\u6240\u4ee5\u4e0d\u662f\u6bcf\u4e2a Master \u90fd\u6ce8\u518c\u4e00\u904d Cron&#xff0c;\u800c\u662f\u53ea\u6709 Leader \u6ce8\u518c\u3002\u8fd9\u6837\u4e0d\u4f1a\u51fa\u73b0\u591a\u4e2a Master \u540c\u65f6\u6301\u6709\u540c\u4e00\u4e2a Cron \u89e6\u53d1\u5668&#xff0c;\u4e5f\u4e0d\u9700\u8981\u628a Quartz \u7684\u89e6\u53d1\u5668\u72b6\u6001\u540c\u6b65\u5230\u5171\u4eab\u5b58\u50a8\u3002<\/p>\n<p>\u7b2c\u4e09\u5c42&#xff1a;\u53ea\u6709 Leader \u6d88\u8d39\u8c03\u5ea6\u4e8b\u4ef6\u3002<\/p>\n<p>\u4efb\u52a1\u4e0a\u7ebf\u3001\u4e0b\u7ebf\u3001\u72b6\u6001\u56de\u62a5&#xff0c;\u6700\u7ec8\u90fd\u7531 Leader \u4fa7\u7684\u4e8b\u4ef6\u5904\u7406\u5668\u6d88\u8d39&#xff1a;<\/p>\n<ul>\n<li>addJobQueue&#xff1a;Leader \u6ce8\u518c\u89e6\u53d1\u5668&#xff1b;<\/li>\n<li>deleteJobQueue&#xff1a;Leader \u5220\u9664\u89e6\u53d1\u5668&#xff1b;<\/li>\n<li>endJobQueue&#xff1a;Leader \u63a5\u6536 Worker \u4e0a\u62a5\u7684\u5b9e\u4f8b\u72b6\u6001\u5e76\u843d\u5e93\u3002<\/li>\n<\/ul>\n<p>\u672a\u5f53\u9009\u7684 Master \u4e0d\u542f\u52a8\u8fd9\u4e9b\u5904\u7406\u5668&#xff0c;\u81ea\u7136\u4e0d\u4f1a\u91cd\u590d\u6267\u884c\u8c03\u5ea6\u52a8\u4f5c\u3002<\/p>\n<p>\u7b2c\u56db\u5c42&#xff1a;\u5b9e\u4f8b\u843d\u5e93&#xff0c;\u72b6\u6001\u673a\u515c\u5e95\u3002<\/p>\n<p>\u6bcf\u6b21\u89e6\u53d1\u90fd\u4f1a\u751f\u6210\u4e00\u4e2a\u4efb\u52a1\u5b9e\u4f8b&#xff0c;\u5b9e\u4f8b\u6709\u660e\u786e\u7684\u72b6\u6001\u548c\u552f\u4e00\u7f16\u7801\u3002\u5373\u4f7f\u53d1\u751f\u6781\u7aef\u60c5\u51b5&#xff0c;\u6700\u7ec8\u4e5f\u53ef\u4ee5\u6839\u636e\u5b9e\u4f8b\u72b6\u6001\u5224\u65ad\u300c\u8fd9\u6b21\u5230\u5e95\u8dd1\u6ca1\u8dd1\u300d&#xff0c;\u800c\u4e0d\u662f\u53ea\u770b\u89e6\u53d1\u5668\u6709\u6ca1\u6709\u54cd\u3002<\/p>\n<p>Leader \u5207\u6362\u65f6&#xff0c;\u65b0 Leader \u4ece\u6570\u636e\u5e93\u91cd\u65b0\u52a0\u8f7d\u4efb\u52a1\u5b9a\u4e49&#xff0c;\u91cd\u65b0\u5efa\u7acb\u89e6\u53d1\u5668\u3002<\/p>\n<p>\u4efb\u52a1\u5b9a\u4e49\u662f\u6301\u4e45\u7684&#xff0c;\u89e6\u53d1\u5668\u662f\u4e34\u65f6\u7684\u3002<\/p>\n<p>\u8fd9\u91cc\u5fc5\u987b\u8bf4\u6e05\u695a\u4e00\u4e2a\u8fb9\u754c&#xff1a;<\/p>\n<p>\u4e3b\u5907\u9009\u4e3e\u80fd\u89e3\u51b3\u300c\u6b63\u5e38\u60c5\u51b5\u4e0b\u7684\u91cd\u590d\u8c03\u5ea6\u300d&#xff0c;\u4f46\u4e0d\u662f\u6570\u5b66\u610f\u4e49\u4e0a\u7684 Exactly-Once\u3002<\/p>\n<p>\u5982\u679c Redis \u4e0d\u53ef\u7528\u3001\u7f51\u7edc\u53d1\u751f\u5206\u533a\u3001\u6216\u8005\u65e7 Leader \u5728\u9501\u5931\u6548\u540e\u4ecd\u7136\u7ee7\u7eed\u8fd0\u884c&#xff0c;\u7406\u8bba\u4e0a\u4ecd\u53ef\u80fd\u51fa\u73b0\u91cd\u590d\u89e6\u53d1\u3002DataY \u7684\u515c\u5e95\u662f\u5b9e\u4f8b\u72b6\u6001\u4e0e\u4e1a\u52a1\u5e42\u7b49&#xff1a;\u4efb\u52a1\u672c\u8eab\u8981\u80fd\u63a5\u53d7\u300c\u81f3\u5c11\u4e00\u6b21\u300d\u7684\u6267\u884c\u8bed\u4e49\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f DataY \u72ec\u6709\u7684\u95ee\u9898&#xff0c;\u800c\u662f\u6240\u6709\u57fa\u4e8e\u79df\u7ea6\u7684\u5206\u5e03\u5f0f\u8c03\u5ea6\u90fd\u8981\u9762\u5bf9\u7684\u8fb9\u754c\u3002<\/p>\n<hr \/>\n<h4>8.3 \u591a Master \u7684\u4efb\u52a1\u5206\u7247&#xff1a;\u8c03\u5ea6\u4e0d\u5206\u7247&#xff0c;\u6267\u884c\u5206\u7247<\/h4>\n<p>\u5f88\u591a\u4eba\u542c\u5230\u300c\u591a Master\u300d&#xff0c;\u4f1a\u9ed8\u8ba4\u8ba4\u4e3a\u4efb\u52a1\u4f1a\u88ab\u62c6\u5230\u591a\u4e2a Master \u4e0a\u5e76\u884c\u8c03\u5ea6\u3002<\/p>\n<p>DataY \u5f53\u524d\u7684\u9009\u62e9\u4e0d\u540c&#xff1a;<\/p>\n<p>\u8c03\u5ea6\u5c42\u5355\u6d3b&#xff0c;\u6267\u884c\u5c42\u5206\u7247\u3002<\/p>\n<p>\u628a\u300c\u5206\u7247\u300d\u62c6\u5f00\u770b&#xff0c;\u4f1a\u66f4\u6e05\u695a&#xff1a;<\/p>\n<table>\n<tr>\u5206\u7247\u5c42\u6b21DataY \u5f53\u524d\u505a\u6cd5\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u8c03\u5ea6\u5206\u7247<\/td>\n<td>\u4e0d\u6309 Master \u5206\u7247<\/td>\n<td>\u53ea\u6709 Leader \u8c03\u5ea6&#xff0c;\u5176\u4ed6 Master \u5f85\u547d<\/td>\n<\/tr>\n<tr>\n<td>\u6267\u884c\u5206\u7247<\/td>\n<td>Redis \u961f\u5217 &#043; \u591a Worker \u7ade\u4e89\u6d88\u8d39<\/td>\n<td>\u4e00\u4e2a\u4efb\u52a1\u5b9e\u4f8b\u53ea\u4f1a\u88ab\u4e00\u4e2a Worker \u53d6\u8d70<\/td>\n<\/tr>\n<tr>\n<td>DAG \u5b50\u4efb\u52a1\u5206\u7247<\/td>\n<td>\u5f53\u524d\u4e0d\u8de8 Worker<\/td>\n<td>\u6574\u4e2a DAG \u5728\u4e00\u4e2a Worker \u4e0a\u6309\u62d3\u6251\u5e8f\u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u4efb\u52a1\u5185\u90e8\u5e76\u53d1<\/td>\n<td>\u7ec4\u4ef6\u7ea7 parallelism<\/td>\n<td>ETL \u5185\u90e8\u6309\u7ec4\u4ef6\u5e76\u53d1&#xff0c;\u4e0d\u662f\u8de8\u8282\u70b9\u5206\u7247<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>\u6267\u884c\u5206\u7247&#xff1a;\u4efb\u52a1\u600e\u4e48\u843d\u5230\u4e0d\u540c Worker&#xff1f;<\/h5>\n<p>\u8c03\u5ea6\u5668\u751f\u6210\u5b9e\u4f8b\u540e&#xff0c;\u628a\u6267\u884c\u4e8b\u4ef6\u6295\u9012\u5230 startJobQueue\u3002<\/p>\n<p>\u591a\u4e2a Worker \u540c\u65f6\u6d88\u8d39\u8fd9\u4e2a\u961f\u5217&#xff1a;<\/p>\n<p>                 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n                 \u2502  startJobQueue  \u2502<br \/>\n                 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                          \u2502<br \/>\n        \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n        \u25bc                 \u25bc                 \u25bc<br \/>\n   \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510       \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510       \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n   \u2502 Worker1 \u2502       \u2502 Worker2 \u2502       \u2502 Worker3 \u2502<br \/>\n   \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2518       \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2518       \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2518<br \/>\n        \u2502                 \u2502                 \u2502<br \/>\n        \u25bc                 \u25bc                 \u25bc<br \/>\n     \u4efb\u52a1 A             \u4efb\u52a1 B             \u4efb\u52a1 C<\/p>\n<p>\u961f\u5217\u5929\u7136\u5177\u5907\u300c\u4e00\u6761\u6d88\u606f\u53ea\u88ab\u4e00\u4e2a\u6d88\u8d39\u8005\u53d6\u8d70\u300d\u7684\u8bed\u4e49&#xff0c;\u6240\u4ee5&#xff1a;<\/p>\n<ul>\n<li>\u4efb\u52a1 A \u4e0d\u4f1a\u88ab Worker1 \u548c Worker2 \u540c\u65f6\u6267\u884c&#xff1b;<\/li>\n<li>Worker \u591a\u4e86&#xff0c;\u6574\u4f53\u541e\u5410\u81ea\u7136\u4e0a\u5347&#xff1b;<\/li>\n<li>\u4e0d\u9700\u8981\u5728\u8c03\u5ea6\u5668\u91cc\u7ef4\u62a4\u4e00\u5f20\u300c\u4efb\u52a1 \u2192 Worker\u300d\u7684\u8def\u7531\u8868&#xff1b;<\/li>\n<li>Worker \u6b63\u5e38\u5931\u8d25\u4f1a\u6309\u91cd\u8bd5\u7b56\u7565\u5904\u7406&#xff1b;\u5982\u679c Worker \u8fdb\u7a0b\u76f4\u63a5\u6302\u6389&#xff0c;\u5b9e\u4f8b\u53ef\u80fd\u505c\u7559\u5728 RUNNING&#xff0c;\u9700\u8981\u4eba\u5de5\u91cd\u8dd1\u6216\u540e\u7eed\u8865\u507f\u673a\u5236\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u5c31\u662f DataY \u7684\u300c\u6267\u884c\u5206\u7247\u300d&#xff1a;\u4e0d\u662f\u6309 Hash \u628a\u4efb\u52a1\u9884\u5206\u914d\u5230\u67d0\u4e2a Worker&#xff0c;\u800c\u662f\u8ba9 Worker \u7ade\u4e89\u6d88\u8d39\u3002<\/p>\n<p>\u5b83\u9002\u5408\u6570\u636e\u4efb\u52a1\u7684\u5b9e\u9645\u60c5\u51b5&#xff1a;\u4efb\u52a1\u5927\u5c0f\u4e0d\u4e00\u3001\u6267\u884c\u65f6\u95f4\u4e0d\u4e00\u3001\u8282\u70b9\u89c4\u683c\u4e5f\u53ef\u80fd\u4e0d\u540c\u3002\u7ade\u4e89\u6d88\u8d39\u6bd4\u9759\u6001\u5206\u7247\u66f4\u7075\u6d3b&#xff0c;\u4e5f\u4e0d\u4f1a\u51fa\u73b0\u300c\u67d0\u4e2a\u5206\u7247\u7a7a\u95f2\u3001\u53e6\u4e00\u4e2a\u5206\u7247\u6392\u961f\u300d\u7684\u95ee\u9898\u3002<\/p>\n<h5>DAG \u5b50\u4efb\u52a1&#xff1a;\u5f53\u524d\u4e0d\u8de8 Worker \u5206\u7247<\/h5>\n<p>\u9700\u8981\u7279\u522b\u8bf4\u660e&#xff1a;DataY \u5f53\u524d\u7684 DAG \u4efb\u52a1&#xff0c;\u662f\u7531\u4e00\u4e2a Worker \u53d6\u8d70\u6574\u4e2a DAG&#xff0c;\u7136\u540e\u6309\u62d3\u6251\u5e8f\u4e32\u884c\u63a8\u8fdb\u5b50\u4efb\u52a1\u3002<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4&#xff1a;<\/p>\n<ul>\n<li>DAG \u4e0d\u4f1a\u628a\u5b50\u4efb\u52a1\u62c6\u5230\u591a\u4e2a Worker \u4e0a\u5e76\u884c\u6267\u884c&#xff1b;<\/li>\n<li>\u4e00\u4e2a DAG \u5185\u7684\u7236\u5b50\u4f9d\u8d56&#xff0c;\u4ecd\u7531\u8fd9\u4e2a Worker \u987a\u5e8f\u4fdd\u8bc1&#xff1b;<\/li>\n<li>\u4ee3\u7801\u91cc\u7559\u4e86\u300c\u6309\u5c42\u5e76\u884c\u300d\u7684\u4f18\u5316\u70b9&#xff0c;\u4f46\u5f53\u524d\u7248\u672c\u6ca1\u6709\u505a\u8de8\u8282\u70b9 DAG \u5206\u7247\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u662f\u4e00\u4e2a\u660e\u786e\u7684\u8fb9\u754c&#xff0c;\u4e0d\u662f\u300c\u5df2\u7ecf\u652f\u6301\u4f46\u6ca1\u5199\u300d\u3002<\/p>\n<h5>\u4e3a\u4ec0\u4e48\u8c03\u5ea6\u5c42\u4e0d\u6309 Master \u5206\u7247&#xff1f;<\/h5>\n<p>\u56e0\u4e3a\u5206\u7247\u4f1a\u5f15\u5165\u4e00\u7ec4\u65b0\u7684\u95ee\u9898&#xff1a;<\/p>\n<li>\u89e6\u53d1\u5668\u4e00\u81f4\u6027&#xff1a;\u6bcf\u4e2a\u5206\u7247\u90fd\u8981\u4fdd\u8bc1\u81ea\u5df1\u7684 Cron \u4e0d\u91cd\u590d&#xff1b;<\/li>\n<li>\u6545\u969c\u8f6c\u79fb&#xff1a;\u4e00\u4e2a\u5206\u7247\u6302\u4e86&#xff0c;\u5b83\u8d1f\u8d23\u7684\u4efb\u52a1\u8981\u8fc1\u79fb\u5230\u5176\u4ed6\u5206\u7247&#xff1b;<\/li>\n<li>\u4f9d\u8d56\u8de8\u5206\u7247&#xff1a;A \u4efb\u52a1\u5728\u5206\u7247 1&#xff0c;B \u4efb\u52a1\u5728\u5206\u7247 2&#xff0c;\u4f9d\u8d56\u5224\u65ad\u8981\u8de8\u8282\u70b9&#xff1b;<\/li>\n<li>\u70ed\u70b9\u4e0e\u518d\u5e73\u8861&#xff1a;\u4efb\u52a1\u5927\u5c0f\u4e0d\u4e00&#xff0c;\u6309 Hash \u5206\u7247\u5f88\u5bb9\u6613\u51fa\u73b0\u70ed\u70b9&#xff1b;<\/li>\n<li>\u8fd0\u7ef4\u590d\u6742\u5ea6&#xff1a;\u5206\u7247\u6570\u3001\u8def\u7531\u89c4\u5219\u3001\u8fc1\u79fb\u7b56\u7565&#xff0c;\u90fd\u8981\u989d\u5916\u7ef4\u62a4\u3002<\/li>\n<p>\u5bf9\u51e0\u5341\u5230\u51e0\u767e\u4e2a\u4efb\u52a1\u7684\u4e2d\u5c0f\u56e2\u961f\u6765\u8bf4&#xff0c;\u5355\u6d3b\u8c03\u5ea6\u7684\u5bb9\u91cf\u8db3\u591f&#xff0c;\u590d\u6742\u5ea6\u5374\u4f4e\u5f97\u591a\u3002<\/p>\n<p>\u5148\u628a\u300c\u4e0d\u91cd\u590d\u300d\u505a\u624e\u5b9e&#xff0c;\u518d\u8c08\u300c\u5206\u7247\u300d&#xff0c;\u662f\u66f4\u7a33\u59a5\u7684\u987a\u5e8f\u3002<\/p>\n<h5>\u5982\u679c\u89c4\u6a21\u7ee7\u7eed\u589e\u957f&#xff0c;\u600e\u4e48\u6f14\u8fdb&#xff1f;<\/h5>\n<p>\u5f53\u4efb\u52a1\u91cf\u771f\u7684\u5230\u4e86\u6570\u5343\u7ea7\u3001\u6216\u8005\u591a\u79df\u6237\u9700\u8981\u5f3a\u9694\u79bb\u65f6&#xff0c;\u53ef\u4ee5\u6f14\u8fdb\u6210\u300c\u8c03\u5ea6\u5206\u7247\u300d&#xff1a;<\/p>\n<p>jobId \/ tenantId<br \/>\n       \u2502<br \/>\n       \u25bc<br \/>\n  hash % N<br \/>\n       \u2502<br \/>\n       \u251c\u2500\u2500\u25b6 Scheduler Shard 0&#xff08;Leader \u9501 0&#xff09;\u2500\u2500\u25b6 startJobQueue-0<br \/>\n       \u251c\u2500\u2500\u25b6 Scheduler Shard 1&#xff08;Leader \u9501 1&#xff09;\u2500\u2500\u25b6 startJobQueue-1<br \/>\n       \u2514\u2500\u2500\u25b6 Scheduler Shard 2&#xff08;Leader \u9501 2&#xff09;\u2500\u2500\u25b6 startJobQueue-2<\/p>\n<p>\u5927\u81f4\u601d\u8def\u662f&#xff1a;<\/p>\n<ul>\n<li>\u6309 jobId \u6216 tenantId \u505a\u4e00\u81f4\u6027 Hash&#xff0c;\u628a\u4efb\u52a1\u5206\u914d\u5230 N \u4e2a\u8c03\u5ea6\u5206\u7247&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u5206\u7247\u6709\u81ea\u5df1\u7684 Leader \u9501&#xff0c;\u4f8b\u5982 datafusion-leader-{shard}&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u5206\u7247\u53ea\u52a0\u8f7d\u81ea\u5df1\u8d1f\u8d23\u7684\u4efb\u52a1&#xff0c;\u53ea\u6ce8\u518c\u81ea\u5df1\u7684\u89e6\u53d1\u5668&#xff1b;<\/li>\n<li>Worker \u53ef\u4ee5\u6d88\u8d39\u5171\u4eab\u961f\u5217&#xff0c;\u4e5f\u53ef\u4ee5\u6309\u5206\u7247\u8ba2\u9605\u961f\u5217&#xff1b;<\/li>\n<li>\u6269\u7f29\u5bb9\u65f6\u505a\u5206\u7247\u8fc1\u79fb&#xff0c;\u5e76\u7528\u7248\u672c\u53f7 \/ fencing token \u9632\u6b62\u65e7 Leader \u5199\u5165\u3002<\/li>\n<\/ul>\n<p>\u9700\u8981\u5f3a\u8c03&#xff1a;\u8fd9\u662f DataY \u5728\u66f4\u5927\u89c4\u6a21\u4e0b\u7684\u6f14\u8fdb\u65b9\u5411&#xff0c;\u4e0d\u662f\u5f53\u524d\u7248\u672c\u5df2\u7ecf\u5b9e\u73b0\u7684\u80fd\u529b\u3002<\/p>\n<p>\u5f53\u524d\u7248\u672c\u7684\u591a Master&#xff0c;\u89e3\u51b3\u7684\u662f\u300c\u9ad8\u53ef\u7528\u300d&#xff1b;\u4efb\u52a1\u5206\u7247&#xff0c;\u89e3\u51b3\u7684\u662f\u300c\u6267\u884c\u541e\u5410\u300d\u3002\u4e24\u8005\u4e0d\u662f\u4e00\u56de\u4e8b\u3002<\/p>\n<p>\u591a Master \u8d1f\u8d23\u300c\u8c03\u5ea6\u4e0d\u4e2d\u65ad\u300d&#xff0c;\u591a Worker \u8d1f\u8d23\u300c\u4efb\u52a1\u8dd1\u5f97\u5feb\u300d\u3002<\/p>\n<hr \/>\n<h3>09 \u5355\u673a\u4e0e\u96c6\u7fa4&#xff0c;\u53ea\u5dee\u4e00\u4e2a\u4e8b\u4ef6\u670d\u52a1<\/h3>\n<p>\u8c03\u5ea6\u5668\u548c\u6267\u884c\u5668\u4e4b\u95f4&#xff0c;\u9700\u8981\u4f20\u9012\u56db\u7c7b\u4e8b\u4ef6&#xff1a;<\/p>\n<table>\n<tr>\u961f\u5217\u65b9\u5411\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>startJobQueue<\/td>\n<td>Master \u2192 Worker<\/td>\n<td>\u5f85\u6267\u884c\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td>endJobQueue<\/td>\n<td>Worker \u2192 Master<\/td>\n<td>\u4efb\u52a1\u72b6\u6001\u53d8\u66f4<\/td>\n<\/tr>\n<tr>\n<td>addJobQueue<\/td>\n<td>\u8c03\u5ea6\u4fa7 \u2192 Leader<\/td>\n<td>\u4efb\u52a1\u4e0a\u7ebf&#xff0c;\u6ce8\u518c\u89e6\u53d1\u5668<\/td>\n<\/tr>\n<tr>\n<td>deleteJobQueue<\/td>\n<td>\u8c03\u5ea6\u4fa7 \u2192 Leader<\/td>\n<td>\u4efb\u52a1\u4e0b\u7ebf&#xff0c;\u5220\u9664\u89e6\u53d1\u5668<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>DataY \u628a\u4e8b\u4ef6\u670d\u52a1\u62bd\u8c61\u6210 IEventService&#xff0c;\u6709\u4e24\u4e2a\u5b9e\u73b0&#xff1a;<\/p>\n<table>\n<tr>\u5b9e\u73b0\u4f7f\u7528\u573a\u666f\u5e95\u5c42<\/tr>\n<tbody>\n<tr>\n<td>StandaloneEventService<\/td>\n<td>\u5355\u673a<\/td>\n<td>\u8fdb\u7a0b\u5185 LinkedBlockingQueue&#xff0c;\u5bb9\u91cf 10000<\/td>\n<\/tr>\n<tr>\n<td>RedisEventService<\/td>\n<td>\u96c6\u7fa4<\/td>\n<td>Redisson RBoundedBlockingQueue&#xff0c;\u5bb9\u91cf 10000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u540c\u4e00\u5957\u8c03\u5ea6\u903b\u8f91&#xff0c;\u5355\u673a\u8d70\u5185\u5b58\u961f\u5217&#xff0c;\u96c6\u7fa4\u8d70 Redis \u961f\u5217\u3002<\/p>\n<p>\u4e0a\u5c42\u7684\u5b9e\u4f8b\u72b6\u6001\u673a\u3001\u4f9d\u8d56\u68c0\u67e5\u3001\u91cd\u8bd5\u903b\u8f91\u5b8c\u5168\u4e0d\u7528\u6539\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u300c\u4e00\u5957\u4ee3\u7801&#xff0c;\u4e09\u79cd\u89d2\u8272\u300d\u7684\u5e95\u6c14&#xff1a;<\/p>\n<p>\u4e0d\u662f\u4e3a\u5355\u673a\u548c\u96c6\u7fa4\u5199\u4e24\u5957\u8c03\u5ea6&#xff0c;\u800c\u662f\u628a\u300c\u4e8b\u4ef6\u901a\u9053\u300d\u62bd\u51fa\u6765&#xff0c;\u6362\u4e00\u4e2a\u5b9e\u73b0\u3002<\/p>\n<p>\u53e6\u5916&#xff0c;\u96c6\u7fa4\u6a21\u5f0f\u8fd8\u6709\u4e00\u6761\u786c\u7ea6\u675f&#xff1a;ETL \u589e\u91cf\u72b6\u6001\u5fc5\u987b\u653e\u5171\u4eab\u5b58\u50a8&#xff08;MinIO&#xff09;\u3002<\/p>\n<ul>\n<li>\u5355\u673a\u7528 local&#xff0c;\u72b6\u6001\u5199\u672c\u5730\u6587\u4ef6&#xff1b;<\/li>\n<li>\u96c6\u7fa4\u7528 minio&#xff0c;Worker \u6267\u884c\u65f6\u5199 MinIO&#xff0c;Master \u901a\u8fc7\u5171\u4eab\u914d\u7f6e\u8bfb\u53d6\u540c\u4e00\u4efd\u72b6\u6001&#xff1b;<\/li>\n<li>\u5982\u679c\u96c6\u7fa4\u4ecd\u7528 local&#xff0c;\u72b6\u6001\u53ea\u843d\u5728\u5404 Worker \u672c\u5730\u78c1\u76d8&#xff0c;Master \u8bfb\u4e0d\u5230&#xff0c;\u4e5f\u65e0\u6cd5\u8de8\u8282\u70b9\u6062\u590d\u589e\u91cf\u3002<\/li>\n<\/ul>\n<p>\u8c03\u5ea6\u72b6\u6001\u5728\u6570\u636e\u5e93&#xff0c;\u589e\u91cf\u72b6\u6001\u5728\u5171\u4eab\u5b58\u50a8&#xff0c;\u4e24\u8005\u4e0d\u80fd\u6df7\u4e3a\u4e00\u8c08\u3002<\/p>\n<hr \/>\n<h3>10 \u5b9e\u4f8b\u72b6\u6001\u673a&#xff1a;\u8c03\u5ea6\u7684\u8d26\u672c<\/h3>\n<p>\u8c03\u5ea6\u7cfb\u7edf\u6700\u91cd\u8981\u7684\u662f\u300c\u53ef\u8ffd\u8e2a\u300d\u3002<\/p>\n<p>DataY \u4e3a\u6bcf\u4e2a\u4efb\u52a1\u5b9e\u4f8b\u7ef4\u62a4\u4e00\u5957\u660e\u786e\u7684\u72b6\u6001&#xff1a;<\/p>\n<p>                    \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n                    \u2502  APPENDING  \u2502  \u5df2\u521b\u5efa&#xff0c;\u7b49\u5f85\u6295\u9012<br \/>\n                    \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                           \u2502<br \/>\n              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n              \u2502 \u4f9d\u8d56\u6ee1\u8db3                 \u2502 \u4f9d\u8d56\u672a\u6ee1\u8db3<br \/>\n              \u25bc                         \u25bc<br \/>\n        \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n        \u2502 RUNNING  \u2502\u25c0\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2502 WAITING  \u2502<br \/>\n        \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2518   \u4f9d\u8d56\u6ee1\u8db3     \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n             \u2502<br \/>\n     \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n     \u25bc       \u25bc          \u25bc              \u25bc<br \/>\nSUCCESSFUL FAILED    TIMEOUT     INTERRUPTED<\/p>\n<table>\n<tr>\u72b6\u6001\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>APPENDING<\/td>\n<td>\u5b9e\u4f8b\u5df2\u521b\u5efa&#xff0c;\u7b49\u5f85\u8c03\u5ea6\u6295\u9012<\/td>\n<\/tr>\n<tr>\n<td>RUNNING<\/td>\n<td>Worker \u6b63\u5728\u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td>WAITING<\/td>\n<td>\u4f9d\u8d56\u672a\u6ee1\u8db3&#xff0c;\u7b49\u5f85\u6062\u590d<\/td>\n<\/tr>\n<tr>\n<td>SUCCESSFUL<\/td>\n<td>\u6267\u884c\u6210\u529f<\/td>\n<\/tr>\n<tr>\n<td>FAILED<\/td>\n<td>\u6267\u884c\u5931\u8d25<\/td>\n<\/tr>\n<tr>\n<td>TIMEOUT<\/td>\n<td>\u6267\u884c\u8d85\u65f6<\/td>\n<\/tr>\n<tr>\n<td>INTERRUPTED<\/td>\n<td>\u624b\u52a8\u505c\u6b62\u6216\u88ab\u53d6\u6d88<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u4f8b\u4e0a\u8fd8\u4f1a\u8bb0\u5f55&#xff1a;<\/p>\n<ul>\n<li>\u6267\u884c\u8282\u70b9&#xff08;IP:\u7aef\u53e3&#xff09;&#xff1b;<\/li>\n<li>\u5f00\u59cb\u65f6\u95f4\u3001\u7ed3\u675f\u65f6\u95f4&#xff1b;<\/li>\n<li>\u6267\u884c\u6d88\u606f&#xff08;\u5931\u8d25\u65f6\u5305\u542b\u9519\u8bef\u65e5\u5fd7\u6458\u8981&#xff09;&#xff1b;<\/li>\n<li>\u91cd\u8bd5\u6b21\u6570\u3001\u8d85\u65f6\u65f6\u95f4\u3001\u4f18\u5148\u7ea7&#xff1b;<\/li>\n<li>\u7236\u5b9e\u4f8b\u7f16\u7801&#xff08;DAG \u5b50\u4efb\u52a1&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u4fe1\u606f\u770b\u8d77\u6765\u4e0d\u8d77\u773c&#xff0c;\u4f46\u5b83\u4eec\u662f\u6392\u969c\u7684\u8d77\u70b9\u3002<\/p>\n<p>\u6ca1\u6709\u5b83\u4eec&#xff0c;\u8c03\u5ea6\u7cfb\u7edf\u5c31\u53ea\u662f\u4e00\u4e2a\u300c\u5b9a\u65f6\u5668\u300d\u3002<\/p>\n<hr \/>\n<h3>11 DAG \u4e0e\u4f9d\u8d56&#xff1a;\u62d3\u6251\u6392\u5e8f &#043; \u7b49\u5f85\u6062\u590d<\/h3>\n<h4>11.1 DAG \u5de5\u4f5c\u6d41<\/h4>\n<p>\u4e00\u4e2a DAG \u4efb\u52a1\u7531\u591a\u4e2a\u5b50\u4efb\u52a1\u548c\u5b83\u4eec\u4e4b\u95f4\u7684\u4f9d\u8d56\u7ec4\u6210\u3002<\/p>\n<p>DataY \u7528 Guava \u7684 MutableGraph \u5efa\u56fe&#xff0c;\u518d\u7528 Kahn \u7b97\u6cd5\u505a\u62d3\u6251\u6392\u5e8f&#xff1a;<\/p>\n<li>\u628a\u6240\u6709\u5b50\u4efb\u52a1\u5b9e\u4f8b\u52a0\u5165\u56fe&#xff1b;<\/li>\n<li>\u6839\u636e JobDepend \u6dfb\u52a0\u6709\u5411\u8fb9&#xff1b;<\/li>\n<li>\u8ba1\u7b97\u6bcf\u4e2a\u8282\u70b9\u7684\u5165\u5ea6&#xff1b;<\/li>\n<li>\u5165\u5ea6\u4e3a 0 \u7684\u8282\u70b9\u5148\u6267\u884c&#xff1b;<\/li>\n<li>\u6bcf\u6267\u884c\u5b8c\u4e00\u4e2a\u8282\u70b9&#xff0c;\u540e\u7ee7\u8282\u70b9\u5165\u5ea6\u51cf\u4e00&#xff0c;\u51cf\u5230 0 \u5c31\u8fdb\u5165\u961f\u5217\u3002<\/li>\n<p>\u62d3\u6251\u6392\u5e8f\u4fdd\u8bc1&#xff1a;\u7236\u4efb\u52a1\u4e00\u5b9a\u5728\u5b50\u4efb\u52a1\u4e4b\u524d\u6267\u884c\u3002<\/p>\n<p>\u5f53\u524d DAG \u5b50\u4efb\u52a1\u6309\u62d3\u6251\u5e8f\u4e32\u884c\u63a8\u8fdb&#xff0c;\u4ee3\u7801\u91cc\u7559\u4e86\u300c\u6309\u5c42\u5e76\u884c\u300d\u7684\u4f18\u5316\u70b9\u3002\u5bf9\u4e2d\u5c0f\u56e2\u961f\u7684\u4efb\u52a1\u89c4\u6a21\u6765\u8bf4&#xff0c;\u4e32\u884c\u5df2\u7ecf\u591f\u7528&#xff0c;\u4e5f\u66f4\u5bb9\u6613\u4fdd\u8bc1\u72b6\u6001\u4e00\u81f4\u3002<\/p>\n<p>DAG \u5931\u8d25\u65f6&#xff0c;\u5f53\u524d\u5b50\u4efb\u52a1\u4e4b\u540e\u7684\u8282\u70b9\u4f1a\u88ab\u6807\u8bb0\u4e3a INTERRUPTED&#xff0c;\u4e0d\u4f1a\u7559\u4e0b\u300c\u4e00\u534a\u6210\u529f\u3001\u4e00\u534a\u60ac\u7a7a\u300d\u7684\u5b9e\u4f8b\u3002<\/p>\n<h4>11.2 \u8de8\u4efb\u52a1\u4f9d\u8d56<\/h4>\n<p>\u9664\u4e86 DAG \u5185\u90e8\u7684\u7236\u5b50\u5173\u7cfb&#xff0c;DataY \u8fd8\u652f\u6301\u4efb\u52a1\u4e4b\u95f4\u7684\u4f9d\u8d56&#xff08;JobDepend&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u5b50\u4efb\u52a1\u89e6\u53d1\u65f6&#xff0c;\u5148\u67e5\u5b83\u4f9d\u8d56\u7684\u6240\u6709\u7236\u4efb\u52a1&#xff1b;<\/li>\n<li>\u53d6\u6bcf\u4e2a\u7236\u4efb\u52a1\u7684\u6700\u8fd1\u4e00\u6b21\u5b9e\u4f8b&#xff1b;<\/li>\n<li>\u5982\u679c\u7236\u5b9e\u4f8b\u4e0d\u5b58\u5728&#xff0c;\u6216\u8005\u7236\u5b9e\u4f8b\u7684\u65f6\u95f4\u4e0e\u5f53\u524d\u5b9e\u4f8b\u7684\u95f4\u9694\u8d85\u8fc7\u914d\u7f6e\u7684 lastInterval&#xff0c;\u5224\u5b9a\u4f9d\u8d56\u672a\u6ee1\u8db3&#xff1b;<\/li>\n<li>\u4f9d\u8d56\u6ee1\u8db3\u624d\u6267\u884c&#xff0c;\u5426\u5219\u5b9e\u4f8b\u8fdb\u5165 WAITING\u3002<\/li>\n<\/ul>\n<p>\u7b49\u5f85\u4e2d\u7684\u5b9e\u4f8b\u7531 WaitingJobQuartzTask \u6bcf\u5206\u949f\u626b\u63cf\u4e00\u6b21&#xff1a;<\/p>\n<p>WAITING \u5b9e\u4f8b \u2500\u2500\u25b6 \u68c0\u67e5\u4f9d\u8d56 \u2500\u2500\u25b6 \u6ee1\u8db3 \u2500\u2500\u25b6 \u6295\u9012\u6267\u884c<br \/>\n                    \u2502<br \/>\n                    \u2514\u2500\u2500 \u4e0d\u6ee1\u8db3 \u2500\u2500\u25b6 \u7ee7\u7eed\u7b49\u5f85<\/p>\n<p>\u540c\u65f6&#xff0c;\u5982\u679c\u540c\u4e00\u4e2a\u4efb\u52a1\u4ea7\u751f\u4e86\u65b0\u7684\u7b49\u5f85\u5b9e\u4f8b&#xff0c;\u65e7\u7684\u7b49\u5f85\u5b9e\u4f8b\u4f1a\u88ab\u7f6e\u4e3a TIMEOUT&#xff0c;\u907f\u514d\u65e0\u9650\u5806\u79ef\u3002<\/p>\n<p>\u8fd9\u5957\u673a\u5236\u4e0d\u590d\u6742&#xff0c;\u4f46\u8986\u76d6\u4e86\u6570\u636e\u4efb\u52a1\u6700\u5e38\u89c1\u7684\u4f9d\u8d56\u8bed\u4e49&#xff1a;<\/p>\n<p>\u4e0a\u6e38\u4eca\u5929\u8dd1\u6210\u529f\u4e86&#xff0c;\u6211\u624d\u8dd1&#xff1b;\u4e0a\u6e38\u6ca1\u8dd1&#xff0c;\u6211\u7b49\u3002<\/p>\n<hr \/>\n<h3>12 Worker&#xff1a;\u5e76\u53d1\u3001\u4f18\u5148\u7ea7\u4e0e\u80cc\u538b<\/h3>\n<p>Worker \u6536\u5230\u6267\u884c\u4e8b\u4ef6\u540e&#xff0c;\u4e0d\u662f\u76f4\u63a5 new Thread&#xff0c;\u800c\u662f\u63d0\u4ea4\u5230\u4e00\u4e2a\u6709\u754c\u7ebf\u7a0b\u6c60&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u9ed8\u8ba4\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u5de5\u4f5c\u7ebf\u7a0b\u6570<\/td>\n<td>100<\/td>\n<td>\u53ef\u8c03\u6574&#xff0c;2C4G \u73af\u5883\u5efa\u8bae\u6309\u5b9e\u9645\u8d1f\u8f7d\u4e0b\u8c03<\/td>\n<\/tr>\n<tr>\n<td>\u5f85\u6267\u884c\u961f\u5217<\/td>\n<td>1000<\/td>\n<td>\u961f\u5217\u6ee1\u540e\u4e0d\u518d\u4ece\u4e8b\u4ef6\u961f\u5217\u53d6\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td>\u4f18\u5148\u7ea7<\/td>\n<td>1\/2\/3<\/td>\n<td>\u4f4e \/ \u4e2d \/ \u9ad8&#xff0c;\u540c\u4f18\u5148\u7ea7\u6309\u63d0\u4ea4\u987a\u5e8f<\/td>\n<\/tr>\n<tr>\n<td>\u62d2\u7edd\u7b56\u7565<\/td>\n<td>CallerRunsPolicy<\/td>\n<td>\u961f\u5217\u548c\u7ebf\u7a0b\u90fd\u6ee1\u65f6&#xff0c;\u7531\u63d0\u4ea4\u7ebf\u7a0b\u6267\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u51e0\u4e2a\u5de5\u7a0b\u7ec6\u8282&#xff1a;<\/p>\n<ul>\n<li>\u4f18\u5148\u7ea7\u961f\u5217&#xff1a;PriorityBlockingQueue &#043; PrioritizedFutureTask&#xff0c;\u9ad8\u4f18\u5148\u7ea7\u4efb\u52a1\u5148\u6267\u884c&#xff1b;<\/li>\n<li>\u80cc\u538b&#xff1a;\u6267\u884c\u961f\u5217\u6ee1\u4e86&#xff0c;Worker \u6682\u505c\u4ece Redis \/ \u5185\u5b58\u4e8b\u4ef6\u961f\u5217\u53d6\u4efb\u52a1&#xff0c;\u907f\u514d\u4efb\u52a1\u5728\u8fdb\u7a0b\u5185\u65e0\u9650\u5806\u79ef&#xff1b;<\/li>\n<li>\u6267\u884c\u8282\u70b9\u8bb0\u5f55&#xff1a;\u4efb\u52a1\u5f00\u59cb\u524d\u5199\u5165 IP:\u7aef\u53e3&#xff0c;\u51fa\u95ee\u9898\u77e5\u9053\u662f\u54ea\u53f0\u673a\u5668\u8dd1\u7684&#xff1b;<\/li>\n<li>\u4efb\u52a1\u505c\u6b62&#xff1a;\u5148\u6807\u8bb0\u505c\u6b62&#xff0c;\u518d\u8c03\u7528\u4efb\u52a1\u7684 cancel()&#xff0c;\u6700\u540e future.cancel(true) \u4e2d\u65ad\u7ebf\u7a0b&#xff1b;<\/li>\n<li>\u79df\u6237\u4e0a\u4e0b\u6587&#xff1a;Worker \u7ebf\u7a0b\u6ca1\u6709\u8bf7\u6c42\u4e0a\u4e0b\u6587&#xff0c;\u6267\u884c\u524d\u6309\u4efb\u52a1\u6240\u5c5e\u79df\u6237\u8bbe\u7f6e TenantContext&#xff0c;\u907f\u514d\u88ab\u79df\u6237\u8fc7\u6ee4\u5668\u62e6\u622a\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u7ec6\u8282\u51b3\u5b9a\u4e86\u4e00\u4e2a\u8c03\u5ea6\u7cfb\u7edf\u80fd\u4e0d\u80fd\u5728\u771f\u5b9e\u73af\u5883\u91cc\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n<hr \/>\n<h3>13 \u91cd\u8bd5\u3001\u8d85\u65f6\u4e0e\u505c\u6b62&#xff1a;\u522b\u8ba9\u4efb\u52a1\u300c\u6302\u6b7b\u300d<\/h3>\n<p>DataY \u628a\u91cd\u8bd5\u548c\u8d85\u65f6\u62bd\u6210\u4e86\u4e00\u4e2a\u7edf\u4e00\u7684\u6267\u884c\u652f\u6491\u5c42 TaskExecutionSupport&#xff1a;<\/p>\n<ul>\n<li>\u91cd\u8bd5&#xff1a;retryCount \u8868\u793a\u9996\u6b21\u6267\u884c\u4e4b\u5916\u7684\u6700\u5927\u91cd\u8bd5\u6b21\u6570&#xff0c;\u6700\u591a 10 \u6b21&#xff1b;<\/li>\n<li>\u8d85\u65f6&#xff1a;timeoutSeconds \u8868\u793a\u5355\u6b21\u5c1d\u8bd5\u7684\u8d85\u65f6\u65f6\u95f4&#xff0c;\u6700\u591a 7 \u5929&#xff1b;<\/li>\n<li>\u91cd\u8bd5\u95f4\u9694&#xff1a;\u9ed8\u8ba4 10 \u79d2&#xff1b;<\/li>\n<li>\u53ea\u91cd\u8bd5\u5931\u8d25\u548c\u8d85\u65f6&#xff1a;\u6210\u529f\u4e0d\u91cd\u8bd5&#xff0c;\u624b\u52a8\u505c\u6b62&#xff08;INTERRUPTED&#xff09;\u4e5f\u4e0d\u91cd\u8bd5&#xff1b;<\/li>\n<li>\u6bcf\u6b21\u5c1d\u8bd5\u521b\u5efa\u5168\u65b0\u7684\u4efb\u52a1\u6267\u884c\u5668&#xff1a;\u907f\u514d\u4e0a\u4e00\u6b21\u6267\u884c\u7684\u6b8b\u7559\u72b6\u6001\u5f71\u54cd\u4e0b\u4e00\u6b21&#xff1b;<\/li>\n<li>\u8d85\u65f6\u770b\u95e8\u72d7&#xff1a;\u72ec\u7acb\u7ebf\u7a0b\u8ba1\u65f6&#xff0c;\u8d85\u65f6\u540e\u53d6\u6d88\u4efb\u52a1\u5e76\u4e2d\u65ad\u6267\u884c\u7ebf\u7a0b\u3002<\/li>\n<\/ul>\n<p>DAG \u4efb\u52a1\u7684\u91cd\u8bd5\u6709\u4e00\u4e2a\u660e\u786e\u8bed\u4e49&#xff1a;\u6574\u4f53\u91cd\u8dd1\u6240\u6709\u5b50\u4efb\u52a1\u3002<\/p>\n<p>\u4ee3\u7801\u91cc\u4e0d\u67e5\u8be2\u5b50\u4efb\u52a1\u7684\u5386\u53f2\u72b6\u6001&#xff0c;\u907f\u514d\u91cd\u8bd5\u8fc7\u7a0b\u4e2d\u4f9d\u8d56\u6570\u636e\u5e93\u72b6\u6001&#xff0c;\u5bfc\u81f4\u300c\u8dd1\u5230\u4e00\u534a\u4ee5\u4e3a\u5b8c\u6210\u4e86\u300d\u3002<\/p>\n<p>\u505c\u6b62\u4efb\u52a1\u65f6&#xff0c;\u8c03\u5ea6\u5668\u4f1a&#xff1a;<\/p>\n<li>\u6807\u8bb0 stopped&#xff1b;<\/li>\n<li>\u8c03\u7528\u4efb\u52a1\u81ea\u8eab\u7684 cancel()&#xff08;\u4f8b\u5982 ETL \u4efb\u52a1\u4f1a\u505c\u6b62\u6240\u6709\u7ec4\u4ef6\u3001\u5173\u95ed\u961f\u5217&#xff09;&#xff1b;<\/li>\n<li>\u53d6\u6d88 Future \u5e76\u4e2d\u65ad\u7ebf\u7a0b&#xff1b;<\/li>\n<li>\u628a\u5b9e\u4f8b\u72b6\u6001\u5199\u6210 INTERRUPTED\u3002<\/li>\n<p>\u505c\u6b62\u4e0d\u662f\u300c\u4e0d\u7ba1\u4e86\u300d&#xff0c;\u800c\u662f\u4e00\u6761\u5b8c\u6574\u7684\u72b6\u6001\u56de\u6536\u94fe\u8def\u3002<\/p>\n<hr \/>\n<h3>14 \u8c03\u5ea6\u4e0e\u6267\u884c\u9694\u79bb&#xff1a;\u9700\u8981\u65f6\u518d\u4e0a Docker<\/h3>\n<p>\u4efb\u52a1\u8dd1\u5728 Worker \u8fdb\u7a0b\u91cc&#xff0c;\u6700\u5927\u7684\u98ce\u9669\u662f\u300c\u4efb\u52a1\u628a Worker \u62d6\u6b7b\u300d&#xff1a;<\/p>\n<ul>\n<li>ETL \u4efb\u52a1\u4f9d\u8d56\u7684 JDBC \u9a71\u52a8\u7248\u672c\u51b2\u7a81&#xff1b;<\/li>\n<li>\u67d0\u4e2a\u4efb\u52a1\u5185\u5b58\u6cc4\u6f0f&#xff1b;<\/li>\n<li>\u67d0\u4e2a\u4efb\u52a1\u957f\u65f6\u95f4\u5360\u7528\u7ebf\u7a0b\u3002<\/li>\n<\/ul>\n<p>DataY \u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u9009\u7684 Docker \u6267\u884c\u6a21\u5f0f&#xff1a;<\/p>\n<p><span class=\"token key atrule\">development<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">etl<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">mode<\/span><span class=\"token punctuation\">:<\/span> docker<br \/>\n    <span class=\"token key atrule\">docker<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> eclipse<span class=\"token punctuation\">&#8211;<\/span>temurin<span class=\"token punctuation\">:<\/span>17<span class=\"token punctuation\">&#8211;<\/span>jre<br \/>\n      <span class=\"token key atrule\">jar-path<\/span><span class=\"token punctuation\">:<\/span> \/opt\/datay\/datay<span class=\"token punctuation\">&#8211;<\/span>core<span class=\"token punctuation\">&#8211;<\/span>1.0.1<span class=\"token punctuation\">&#8211;<\/span>SNAPSHOT<span class=\"token punctuation\">&#8211;<\/span>jar<span class=\"token punctuation\">&#8211;<\/span>with<span class=\"token punctuation\">&#8211;<\/span>dependencies.jar<br \/>\n      <span class=\"token key atrule\">memory<\/span><span class=\"token punctuation\">:<\/span> 2g<\/p>\n<p>\u5de5\u4f5c\u65b9\u5f0f&#xff1a;<\/p>\n<li>Worker \u628a\u4efb\u52a1 JSON \u5199\u5165\u5bbf\u4e3b\u673a\u65e5\u5fd7\u76ee\u5f55&#xff1b;<\/li>\n<li>\u6267\u884c docker run \u542f\u52a8\u5bb9\u5668&#xff0c;\u6302\u8f7d\u65e5\u5fd7\u3001\u9a71\u52a8\u3001\u6570\u636e\u76ee\u5f55&#xff1b;<\/li>\n<li>\u5bb9\u5668\u5185\u8fd0\u884c DataY Core \u6267\u884c\u4efb\u52a1&#xff1b;<\/li>\n<li>\u4ee5\u5bb9\u5668\u9000\u51fa\u7801\u5224\u5b9a\u6210\u529f\/\u5931\u8d25&#xff08;0 \u6210\u529f&#xff0c;\u975e 0 \u5931\u8d25&#xff09;&#xff1b;<\/li>\n<li>\u505c\u6b62\u4efb\u52a1\u65f6 docker rm -f \u6e05\u7406\u5bb9\u5668\u3002<\/li>\n<p>\u8fd9\u6837&#xff0c;\u4efb\u52a1\u8fd0\u884c\u65f6\u548c\u8c03\u5ea6\u8fdb\u7a0b\u9694\u79bb&#xff0c;\u4efb\u52a1\u8dd1\u5b8c\u5373\u9500\u6bc1\u3002<\/p>\n<p>\u5bf9\u5c0f\u56e2\u961f\u6765\u8bf4&#xff0c;\u8fd9\u6bd4\u7ef4\u62a4\u4e00\u4e2a YARN \u96c6\u7fa4\u8f7b\u5f97\u591a\u3002<\/p>\n<hr \/>\n<h3>15 \u548c\u5e02\u9762\u4e0a\u7684\u8c03\u5ea6\u7cfb\u7edf\u6bd4&#xff0c;\u5dee\u5728\u54ea\u3001\u7701\u5728\u54ea&#xff1f;<\/h3>\n<table>\n<tr>\u7ef4\u5ea6DolphinSchedulerAirflowXXL-JOBDataY \u8c03\u5ea6<\/tr>\n<tbody>\n<tr>\n<td>\u5b9a\u4f4d<\/td>\n<td>\u5206\u5e03\u5f0f\u5de5\u4f5c\u6d41\u8c03\u5ea6\u5e73\u53f0<\/td>\n<td>\u4ee3\u7801\u5b9a\u4e49\u5de5\u4f5c\u6d41<\/td>\n<td>\u8f7b\u91cf\u4efb\u52a1\u8c03\u5ea6<\/td>\n<td>\u6570\u636e\u5e73\u53f0\u5185\u7f6e\u8c03\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>\u90e8\u7f72\u7ec4\u4ef6<\/td>\n<td>API\/Master\/Worker\/Alert &#043; ZK &#043; DB<\/td>\n<td>Web\/Scheduler\/Executor\/DB<\/td>\n<td>Admin &#043; Executor &#043; DB<\/td>\n<td>\u4e00\u4e2a JAR&#xff1b;\u96c6\u7fa4\u6a21\u5f0f\u52a0 Redis<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5c0f\u8d44\u6e90<\/td>\n<td>\u591a\u8282\u70b9\u8d77\u6b65<\/td>\n<td>\u591a\u7ec4\u4ef6\u8d77\u6b65<\/td>\n<td>\u8f83\u8f7b<\/td>\n<td>\u5355\u673a 2 \u6838 4G<\/td>\n<\/tr>\n<tr>\n<td>DAG<\/td>\n<td>\u5f3a<\/td>\n<td>\u5f3a<\/td>\n<td>\u5f31<\/td>\n<td>\u5f3a<\/td>\n<\/tr>\n<tr>\n<td>\u8de8\u4efb\u52a1\u4f9d\u8d56<\/td>\n<td>\u5f3a<\/td>\n<td>\u5f3a<\/td>\n<td>\u4e2d<\/td>\n<td>\u5f3a<\/td>\n<\/tr>\n<tr>\n<td>\u5355\u673a\u6a21\u5f0f<\/td>\n<td>\u9700\u8981\u5b8c\u6574\u90e8\u7f72<\/td>\n<td>\u9700\u8981\u5b8c\u6574\u90e8\u7f72<\/td>\n<td>\u9700\u8981 Admin\/Executor<\/td>\n<td>\u9ed8\u8ba4 standalone&#xff0c;\u65e0\u9700 Redis<\/td>\n<\/tr>\n<tr>\n<td>\u6267\u884c\u9694\u79bb<\/td>\n<td>Worker \/ \u8d44\u6e90\u7ec4<\/td>\n<td>Executor<\/td>\n<td>\u6267\u884c\u5668<\/td>\n<td>\u8fdb\u7a0b\u5185 \/ Docker \u53ef\u9009<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u79df\u6237<\/td>\n<td>\u5b8c\u6574<\/td>\n<td>\u4e2d<\/td>\n<td>\u5f31<\/td>\n<td>\u57fa\u7840\u79df\u6237\u9694\u79bb<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u89c4\u6a21<\/td>\n<td>\u5927\u578b\u3001\u591a\u56e2\u961f<\/td>\n<td>\u4e2d\u5927\u578b<\/td>\n<td>\u4e2d\u5c0f\u578b<\/td>\n<td>\u4e2d\u5c0f\u56e2\u961f\u3001\u51e0\u5341\u5230\u51e0\u767e\u4efb\u52a1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>DataY \u7684\u53d6\u820d\u5f88\u660e\u786e&#xff1a;<\/p>\n<ul>\n<li>\u4e0d\u505a DolphinScheduler \u90a3\u79cd\u5927\u578b\u8c03\u5ea6\u5e73\u53f0&#xff0c;\u4f46\u4fdd\u7559\u4e86 DAG\u3001\u4f9d\u8d56\u3001\u91cd\u8bd5\u3001\u8d85\u65f6\u3001\u5b9e\u4f8b\u72b6\u6001&#xff1b;<\/li>\n<li>\u4e0d\u505a Airflow \u90a3\u79cd\u901a\u7528\u5de5\u4f5c\u6d41\u6846\u67b6&#xff0c;\u4f46\u628a\u6570\u636e\u4efb\u52a1\u7684\u8bed\u4e49\u505a\u8fdb\u8c03\u5ea6&#xff1b;<\/li>\n<li>\u4e0d\u505a XXL-JOB \u90a3\u79cd\u7eaf\u4efb\u52a1\u8c03\u5ea6&#xff0c;\u4f46\u652f\u6301 DAG \u548c\u6570\u636e\u7ba1\u9053&#xff1b;<\/li>\n<li>\u4e0d\u8981\u6c42\u4f60\u5148\u6709\u4e00\u5957\u96c6\u7fa4&#xff0c;\u4f46\u9700\u8981\u6269\u5bb9\u65f6\u53ef\u4ee5\u62c6\u6210 master\/worker\u3002<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd&#xff1a;<\/p>\n<p>DataY \u4e0d\u662f\u8981\u66ff\u4ee3\u8c01&#xff0c;\u800c\u662f\u628a\u300c\u4e2d\u5c0f\u56e2\u961f\u6700\u5e38\u7528\u7684\u90a3\u90e8\u5206\u8c03\u5ea6\u80fd\u529b\u300d\u6536\u8fdb\u4e00\u4e2a JAR\u3002<\/p>\n<hr \/>\n<h3>16 \u5b83\u7684\u8fb9\u754c&#xff1a;\u54ea\u4e9b\u573a\u666f\u4e0d\u9002\u5408&#xff1f;<\/h3>\n<p>\u628a\u8fb9\u754c\u8bf4\u6e05\u695a&#xff0c;\u6bd4\u628a\u8bdd\u8bf4\u6ee1\u66f4\u91cd\u8981\u3002<\/p>\n<p>DataY \u8c03\u5ea6\u4e0d\u9002\u5408&#xff1a;<\/p>\n<ul>\n<li>\u4e0a\u4e07\u4efb\u52a1\u3001\u591a\u56e2\u961f\u5f3a\u9694\u79bb&#xff1a;\u9700\u8981\u8d44\u6e90\u7ec4\u3001\u961f\u5217\u3001\u914d\u989d\u3001\u5ba1\u8ba1&#xff0c;\u5e94\u8be5\u7528\u66f4\u91cd\u7684\u8c03\u5ea6\u5e73\u53f0&#xff1b;<\/li>\n<li>\u8de8\u673a\u623f\u5bb9\u707e&#xff1a;DataY \u652f\u6301\u591a Master \u9009\u4e3b&#xff0c;\u4f46\u4e0d\u63d0\u4f9b\u8de8\u5730\u57df\u7684\u5bb9\u707e\u7f16\u6392&#xff1b;<\/li>\n<li>\u590d\u6742\u7684\u4e8b\u4ef6\u9a71\u52a8\u7f16\u6392&#xff1a;\u4f8b\u5982\u300c\u4efb\u610f\u4e00\u4e2a\u4e0a\u6e38\u6210\u529f\u5c31\u89e6\u53d1\u300d\u300c\u52a8\u6001\u5206\u652f\u300d\u300c\u5faa\u73af\u5b50\u6d41\u7a0b\u300d&#xff0c;DataY \u76ee\u524d\u53ea\u8986\u76d6\u5e38\u89c1\u7684 Cron &#043; DAG &#043; \u7236\u5b50\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u9700\u8981\u4e25\u683c Exactly-Once \u8c03\u5ea6\u8bed\u4e49&#xff1a;\u8c03\u5ea6\u89e6\u53d1\u672c\u8eab\u53ef\u4ee5\u505a\u5230\u4e0d\u91cd\u590d&#xff0c;\u4f46\u4efb\u52a1\u6267\u884c\u7684\u5e42\u7b49\u4ecd\u9700\u4e1a\u52a1\u81ea\u5df1\u4fdd\u8bc1&#xff1b;<\/li>\n<li>Worker \u8fdb\u7a0b\u7ea7\u6545\u969c\u7684\u81ea\u52a8\u63a5\u7ba1&#xff1a;\u4efb\u52a1\u6b63\u5e38\u5931\u8d25\u4f1a\u91cd\u8bd5&#xff0c;\u4f46 Worker \u76f4\u63a5\u5b95\u673a\u540e\u5b9e\u4f8b\u53ef\u80fd\u505c\u7559\u5728 RUNNING&#xff0c;\u9700\u8981\u4eba\u5de5\u91cd\u8dd1\u6216\u540e\u7eed\u8865\u507f&#xff1b;<\/li>\n<li>\u8d85\u5927\u89c4\u6a21\u5e76\u53d1\u6267\u884c&#xff1a;Worker \u7ebf\u7a0b\u6c60\u548c\u6267\u884c\u961f\u5217\u90fd\u6709\u4e0a\u9650&#xff0c;\u9700\u8981\u6309\u673a\u5668\u89c4\u683c\u548c\u4efb\u52a1\u7c7b\u578b\u8c03\u4f18\u3002<\/li>\n<\/ul>\n<p>DataY \u8c03\u5ea6\u771f\u6b63\u64c5\u957f\u7684\u662f&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u5929 \/ \u6bcf\u5c0f\u65f6 \/ \u6bcf\u5206\u949f\u7684\u6570\u636e\u540c\u6b65\u4e0e\u52a0\u5de5\u4efb\u52a1&#xff1b;<\/li>\n<li>\u591a\u4efb\u52a1 DAG \u7f16\u6392\u3001\u7236\u5b50\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u5931\u8d25\u91cd\u8bd5\u3001\u8d85\u65f6\u4e2d\u65ad\u3001\u624b\u52a8\u505c\u6b62&#xff1b;<\/li>\n<li>\u5355\u673a\u8d77\u6b65&#xff0c;\u540e\u7eed\u6269\u6210 master\/worker&#xff1b;<\/li>\n<li>\u548c DataY \u7684\u6570\u636e\u96c6\u6210\u3001DuckDB\u3001DuckLake \u6253\u901a\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>17 DataY \u662f\u4ec0\u4e48<\/h3>\n<p>DataY \u662f\u4e00\u5957\u5f00\u6e90\u3001\u8f7b\u91cf\u7684\u4e00\u4f53\u5316\u6570\u636e\u5e73\u53f0&#xff1a;<\/p>\n<p>\u4e00\u4e2a JAR\u3001\u5185\u5d4c DuckDB&#xff0c;2 \u6838 4G \u5c31\u80fd\u8dd1\u901a\u300c\u6570\u636e\u96c6\u6210 \u2192 \u6570\u636e\u5efa\u6a21 \u2192 \u6570\u636e\u5f00\u53d1 \u2192 \u4efb\u52a1\u8c03\u5ea6 \u2192 \u6570\u636e\u5e94\u7528\u300d\u7684\u5b8c\u6574\u94fe\u8def\u3002<\/p>\n<p>\u5982\u679c\u7528\u4e00\u53e5\u8bdd\u6982\u62ec\u5b83\u7684\u5b9a\u4f4d&#xff1a;<\/p>\n<p>DataY &#061; DataX &#043; Nifi &#043; DolphinScheduler<\/p>\n<p>\u4f46\u8fd9\u4e2a\u300c\u7b49\u4e8e\u300d\u4e0d\u662f\u628a\u4e09\u4e2a\u5f00\u6e90\u9879\u76ee\u6253\u5305\u5728\u4e00\u8d77&#xff0c;\u800c\u662f\u7528\u540c\u4e00\u5957\u8fd0\u884c\u65f6&#xff0c;\u91cd\u65b0\u5b9e\u73b0\u6570\u636e\u540c\u6b65\u3001\u6570\u636e\u6d41\u7f16\u6392\u548c\u4efb\u52a1\u8c03\u5ea6\u8fd9\u4e09\u7c7b\u80fd\u529b\u3002<\/p>\n<p>\u5b83\u7531\u4e24\u5757\u7ec4\u6210&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u5757\u5b9a\u4f4d\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>DataY Core<\/td>\n<td>\u6570\u636e\u96c6\u6210\u5f15\u64ce<\/td>\n<td>\u8f7b\u91cf\u3001\u53ef\u5d4c\u5165\u3001\u53ef\u6269\u5c55\u3001\u6d41\u6279\u4e00\u4f53&#xff1b;JSON \u5b9a\u4e49\u4efb\u52a1\u3001\u81ea\u52a8\u5efa\u8868\u3001CDC \u5b9e\u65f6\u540c\u6b65&#xff1b;\u53ef\u8131\u79bb Web \u72ec\u7acb\u8fd0\u884c\u6216\u5d4c\u5165 Java \u5e94\u7528<\/td>\n<\/tr>\n<tr>\n<td>DataY Web<\/td>\n<td>\u53ef\u89c6\u5316\u6570\u636e\u5e73\u53f0<\/td>\n<td>\u62d6\u62fd\u5f0f\u4efb\u52a1\u8bbe\u8ba1\u3001\u4efb\u52a1\u8c03\u5ea6\u3001\u7ef4\u5ea6\u5efa\u6a21\u3001\u6307\u6807\u7ba1\u7406\u3001\u667a\u80fd\u95ee\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u548c\u8c03\u5ea6\u76f8\u5173\u7684\u80fd\u529b&#xff1a;<\/p>\n<ul>\n<li>\u23f0 Cron \u8c03\u5ea6&#xff1a;Quartz \u5185\u6838&#xff0c;\u7cbe\u786e\u5230\u79d2&#xff0c;\u652f\u6301\u52a8\u6001\u4e0a\u7ebf\/\u4e0b\u7ebf&#xff1b;<\/li>\n<li>&#x1f517; DAG \u7f16\u6392&#xff1a;\u7236\u5b50\u4efb\u52a1\u62d3\u6251\u6392\u5e8f&#xff0c;\u5931\u8d25\u4e2d\u65ad&#xff0c;\u72b6\u6001\u53ef\u8ffd\u8e2a&#xff1b;<\/li>\n<li>&#x1f9ed; \u4f9d\u8d56\u8c03\u5ea6&#xff1a;\u7236\u4efb\u52a1\u6210\u529f\u540e\u89e6\u53d1\u5b50\u4efb\u52a1&#xff0c;\u672a\u6ee1\u8db3\u8fdb\u5165 WAITING&#xff0c;\u5b9a\u65f6\u6062\u590d&#xff1b;<\/li>\n<li>&#x1f9e9; \u89d2\u8272\u5206\u79bb&#xff1a;standalone \/ master \/ worker&#xff0c;\u540c\u4e00\u5957\u4ee3\u7801&#xff1b;<\/li>\n<li>&#x1f6e1;\ufe0f \u591a Master \u9009\u4e3b&#xff1a;Redis \u5206\u5e03\u5f0f\u9501&#xff0c;Leader \u552f\u4e00\u8c03\u5ea6&#xff1b;\u6267\u884c\u4efb\u52a1\u7531 Worker \u961f\u5217\u7ade\u4e89\u5206\u7247&#xff1b;<\/li>\n<li>&#x1f501; \u91cd\u8bd5\u4e0e\u8d85\u65f6&#xff1a;\u5931\u8d25\u91cd\u8bd5\u3001\u8d85\u65f6\u4e2d\u65ad\u3001\u624b\u52a8\u505c\u6b62&#xff1b;<\/li>\n<li>&#x1f433; Docker \u6267\u884c&#xff1a;\u4efb\u52a1\u4e0e\u8c03\u5ea6\u8fdb\u7a0b\u9694\u79bb&#xff0c;\u8dd1\u5b8c\u5373\u9500\u6bc1&#xff1b;<\/li>\n<li>&#x1f4ca; \u5b9e\u4f8b\u76d1\u63a7&#xff1a;\u72b6\u6001\u3001\u6267\u884c\u8282\u70b9\u3001\u8d77\u6b62\u65f6\u95f4\u3001\u6267\u884c\u6d88\u606f\u5168\u7a0b\u8bb0\u5f55&#xff1b;<\/li>\n<li>&#x1f4e6; \u4e00\u4f53\u5316&#xff1a;\u8c03\u5ea6\u3001\u96c6\u6210\u3001\u5efa\u6a21\u3001\u95ee\u6570\u5171\u7528\u4e00\u5957\u5143\u6570\u636e\u4e0e\u6743\u9650\u3002<\/li>\n<\/ul>\n<p>\u5feb\u901f\u5f00\u59cb&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/yuyuejia\/datay<br \/>\n<span class=\"token builtin class-name\">cd<\/span> datay<br \/>\nmvn clean package <span class=\"token parameter variable\">-DskipTests<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-jar<\/span> datay-web\/target\/*.jar <span class=\"token parameter variable\">&#8211;DATAY_AI_API_KEY<\/span><span class=\"token operator\">&#061;<\/span>sk-xxxxxxxxx<br \/>\n<span class=\"token comment\"># \u6d4f\u89c8\u5668\u6253\u5f00 http:\/\/localhost:8080&#xff0c;\u9ed8\u8ba4\u8d26\u53f7 admin\/admin<\/span><\/p>\n<p>\u4ea7\u54c1\u9996\u9875&#xff1a;http:\/\/datay.yuyuejia.com.cn\/ \u5728\u7ebf\u4f53\u9a8c&#xff1a;http:\/\/datay-demo.yuyuejia.com.cn\/ \u9879\u76ee\u5730\u5740&#xff1a;https:\/\/github.com\/yuyuejia\/datay<\/p>\n<hr \/>\n<h3>18 \u5199\u5728\u6700\u540e<\/h3>\n<p>\u8c03\u5ea6\u7cfb\u7edf\u7684\u4ef7\u503c&#xff0c;\u4e0d\u5728\u4e8e\u5b83\u7528\u4e86\u591a\u5c11\u5206\u5e03\u5f0f\u7ec4\u4ef6&#xff0c;\u800c\u5728\u4e8e&#xff1a;<\/p>\n<ul>\n<li>\u4efb\u52a1\u5230\u70b9\u80fd\u4e0d\u80fd\u53ef\u9760\u89e6\u53d1&#xff1b;<\/li>\n<li>\u4f9d\u8d56\u4e0d\u6ee1\u8db3\u65f6\u80fd\u4e0d\u80fd\u6b63\u786e\u7b49\u5f85&#xff1b;<\/li>\n<li>\u5931\u8d25\u540e\u80fd\u4e0d\u80fd\u91cd\u8bd5\u3001\u8d85\u65f6\u540e\u80fd\u4e0d\u80fd\u505c\u4e0b\u6765&#xff1b;<\/li>\n<li>\u51fa\u95ee\u9898\u65f6\u80fd\u4e0d\u80fd\u4e00\u773c\u770b\u5230\u662f\u54ea\u4e2a\u5b9e\u4f8b\u3001\u54ea\u4e2a\u8282\u70b9\u3001\u4ec0\u4e48\u539f\u56e0\u3002<\/li>\n<\/ul>\n<p>DataY \u7684\u8c03\u5ea6\u8bbe\u8ba1&#xff0c;\u672c\u8d28\u4e0a\u662f\u5728\u505a\u4e00\u6b21\u53d6\u820d&#xff1a;<\/p>\n<p>\u628a\u300c\u5fc5\u987b\u5206\u5e03\u5f0f\u300d\u53d8\u6210\u300c\u53ef\u4ee5\u5206\u5e03\u5f0f\u300d&#xff1b; \u628a\u300c\u9ed8\u8ba4\u590d\u6742\u300d\u53d8\u6210\u300c\u9ed8\u8ba4\u7b80\u5355\u300d&#xff1b; \u628a\u300c\u591a\u5957\u7ec4\u4ef6\u300d\u53d8\u6210\u300c\u4e00\u5957\u4ee3\u7801\u3001\u4e09\u79cd\u89d2\u8272\u300d\u3002<\/p>\n<p>\u5f53\u5355\u673a\u4e0d\u9700\u8981 Redis&#xff0c;\u96c6\u7fa4\u53ea\u9700\u8981\u52a0\u4e00\u4e2a Redis&#xff0c;\u8c03\u5ea6\u8fd9\u4ef6\u4e8b\u624d\u771f\u6b63\u56de\u5230\u4e86\u5b83\u672c\u6765\u7684\u6837\u5b50&#xff1a;<\/p>\n<p>\u8ba9\u4efb\u52a1\u6309\u65f6\u3001\u6309\u4f9d\u8d56\u3001\u53ef\u9760\u5730\u8dd1\u5b8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a&#xff0c;\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce&#xff1f; \u2014\u2014DataY \u5206\u5e03\u5f0f\u8c03\u5ea6\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 \u51cc\u6668\u4e24\u70b9&#xff0c;\u8ba2\u5355\u540c\u6b65\u4efb\u52a1\u6ca1\u6709\u6309\u65f6\u8dd1\u3002 \u503c\u73ed\u540c\u5b66\u5148\u770b\u8c03\u5ea6\u5668&#xff0c;\u518d\u770b\u6ce8\u518c\u4e2d\u5fc3&#xff0c;\u518d\u770b\u6570\u636e\u5e93&#xff0c;\u6700\u540e\u53d1\u73b0\u662f\u67d0\u4e2a ETL \u4efb\u52a1\u628a\u8c03\u5ea6\u8fdb\u7a0b\u7684\u5185\u5b58\u62d6\u57ae\u4e86\u3002 \u4efb\u52a1\u548c\u8c03\u5ea6\u6324\u5728\u4e00\u4e2a JVM \u91cc&#xff0c;\u4e00\u4e2a\u4efb\u52a1\u5931\u63a7&#xff0c;\u6574\u4e2a\u8c03\u5ea6\u505c\u6446\u3002 \u8fd9\u4e0d\u662f\u67d0\u4e2a\u4ea7\u54c1\u7684 bu<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2735,664,801],"topic":[],"class_list":["post-118596","post","type-post","status-publish","format-standard","hentry","category-server","tag-etl","tag-664","tag-801"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/118596.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a&#xff0c;\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce&#xff1f; \u2014\u2014DataY \u5206\u5e03\u5f0f\u8c03\u5ea6\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 \u51cc\u6668\u4e24\u70b9&#xff0c;\u8ba2\u5355\u540c\u6b65\u4efb\u52a1\u6ca1\u6709\u6309\u65f6\u8dd1\u3002 \u503c\u73ed\u540c\u5b66\u5148\u770b\u8c03\u5ea6\u5668&#xff0c;\u518d\u770b\u6ce8\u518c\u4e2d\u5fc3&#xff0c;\u518d\u770b\u6570\u636e\u5e93&#xff0c;\u6700\u540e\u53d1\u73b0\u662f\u67d0\u4e2a ETL \u4efb\u52a1\u628a\u8c03\u5ea6\u8fdb\u7a0b\u7684\u5185\u5b58\u62d6\u57ae\u4e86\u3002 \u4efb\u52a1\u548c\u8c03\u5ea6\u6324\u5728\u4e00\u4e2a JVM \u91cc&#xff0c;\u4e00\u4e2a\u4efb\u52a1\u5931\u63a7&#xff0c;\u6574\u4e2a\u8c03\u5ea6\u505c\u6446\u3002 \u8fd9\u4e0d\u662f\u67d0\u4e2a\u4ea7\u54c1\u7684 bu\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/118596.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-27T11:08:39+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/118596.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/118596.html\",\"name\":\"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-27T11:08:39+00:00\",\"dateModified\":\"2026-10-27T11:08:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/118596.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/118596.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/118596.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/118596.html","og_locale":"zh_CN","og_type":"article","og_title":"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a&#xff0c;\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce&#xff1f; \u2014\u2014DataY \u5206\u5e03\u5f0f\u8c03\u5ea6\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0 \u51cc\u6668\u4e24\u70b9&#xff0c;\u8ba2\u5355\u540c\u6b65\u4efb\u52a1\u6ca1\u6709\u6309\u65f6\u8dd1\u3002 \u503c\u73ed\u540c\u5b66\u5148\u770b\u8c03\u5ea6\u5668&#xff0c;\u518d\u770b\u6ce8\u518c\u4e2d\u5fc3&#xff0c;\u518d\u770b\u6570\u636e\u5e93&#xff0c;\u6700\u540e\u53d1\u73b0\u662f\u67d0\u4e2a ETL \u4efb\u52a1\u628a\u8c03\u5ea6\u8fdb\u7a0b\u7684\u5185\u5b58\u62d6\u57ae\u4e86\u3002 \u4efb\u52a1\u548c\u8c03\u5ea6\u6324\u5728\u4e00\u4e2a JVM \u91cc&#xff0c;\u4e00\u4e2a\u4efb\u52a1\u5931\u63a7&#xff0c;\u6574\u4e2a\u8c03\u5ea6\u505c\u6446\u3002 \u8fd9\u4e0d\u662f\u67d0\u4e2a\u4ea7\u54c1\u7684 bu","og_url":"https:\/\/www.wsisp.com\/helps\/118596.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-27T11:08:39+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/118596.html","url":"https:\/\/www.wsisp.com\/helps\/118596.html","name":"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-27T11:08:39+00:00","dateModified":"2026-10-27T11:08:39+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/118596.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/118596.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/118596.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DolphinScheduler\u3001Airflow\u3001XXL-JOB \u90fd\u5f88\u5f3a\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8fd8\u8981\u81ea\u7814\u4e00\u4e2a\u8c03\u5ea6\u5f15\u64ce\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/118596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=118596"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/118596\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=118596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=118596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=118596"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=118596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}