{"id":24550,"date":"2018-12-17T14:22:06","date_gmt":"2018-12-17T05:22:06","guid":{"rendered":"https:\/\/www.creationline.com\/?p=24550"},"modified":"2018-12-17T14:22:06","modified_gmt":"2018-12-17T05:22:06","slug":"%e6%99%ae%e9%80%9a%e3%81%aepython%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%82%92spark%e5%8c%96%e3%81%97%e3%81%a6%e3%81%8a%e6%89%8b%e8%bb%bd%e4%b8%a6%e5%88%97%e5%87%a6%e7%90%86%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550","title":{"rendered":"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png\" alt=\"\" width=\"258\" height=\"137\" class=\"alignnone size-full wp-image-10323\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png 258w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo-179x95.png 179w\" sizes=\"auto, (max-width: 258px) 100vw, 258px\" \/><\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002<\/p>\n<p>Apache Spark\u306f\u3044\u308f\u3086\u308b\u300c\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u6c4e\u7528\u5206\u6563\u51e6\u7406\u30a8\u30f3\u30b8\u30f3\u300d\u306a\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u30e6\u30fc\u30b6\u306e\u5229\u7528\u5f62\u614b\u306fSQL\u306b\u95a2\u3059\u308b\u51e6\u7406\u3084\u3001\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u306e\u30c7\u30fc\u30bf\u5206\u6790\u95a2\u9023\u306b\u504f\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u601d\u3048\u307e\u3059\u3002\"\u6c4e\u7528\"\u3068\u3044\u3046\u304b\u3089\u306b\u306f\u30c7\u30fc\u30bf\u5206\u6790\u306b\u9650\u3089\u305a\u304a\u304a\u3088\u305d\u4e26\u5217\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u3082\u4f7f\u7528\u3067\u304d\u308b\u3068 Apache Spark \u306e\u7528\u9014\u306e\u5e45\u304c\u5e83\u304c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u30c7\u30fc\u30bf\u5206\u6790\u3068\u306f\u5168\u304f\u95a2\u4fc2\u306e\u306a\u3044\u3088\u3046\u306a\u51e6\u7406\u3092Apache Spark\u3067\u4e26\u5217\u5316\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h1>\u305d\u3082\u305d\u3082\u3069\u3093\u306a\u3068\u3053\u308d\u3067\u4e26\u5217\u51e6\u7406\u306f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u306e\u304b<\/h1>\n<p>\u4e00\u822c\u7684\u306b\u4e26\u5217\u51e6\u7406\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u3044\u308f\u3086\u308b\u30b9\u30d1\u30b3\u30f3\u306e\u5206\u91ce\u3067\u3059\u3002\u79c1\u306f\u30b9\u30d1\u30b3\u30f3\u306e\u3053\u3068\u306f\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u7dda\u5f62\u4ee3\u6570\u3001\u6570\u5024\u89e3\u6790\u3068\u3044\u3063\u305f\u7528\u9014\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u4f8b\u3048\u3070 Abaqus \u3068\u3044\u3046\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u6709\u9650\u8981\u7d20\u89e3\u6790\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u304c\u3001\u5fdc\u7528\u5206\u91ce\u3068\u3057\u3066\u306f\u5f3e\u6027\u89e3\u6790(\u3069\u308c\u304f\u3089\u3044\u306e\u5727\u529b\u3092\u3042\u305f\u3048\u308b\u3068\u3069\u306e\u7a0b\u5ea6\u7269\u4f53\u304c\u6b6a\u3080\u304b)\u306a\u3069\u304c\u3042\u308a\u3001\u81ea\u52d5\u8eca\u306e\u8eca\u4f53\u306e\u5f37\u5ea6(\u4f8b\u3048\u3070\u30cf\u30f3\u30c9\u30eb\u3092\u5207\u3063\u305f\u6642\u306b\u3069\u306e\u7a0b\u5ea6\u8eca\u4f53\u304c\"\u3088\u308c\u308b\"\u304b\u3001\u306a\u3069)\u3084\u3001\u30bf\u30a4\u30e4\u306e\u6750\u6599\u306e\u89e3\u6790(\u4f8b\u3048\u3070\u30d6\u30ec\u30fc\u30ad\u3092\u304b\u3051\u305f\u6642\u306b\u3069\u306e\u7a0b\u5ea6\u8def\u9762\u3068\u306e\u9593\u306b\u6469\u64e6\u304c\u751f\u3058\u308b\u304b\u3001\u306a\u3069)\u306a\u3069\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8eab\u8fd1\u306a\u3068\u3053\u308d\u3067\u306f\u30b2\u30fc\u30e0\u306e3\u6b21\u5143\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u306b\u3082\u4e26\u5217\u51e6\u7406\u304c\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4eba\u9593\u304c\u76ee\u3067\u898b\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u753b\u9762\u304c\u3001\u5b9f\u969b\u306b\u306f\u3069\u306e\u8272\u3067\u5857\u308a\u3064\u3076\u3055\u308c\u308b\u3079\u304d\u304b1\u30d4\u30af\u30bb\u30eb\u3065\u3064\u8a08\u7b97\u3057\u306a\u304c\u3089\u9ad8\u901f\u306b\u63cf\u753b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u753b\u9762\u4e0a\u306e\u5168\u3066\u306e\u30d4\u30af\u30bb\u30eb\u3092\u9ad8\u901f\u306b\u5857\u308a\u3064\u3076\u3059\u305f\u3081\u306b\u3001GPU\u3092\u4f7f\u7528\u3057\u305f\u4e26\u5217\u8a08\u7b97\u304c\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30ec\u30a4\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u3068\u3044\u30463\u6b21\u5143\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u63cf\u753b\u3059\u308b\u8a08\u7b97\u3092 Apache Spark \u3092\u4f7f\u7528\u3057\u3066\u4e26\u5217\u5316\u3057\u3066\u307f\u307e\u3059\u3002\u30ec\u30a4\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u306f\u4e0a\u8a18\u306b\u8ff0\u3079\u305f3\u6b21\u5143\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u63cf\u753b\u3059\u308b\u65b9\u6cd5\u306e\u4e00\u3064\u3067\u3001\u6bd4\u8f03\u7684\u4e26\u5217\u51e6\u7406\u306b\u5411\u3044\u3066\u3044\u308b\u306e\u3067\u4eca\u56de\u4f7f\u7528\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h1>Spark\u5316\u3059\u308b\u524d\u306e\u30ec\u30a4\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u30d7\u30ed\u30b0\u30e9\u30e0<\/h1>\n<p>\u4eca\u56de\u306f\u3053\u3061\u3089( <a href=\"https:\/\/gist.github.com\/rossant\/6046463\" rel=\"noopener\" target=\"_blank\">https:\/\/gist.github.com\/rossant\/6046463<\/a> )\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6539\u5909\u524d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u50cf\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2018\/12\/fig.png\" alt=\"\" width=\"400\" height=\"300\" class=\"alignnone size-full wp-image-24551\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2018\/12\/fig.png 400w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2018\/12\/fig-360x270.png 360w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u7279\u306b\u4e26\u5217\u51e6\u7406\u3055\u308c\u3066\u304a\u3089\u305a\u3001\u30b7\u30f3\u30b0\u30eb\u30b3\u30a2\u3092\u4f7f\u7528\u3057\u305f1\u30d7\u30ed\u30bb\u30b9\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u753b\u50cf\u306e\u5de6\u4e0a\u304b\u3089\u53f3\u4e0b\u307e\u30671\u30d4\u30af\u30bb\u30eb\u3065\u3064\u5168\u304f\u540c\u3058\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u540c\u6642\u306b\u540c\u3058\u51e6\u7406\u3092\u8907\u6570\u306e\u30d4\u30af\u30bb\u30eb\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3067\u304d\u308c\u3070\u3001\u4e26\u5217\u5316\u306b\u3088\u308b\u9ad8\u901f\u5316\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<h1>Apache Spark\u3067\u306e\u4e26\u5217\u5316<\/h1>\n<p>Apache Spark\u3067\u306fRDD(Resilient Distributed Dataset)\u304c\u5206\u6563\u51e6\u7406\u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u306e\u5358\u4f4d\u306b\u306a\u308a\u307e\u3059\u3002RDD\u306f\u3056\u3063\u304f\u308a\u8a00\u3046\u3068\u3001\u914d\u5217\u3092\u4efb\u610f\u306e\u5358\u4f4d\u3067\u533a\u5207\u3063\u305f\u3082\u306e\u3067\u3001RDD\u5358\u4f4d\u3067\u5225\u306e\u30d7\u30ed\u30bb\u30b9\u3001\u5225\u306e\u30ce\u30fc\u30c9\u3067\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u51e6\u7406\u3055\u308c\u305f\u7d50\u679c\u3082\u307e\u305f\u5225\u306eRDD\u306b\u683c\u7d0d\u3055\u308c\u3001\u5f8c\u6bb5\u306e\u51e6\u7406\u306b\u307e\u308f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/datastrophic.io\/content\/images\/2016\/03\/DAG-logical-vs-partitions-view--3-.png\" \/><\/p>\n<p>\u5f15\u7528: <a href=\"http:\/\/datastrophic.io\/core-concepts-architecture-and-internals-of-apache-spark\/\" rel=\"noopener\" target=\"_blank\">http:\/\/datastrophic.io\/core-concepts-architecture-and-internals-of-apache-spark\/<\/a><\/p>\n<p>\u4eca\u56de\u306f1\u30d4\u30af\u30bb\u30eb\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u3092RDD\u5316\u3057\u3001\u4e00\u5f8b\u306b\u540c\u3058\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3001\u7d50\u679c\u3092\u7d50\u5408\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h1>Spark\u5316 Step-1: \u5168\u3066\u306e\u51e6\u7406\u3092\u95a2\u6570\u5316<\/h1>\n<p>\u5143\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u308b\u3068\u3001\u3044\u304f\u3064\u304b\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u304c\u9069\u3055\u308c\u3066\u304a\u308a\u3001\u8907\u6570\u306e\u95a2\u6570\u304b\u3089\u53c2\u7167\u3055\u308c\u3066\u3044\u307e\u3059\u3002Apache Spark\u3067\u306f\u57fa\u672c\u7684\u306b\u306f\u5168\u3066\u306e\u95a2\u6570\u304b\u3089\u5171\u6709\u3067\u304d\u308b\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u8a31\u3057\u3066\u304a\u3089\u305a\u3001\u5909\u6570\u306f\u305d\u308c\u305e\u308c\u306e\u95a2\u6570\u306e\u4e2d\u3067\u5b8c\u7d50\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002(broadcast\u5909\u6570\u3068\u3044\u3046\u4f8b\u5916\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u89e6\u308c\u307e\u305b\u3093)<\/p>\n<p>\u305d\u3053\u3067\u95a2\u6570 main() \u3068\u3044\u3046\u95a2\u6570\u3092\u4f5c\u308a\u3001\u5909\u6570\u3068\u51e6\u7406\u3092\u79fb\u52d5\u3057\u307e\u3059\u3002\u5909\u66f4\u3057\u305f\u3082\u306e\u304c\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/m-kiuchi\/cllab181217-spark\/blob\/master\/raytracing-2.py\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/m-kiuchi\/cllab181217-spark\/blob\/master\/raytracing-2.py<\/a><\/p>\n<h1>Spark\u5316 Step-2: \u5909\u6570\u3092\u5f15\u6570\u3068\u3057\u3066\u305d\u308c\u305e\u308c\u306e\u95a2\u6570\u306b\u6e21\u3059<\/h1>\n<p>\u305f\u3060\u3057Step-1\u306e\u5909\u66f4\u306b\u3088\u3063\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"javascript\">\n$ python3 raytracing-2.py \n0.00%\nTraceback (most recent call last):\n  File &quot;raytracing-2.py&quot;, line 185, in &lt;module&gt;\n    main()\n  File &quot;raytracing-2.py&quot;, line 171, in main\n    traced = trace_ray(rayO, rayD)\n  File &quot;raytracing-2.py&quot;, line 82, in trace_ray\n    for i, obj in enumerate(scene):\nNameError: name &#039;scene&#039; is not defined<\/pre>\n<\/p>\n<p>\u3044\u307e\u307e\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3044\u305f\u5909\u6570 scene \u304c\u95a2\u6570\u306e\u4e2d\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3068\u306a\u3063\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u5225\u306e\u95a2\u6570\u304b\u3089\u53c2\u7167\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u304c\u539f\u56e0\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u53c2\u7167\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u6642\u306b\u5f15\u6570\u3068\u3057\u3066\u5909\u6570\u306e\u5185\u5bb9\u3092\u6e21\u3059\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u5909\u66f4\u3057\u305f\u3082\u306e\u304c\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/m-kiuchi\/cllab181217-spark\/blob\/master\/raytracing-3.py\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/m-kiuchi\/cllab181217-spark\/blob\/master\/raytracing-3.py<\/a><\/p>\n<h1>Spark\u5316 Step-3: \u4e26\u5217\u5316\u3057\u305f\u3044\u90e8\u5206\u3092\u95a2\u6570\u5316\u3059\u308b<\/h1>\n<p>Apache Spark\u3067\u306fRDD\u6bce\u306b\u540c\u3058\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b map() \u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3053\u306e map() \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u4e26\u5217\u5316\u3059\u308b\u305f\u3081\u3001\u547c\u3073\u51fa\u3057\u5148\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u3053\u306e\u30ec\u30a4\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u30d7\u30ed\u30b0\u30e9\u30e0\u306f1\u30d4\u30af\u30bb\u30eb\u3065\u3064\u540c\u3058\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3068\u66f8\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u90e8\u5206\u304c\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\nwhile depth &lt; depth_max:\n    in_param = {\n        (\u7565)\n    }\n    traced = trace_ray(in_param)\n    if not traced:\n        break\n    obj, M, N, col_ray = traced\n    # Reflection: create a new ray.\n    rayO, rayD = M + N * .0001, normalize(rayD - 2 * np.dot(rayD, N) * N)\n    depth += 1\n    col += reflection * col_ray\n    reflection *= obj.get(&#039;reflection&#039;, 1.)\n<\/pre>\n<\/p>\n<p>\u4e0a\u8a18\u306e\u90e8\u5206\u3092\u95a2\u6570\u5316\u3057\u3066\u3001\u65b0\u3057\u3044\u95a2\u6570 genpix() \u3092\u4f5c\u308a\u307e\u3057\u305f\u3002\u5909\u66f4\u3057\u305f\u3082\u306e\u304c\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/m-kiuchi\/cllab181217-spark\/blob\/master\/raytracing-4.py\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/m-kiuchi\/cllab181217-spark\/blob\/master\/raytracing-4.py<\/a><\/p>\n<h1>Spark\u5316 Step-4: \u5165\u529b\u5024\u3092RDD\u5316\u3057\u3001\u4e26\u5217\u5b9f\u884c\u3059\u308b<\/h1>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u5074\u3067\u4e26\u5217\u5316\u306e\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u6700\u5f8c\u306b\u5165\u529b\u30c7\u30fc\u30bf\u3092RDD\u5316\u3057\u307e\u3059\u3002\u5165\u529b\u5024\u306f\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[cc lang=\"python\"]<br \/>\nfor i, x in enumerate(np.linspace(S[0], S[2], w)):<br \/>\n    if i % 10 == 0:<br \/>\n        print(\"{0:.2f}%\".format(i \/ float(w) * 100))<br \/>\n    for j, y in enumerate(np.linspace(S[1], S[3], h)):<br \/>\n        col = 0<br \/>\n        Q<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache Spark\u306f\u3044\u308f\u3086\u308b\u300c\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u6c4e\u7528\u5206\u6563\u51e6\u7406\u30a8\u30f3\u30b8\u30f3\u300d\u306a\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u30e6\u30fc\u30b6\u306e\u5229\u7528\u5f62\u614b\u306fSQL\u306b\u95a2\u3059\u308b\u51e6\u7406\u3084\u3001\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u306e\u30c7\u30fc\u30bf\u5206\u6790\u95a2\u9023\u306b\u504f\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u601d\u3048\u307e\u3059\u3002&#8221;\u6c4e\u7528&#8221; [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":10323,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[51,16],"tags":[50],"class_list":["post-24550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spark","category-author","tag-spark"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Spark, \u8457\u8005\uff08Author\uff09 |\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache\" \/>\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.creationline.com\/tech-blog\/others\/spark\/24550\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Spark, \u8457\u8005\uff08Author\uff09 |\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-17T05:22:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"258\" \/>\n\t<meta property=\"og:image:height\" content=\"137\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/7d923d1c017568a1a5e66d7bb1c8764a\"},\"headline\":\"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark\",\"datePublished\":\"2018-12-17T05:22:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550\"},\"wordCount\":221,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/spark-logo.png\",\"keywords\":[\"Spark\"],\"articleSection\":[\"Spark\",\"\u8457\u8005\uff08Author\uff09\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550\",\"name\":\"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/spark-logo.png\",\"datePublished\":\"2018-12-17T05:22:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/7d923d1c017568a1a5e66d7bb1c8764a\"},\"description\":\"Spark, \u8457\u8005\uff08Author\uff09 |\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/spark-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2015\\\/06\\\/spark-logo.png\",\"width\":258,\"height\":137},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\\\/24550#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u305d\u306e\u4ed6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Spark\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/spark\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/7d923d1c017568a1a5e66d7bb1c8764a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Spark, \u8457\u8005\uff08Author\uff09 |\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache","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.creationline.com\/tech-blog\/others\/spark\/24550","og_locale":"ja_JP","og_type":"article","og_title":"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Spark, \u8457\u8005\uff08Author\uff09 |\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache","og_url":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2018-12-17T05:22:06+00:00","og_image":[{"width":258,"height":137,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550"},"author":{"name":"admin","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/7d923d1c017568a1a5e66d7bb1c8764a"},"headline":"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark","datePublished":"2018-12-17T05:22:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550"},"wordCount":221,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png","keywords":["Spark"],"articleSection":["Spark","\u8457\u8005\uff08Author\uff09"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550","url":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550","name":"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png","datePublished":"2018-12-17T05:22:06+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/7d923d1c017568a1a5e66d7bb1c8764a"},"description":"Spark, \u8457\u8005\uff08Author\uff09 |\u3053\u3093\u306b\u3061\u306f\u3002\u6728\u5185\u3067\u3059\u3002 Apache","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2015\/06\/spark-logo.png","width":258,"height":137},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/spark\/24550#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u305d\u306e\u4ed6","item":"https:\/\/www.creationline.com\/tech-blog\/others"},{"@type":"ListItem","position":3,"name":"Spark","item":"https:\/\/www.creationline.com\/tech-blog\/others\/spark"},{"@type":"ListItem","position":4,"name":"\u666e\u901a\u306ePython\u30b9\u30af\u30ea\u30d7\u30c8\u3092Spark\u5316\u3057\u3066\u304a\u624b\u8efd\u4e26\u5217\u51e6\u7406\u3059\u308b #spark"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/7d923d1c017568a1a5e66d7bb1c8764a","name":"admin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","caption":"admin"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/24550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=24550"}],"version-history":[{"count":16,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/24550\/revisions"}],"predecessor-version":[{"id":24572,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/24550\/revisions\/24572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/10323"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=24550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=24550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=24550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}