{"id":203,"date":"2020-08-30T01:16:22","date_gmt":"2020-08-29T16:16:22","guid":{"rendered":"http:\/\/localhost:8000\/?p=203"},"modified":"2021-01-16T01:19:00","modified_gmt":"2021-01-15T16:19:00","slug":"spark-yarn-memory","status":"publish","type":"post","link":"http:\/\/localhost:8000\/2020\/08\/spark-yarn-memory.html","title":{"rendered":"Spark\uff08with Yarn\uff09\u306b\u304a\u3051\u308b\u30e1\u30e2\u30ea\u8a2d\u5b9a"},"content":{"rendered":"

Dataproc\u3067 Spark<\/a> \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u30e1\u30e2\u30ea\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3067\u3044\u3064\u3082\u3088\u304f\u5206\u304b\u3089\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u5099\u5fd8\u9332\u7684\u306b\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002Resource Manager\u306b Hadoop Yarn<\/a> \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u30e1\u30e2\u30ea\u8a2d\u5b9a\u306e\u5305\u542b\u95a2\u4fc2<\/h2>\n

Spark\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306f\u3053\u3061\u3089<\/a>\u3001Yarn\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306f\u3053\u3061\u3089<\/a>\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u5404Executor\u30ce\u30fc\u30c9\u306e\u30e1\u30e2\u30ea\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5305\u542b\u95a2\u4fc2\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n\n\n\n
\u30de\u30b7\u30f3\u30e1\u30e2\u30ea<\/td>\n<\/tr>\n
OS<\/td>\n\u305d\u306e\u4ed6<\/td>\nyarn.nodemanager.resource.memory-mb<\/b>
\u30b3\u30f3\u30c6\u30ca\u306b\u5272\u308a\u5f53\u3066\u53ef\u80fd\u306a\u7269\u7406\u30e1\u30e2\u30ea<\/td>\n<\/tr>\n
spark.executor.memoryOverhead<\/b>
1Executor\u3042\u305f\u308a\u306eVM\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3001\u30a4\u30f3\u30bf\u30fc\u30f3\u5316\u6587\u5b57\u5217\u3001\u305d\u306e\u4ed6Native\u30aa\u30fc\u30d0\u30d8\u30c3\u30c9\u306a\u3069<\/td>\n
spark.executor.memory<\/b>
1Executor\u304c\u5229\u7528\u3059\u308b\u6700\u5927\u30e1\u30e2\u30ea\u30b5\u30a4\u30ba<\/td>\n<\/tr>\n
spark.executor.memory - spark.executor.memory * spark.memory.fraction<\/b>
Reserved\u9818\u57df\u3002\u30e6\u30fc\u30b6\u30c7\u30fc\u30bf\u69cb\u9020\u3001Spark\u306e\u5185\u90e8\u30e1\u30bf\u30c7\u30fc\u30bf\u3001\u4e88\u671f\u3057\u306a\u3044\u5de8\u5927\u30ec\u30b3\u30fc\u30c9\u306b\u3088\u308bOOM\u304b\u3089\u306e\u4fdd\u8b77\u306a\u3069\u3002<\/td>\n
spark.executor.memory * spark.memory.fraction<\/b>
Spark\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5229\u7528\u3059\u308b\u9818\u57df\u3002\u5272\u5408\u3067\u6307\u5b9a<\/td>\n<\/tr>\n
spark.executor.memory * spark.memory.fraction * spark.memory.storageFraction<\/b><\/br>RDD\u3092\u683c\u7d0d\u3059\u308b\u9818\u57df\u3002\u5272\u5408\u3067\u6307\u5b9a<\/td>\n\u30a2\u30d7\u30ea\u5b9f\u884c\u7528\u30ef\u30fc\u30ad\u30f3\u30b0\u30e1\u30e2\u30ea<\/td>\n<\/tr>\n<\/table>\n