{"id":37365,"date":"2025-05-15T22:28:00","date_gmt":"2025-05-15T14:28:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/37365.html"},"modified":"2025-05-15T22:28:00","modified_gmt":"2025-05-15T14:28:00","slug":"%e4%bb%80%e4%b9%88%e6%98%afsparkonyarn%e6%a8%a1%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/37365.html","title":{"rendered":"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f"},"content":{"rendered":"<h5>1. \u4ec0\u4e48\u662f Spark on YARN&#xff1f;<\/h5>\n<p>Spark on YARN \u662f Apache Spark \u7684\u4e00\u79cd\u90e8\u7f72\u6a21\u5f0f&#xff0c;\u5141\u8bb8 Spark \u5e94\u7528\u7a0b\u5e8f\u5728 Hadoop YARN \u96c6\u7fa4\u4e0a\u8fd0\u884c&#xff0c;\u5145\u5206\u5229\u7528 YARN \u7684\u8d44\u6e90\u7ba1\u7406\u548c\u8c03\u5ea6\u80fd\u529b\u3002\u8fd9\u79cd\u6a21\u5f0f\u5c06 Spark \u4e0e Hadoop \u751f\u6001\u6df1\u5ea6\u96c6\u6210&#xff0c;\u4f7f\u4f01\u4e1a\u80fd\u591f\u5728\u540c\u4e00\u96c6\u7fa4\u4e0a\u7edf\u4e00\u7ba1\u7406\u6279\u5904\u7406\u3001\u6d41\u5904\u7406\u3001\u4ea4\u4e92\u5f0f\u67e5\u8be2\u7b49\u591a\u79cd\u5de5\u4f5c\u8d1f\u8f7d\u3002<\/p>\n<h5>2. \u6838\u5fc3\u4f18\u52bf<\/h5>\n<li>\n<p>\u8d44\u6e90\u7edf\u4e00\u7ba1\u7406<\/p>\n<ul>\n<li>\u4e0e Hadoop \u5171\u4eab\u96c6\u7fa4\u8d44\u6e90&#xff0c;\u907f\u514d\u8d44\u6e90\u5b64\u5c9b&#xff08;\u5982 MapReduce\u3001Hive\u3001Spark \u53ef\u5171\u5b58&#xff09;\u3002<\/li>\n<li>YARN \u6839\u636e\u5de5\u4f5c\u8d1f\u8f7d\u52a8\u6001\u5206\u914d\u8d44\u6e90&#xff0c;\u63d0\u9ad8\u96c6\u7fa4\u5229\u7528\u7387\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7b80\u5316\u8fd0\u7ef4<\/p>\n<ul>\n<li>\u4f9d\u6258 YARN \u7684\u9ad8\u53ef\u7528\u6027&#xff08;HA&#xff09;\u548c\u8d44\u6e90\u9694\u79bb\u673a\u5236&#xff0c;\u964d\u4f4e\u8fd0\u7ef4\u590d\u6742\u5ea6\u3002<\/li>\n<li>\u652f\u6301\u4e0e\u73b0\u6709 Hadoop \u96c6\u7fa4\u65e0\u7f1d\u96c6\u6210&#xff0c;\u65e0\u9700\u989d\u5916\u90e8\u7f72\u96c6\u7fa4\u7ba1\u7406\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7075\u6d3b\u7684\u8d44\u6e90\u5206\u914d<\/p>\n<ul>\n<li>\u652f\u6301\u00a0\u5185\u5b58 \/ CPU \u7ec6\u7c92\u5ea6\u63a7\u5236&#xff0c;\u901a\u8fc7\u00a0spark-submit\u00a0\u53c2\u6570\u8c03\u6574\u8d44\u6e90\u5206\u914d\u3002<\/li>\n<li>\u53ef\u914d\u7f6e\u591a\u961f\u5217&#xff08;\u5982\u751f\u4ea7\u961f\u5217\u3001\u6d4b\u8bd5\u961f\u5217&#xff09;&#xff0c;\u5b9e\u73b0\u8d44\u6e90\u9694\u79bb\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4e30\u5bcc\u7684\u8c03\u5ea6\u7b56\u7565<\/p>\n<ul>\n<li>\u7ee7\u627f YARN \u7684\u8c03\u5ea6\u5668&#xff08;\u5bb9\u91cf\u8c03\u5ea6\u5668\u3001\u516c\u5e73\u8c03\u5ea6\u5668&#xff09;&#xff0c;\u6ee1\u8db3\u4e0d\u540c\u4e1a\u52a1\u9700\u6c42\u3002<\/li>\n<\/ul>\n<\/li>\n<h5>3. \u67b6\u6784\u7ec4\u4ef6<\/h5>\n<p>Spark on YARN \u7684\u67b6\u6784\u6d89\u53ca\u4e09\u4e2a\u6838\u5fc3\u7ec4\u4ef6&#xff1a;<\/p>\n<\/p>\n<li>\n<p>YARN \u7ec4\u4ef6<\/p>\n<ul>\n<li>ResourceManager (RM)&#xff1a;\u5168\u5c40\u8d44\u6e90\u7ba1\u7406\u5668&#xff0c;\u8d1f\u8d23\u5206\u914d\u96c6\u7fa4\u8d44\u6e90\u3002<\/li>\n<li>NodeManager (NM)&#xff1a;\u6bcf\u4e2a\u8282\u70b9\u7684\u4ee3\u7406&#xff0c;\u7ba1\u7406\u5bb9\u5668&#xff08;Container&#xff09;\u751f\u547d\u5468\u671f\u3002<\/li>\n<li>\u8c03\u5ea6\u5668&#xff1a;\u5982\u5bb9\u91cf\u8c03\u5ea6\u5668&#xff08;Capacity Scheduler&#xff09;\u6216\u516c\u5e73\u8c03\u5ea6\u5668&#xff08;Fair Scheduler&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Spark \u7ec4\u4ef6<\/p>\n<ul>\n<li>Driver&#xff1a;\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8fdb\u7a0b&#xff0c;\u8d1f\u8d23\u8c03\u5ea6\u4efb\u52a1\u3002<\/li>\n<li>Executor&#xff1a;\u8fd0\u884c\u5728\u5bb9\u5668\u4e2d\u7684\u5de5\u4f5c\u8fdb\u7a0b&#xff0c;\u6267\u884c\u5177\u4f53\u8ba1\u7b97\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u901a\u4fe1\u6d41\u7a0b<\/p>\n<ul>\n<li>Spark \u5e94\u7528\u901a\u8fc7\u00a0spark-submit\u00a0\u5411 YARN RM \u63d0\u4ea4\u8bf7\u6c42\u3002<\/li>\n<li>RM \u5206\u914d Container \u5e76\u542f\u52a8 ApplicationMaster&#xff08;Spark Driver&#xff09;\u3002<\/li>\n<li>Driver \u5411 RM \u6ce8\u518c\u5e76\u8bf7\u6c42\u8d44\u6e90&#xff0c;\u7136\u540e\u4e0e NM \u901a\u4fe1\u542f\u52a8 Executor\u3002<\/li>\n<\/ul>\n<\/li>\n<h5>4. \u90e8\u7f72\u6a21\u5f0f<\/h5>\n<p>Spark on YARN \u652f\u6301\u4e24\u79cd\u90e8\u7f72\u6a21\u5f0f&#xff1a;<\/p>\n<\/p>\n<li>\n<p>Client \u6a21\u5f0f<\/p>\n<ul>\n<li>Driver \u8fd0\u884c\u5728\u5ba2\u6237\u7aef&#xff1a;\n<ul>\n<li>\u9002\u7528\u4e8e\u4ea4\u4e92\u5f0f\u5e94\u7528&#xff08;\u5982 Spark Shell\u3001Jupyter Notebook&#xff09;\u3002<\/li>\n<li>Driver \u5728\u63d0\u4ea4\u4f5c\u4e1a\u7684\u5ba2\u6237\u7aef\u8fdb\u7a0b\u4e2d\u8fd0\u884c&#xff0c;\u76f4\u63a5\u63a5\u6536\u4efb\u52a1\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u63d0\u4ea4\u547d\u4ee4&#xff1a;\n<p>bash<\/p>\n<p> spark-submit \\\\<br \/>\n  &#8211;master yarn \\\\<br \/>\n  &#8211;deploy-mode client \\\\<br \/>\n  &#8211;num-executors 10 \\\\<br \/>\n  &#8211;executor-memory 4g \\\\<br \/>\n  my-app.jar\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Cluster \u6a21\u5f0f<\/p>\n<ul>\n<li>Driver \u8fd0\u884c\u5728\u96c6\u7fa4\u4e2d&#xff1a;\n<ul>\n<li>\u9002\u7528\u4e8e\u751f\u4ea7\u73af\u5883&#xff0c;\u907f\u514d\u5ba2\u6237\u7aef\u4e0e\u96c6\u7fa4\u957f\u65f6\u95f4\u8fde\u63a5\u3002<\/li>\n<li>Driver \u4f5c\u4e3a YARN \u4e2d\u7684\u4e00\u4e2a ApplicationMaster \u8fd0\u884c&#xff0c;\u4e0e\u5ba2\u6237\u7aef\u5206\u79bb\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u63d0\u4ea4\u547d\u4ee4&#xff1a;\n<p>bash<\/p>\n<p> spark-submit \\\\<br \/>\n  &#8211;master yarn \\\\<br \/>\n  &#8211;deploy-mode cluster \\\\<br \/>\n  &#8211;num-executors 10 \\\\<br \/>\n  &#8211;executor-memory 4g \\\\<br \/>\n  my-app.jar\n <\/li>\n<\/ul>\n<\/li>\n<h5>5. \u8d44\u6e90\u914d\u7f6e\u53c2\u6570<\/h5>\n<p>\u901a\u8fc7\u00a0spark-submit\u00a0\u6216\u00a0spark-defaults.conf\u00a0\u914d\u7f6e&#xff1a;<\/p>\n<\/p>\n<table>\n<tr>\u53c2\u6570\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>&#8211;num-executors<\/td>\n<td>\u542f\u52a8\u7684 Executor \u6570\u91cf&#xff08;\u9ed8\u8ba4 2&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;executor-memory<\/td>\n<td>\u6bcf\u4e2a Executor \u7684\u5185\u5b58\u5927\u5c0f&#xff08;\u5982 4g&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;executor-cores<\/td>\n<td>\u6bcf\u4e2a Executor \u7684 CPU \u6838\u5fc3\u6570&#xff08;\u9ed8\u8ba4 1&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;driver-memory<\/td>\n<td>Driver \u7684\u5185\u5b58\u5927\u5c0f&#xff08;\u9ed8\u8ba4 1g&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;queue<\/td>\n<td>\u6307\u5b9a YARN \u961f\u5217\u540d\u79f0&#xff08;\u5982\u00a0default\u3001prod&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;conf spark.yarn.maxAppAttempts<\/td>\n<td>\u5e94\u7528\u6700\u5927\u91cd\u8bd5\u6b21\u6570&#xff08;\u9ed8\u8ba4 2&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;conf spark.yarn.executor.memoryOverhead<\/td>\n<td>\u6bcf\u4e2a Executor \u7684\u5806\u5916\u5185\u5b58&#xff08;\u9ed8\u8ba4 executorMemory * 0.10&#xff09;\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>6. \u5178\u578b\u5e94\u7528\u573a\u666f<\/h5>\n<li>\n<p>\u6df7\u5408\u5de5\u4f5c\u8d1f\u8f7d\u96c6\u7fa4<\/p>\n<ul>\n<li>\u5728\u540c\u4e00 Hadoop \u96c6\u7fa4\u4e0a\u540c\u65f6\u8fd0\u884c Spark\u3001MapReduce\u3001Hive \u7b49\u4f5c\u4e1a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4f01\u4e1a\u7ea7\u6570\u636e\u5e73\u53f0<\/p>\n<ul>\n<li>\u5229\u7528 YARN \u7684\u8d44\u6e90\u9694\u79bb\u7279\u6027&#xff0c;\u4e3a\u4e0d\u540c\u90e8\u95e8\u5206\u914d\u4e13\u7528\u961f\u5217&#xff08;\u5982\u8d22\u52a1\u3001\u7814\u53d1&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406<\/p>\n<ul>\n<li>\u5904\u7406 PB \u7ea7\u6570\u636e&#xff0c;\u901a\u8fc7 YARN \u52a8\u6001\u8c03\u6574\u8d44\u6e90\u5e94\u5bf9\u5cf0\u503c\u8d1f\u8f7d\u3002<\/li>\n<\/ul>\n<\/li>\n<h5>7. \u76d1\u63a7\u4e0e\u6545\u969c\u6392\u67e5<\/h5>\n<li>\n<p>YARN Web UI<\/p>\n<ul>\n<li>http:\/\/resourcemanager:8088&#xff1a;\u67e5\u770b\u6240\u6709\u5e94\u7528\u72b6\u6001\u3001\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Spark Web UI<\/p>\n<ul>\n<li>Driver \u8fd0\u884c\u65f6\u7684 Web UI&#xff08;\u9ed8\u8ba4\u7aef\u53e3 4040&#xff09;&#xff1a;\n<p>plaintext<\/p>\n<p> http:\/\/driver-node:4040  # Client \u6a21\u5f0f<br \/>\nhttp:\/\/application-master-node:4040  # Cluster \u6a21\u5f0f\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u65e5\u5fd7\u67e5\u770b<\/p>\n<ul>\n<li>YARN \u5e94\u7528\u65e5\u5fd7&#xff1a;\n<p>bash<\/p>\n<p> yarn logs -applicationId &lt;application_id&gt;\n <\/li>\n<\/ul>\n<\/li>\n<h5>8. \u4f18\u7f3a\u70b9<\/h5>\n<table>\n<tr>\u4f18\u70b9\u7f3a\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u4e0e Hadoop \u751f\u6001\u65e0\u7f1d\u96c6\u6210<\/td>\n<td>\u4f9d\u8d56 YARN&#xff0c;\u589e\u52a0\u90e8\u7f72\u590d\u6742\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>\u8d44\u6e90\u5229\u7528\u7387\u9ad8<\/td>\n<td>\u4efb\u52a1\u542f\u52a8\u5ef6\u8fdf\u8f83\u9ad8&#xff08;\u9700\u7b49\u5f85 Container \u5206\u914d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u652f\u6301\u9ad8\u53ef\u7528\u6027<\/td>\n<td>\u9700\u6df1\u5165\u7406\u89e3 YARN \u914d\u7f6e\u548c\u8c03\u4f18<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u79df\u6237\u8d44\u6e90\u9694\u79bb<\/td>\n<td>\u5bf9\u7f51\u7edc\u548c\u78c1\u76d8 I\/O \u654f\u611f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>9. \u914d\u7f6e\u6b65\u9aa4<\/h5>\n<li>\n<p>\u786e\u4fdd YARN \u6b63\u5e38\u8fd0\u884c<\/p>\n<ul>\n<li>\u542f\u52a8 HDFS \u548c YARN&#xff1a;\n<p>bash<\/p>\n<p> start-dfs.sh<br \/>\nstart-yarn.sh\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u914d\u7f6e Spark<\/p>\n<ul>\n<li>\u7f16\u8f91\u00a0$SPARK_HOME\/conf\/spark-env.sh&#xff1a;\n<p>bash<\/p>\n<p> export HADOOP_CONF_DIR&#061;\/path\/to\/hadoop\/etc\/hadoop  # Hadoop \u914d\u7f6e\u76ee\u5f55<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u63d0\u4ea4\u4f5c\u4e1a<\/p>\n<p>bash<\/p>\n<p> spark-submit \\\\<br \/>\n  &#8211;master yarn \\\\<br \/>\n  &#8211;deploy-mode cluster \\\\<br \/>\n  &#8211;class org.apache.spark.examples.SparkPi \\\\<br \/>\n  $SPARK_HOME\/examples\/jars\/spark-examples_*.jar \\\\<br \/>\n  100<\/p>\n<\/p>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb677\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf17\u6b21\u3002Spark on YARN \u662f Apache Spark \u7684\u4e00\u79cd\u90e8\u7f72\u6a21\u5f0f\uff0c\u5141\u8bb8 Spark \u5e94\u7528\u7a0b\u5e8f\u5728 Hadoop YARN \u96c6\u7fa4\u4e0a\u8fd0\u884c\uff0c\u5145\u5206\u5229\u7528 YARN \u7684\u8d44\u6e90\u7ba1\u7406\u548c\u8c03\u5ea6\u80fd\u529b\u3002\u8fd9\u79cd\u6a21\u5f0f\u5c06 Spark \u4e0e Hadoop \u751f\u6001\u6df1\u5ea6\u96c6\u6210\uff0c\u4f7f\u4f01\u4e1a\u80fd\u591f\u5728\u540c\u4e00\u96c6\u7fa4\u4e0a\u7edf\u4e00\u7ba1\u7406\u6279\u5904\u7406\u3001\u6d41\u5904\u7406\u3001\u4ea4\u4e92\u5f0f\u67e5\u8be2\u7b49\u591a\u79cd\u5de5\u4f5c\u8d1f\u8f7d\u3002<\/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":[365],"topic":[],"class_list":["post-37365","post","type-post","status-publish","format-standard","hentry","category-server","tag-spark"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f - \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\/37365.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb677\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf17\u6b21\u3002Spark on YARN \u662f Apache Spark \u7684\u4e00\u79cd\u90e8\u7f72\u6a21\u5f0f\uff0c\u5141\u8bb8 Spark \u5e94\u7528\u7a0b\u5e8f\u5728 Hadoop YARN \u96c6\u7fa4\u4e0a\u8fd0\u884c\uff0c\u5145\u5206\u5229\u7528 YARN \u7684\u8d44\u6e90\u7ba1\u7406\u548c\u8c03\u5ea6\u80fd\u529b\u3002\u8fd9\u79cd\u6a21\u5f0f\u5c06 Spark \u4e0e Hadoop \u751f\u6001\u6df1\u5ea6\u96c6\u6210\uff0c\u4f7f\u4f01\u4e1a\u80fd\u591f\u5728\u540c\u4e00\u96c6\u7fa4\u4e0a\u7edf\u4e00\u7ba1\u7406\u6279\u5904\u7406\u3001\u6d41\u5904\u7406\u3001\u4ea4\u4e92\u5f0f\u67e5\u8be2\u7b49\u591a\u79cd\u5de5\u4f5c\u8d1f\u8f7d\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/37365.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-15T14:28:00+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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37365.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/37365.html\",\"name\":\"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-15T14:28:00+00:00\",\"dateModified\":\"2025-05-15T14:28:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/37365.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/37365.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37365.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f\"}]},{\"@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":"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f - \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\/37365.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb677\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf17\u6b21\u3002Spark on YARN \u662f Apache Spark \u7684\u4e00\u79cd\u90e8\u7f72\u6a21\u5f0f\uff0c\u5141\u8bb8 Spark \u5e94\u7528\u7a0b\u5e8f\u5728 Hadoop YARN \u96c6\u7fa4\u4e0a\u8fd0\u884c\uff0c\u5145\u5206\u5229\u7528 YARN \u7684\u8d44\u6e90\u7ba1\u7406\u548c\u8c03\u5ea6\u80fd\u529b\u3002\u8fd9\u79cd\u6a21\u5f0f\u5c06 Spark \u4e0e Hadoop \u751f\u6001\u6df1\u5ea6\u96c6\u6210\uff0c\u4f7f\u4f01\u4e1a\u80fd\u591f\u5728\u540c\u4e00\u96c6\u7fa4\u4e0a\u7edf\u4e00\u7ba1\u7406\u6279\u5904\u7406\u3001\u6d41\u5904\u7406\u3001\u4ea4\u4e92\u5f0f\u67e5\u8be2\u7b49\u591a\u79cd\u5de5\u4f5c\u8d1f\u8f7d\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/37365.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-15T14:28:00+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/37365.html","url":"https:\/\/www.wsisp.com\/helps\/37365.html","name":"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-15T14:28:00+00:00","dateModified":"2025-05-15T14:28:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/37365.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/37365.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/37365.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ec0\u4e48\u662fSparkONYarn\u6a21\u5f0f"}]},{"@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\/37365","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=37365"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37365\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=37365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=37365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=37365"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=37365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}