{"id":684,"date":"2016-02-27T18:46:36","date_gmt":"2016-02-27T18:46:36","guid":{"rendered":"http:\/\/www.mirageglobe.com\/wp\/?p=684"},"modified":"2016-02-27T18:46:36","modified_gmt":"2016-02-27T18:46:36","slug":"machinelearningwithspark","status":"publish","type":"post","link":"https:\/\/pages.alldaycity.com\/mirageglobe\/machinelearningwithspark\/","title":{"rendered":"Machine Learning with Spark"},"content":{"rendered":"<p class=\" language-bash\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-685\" src=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2016\/02\/Screen-Shot-2016-02-27-at-18.41.09.png\" alt=\"Screen Shot 2016-02-27 at 18.41.09\" width=\"500\" height=\"359\" \/><\/p>\n<p class=\" language-bash\">Starting Machine Learning with Apache Spark (http:\/\/spark.apache.org\/docs\/latest\/index.html). First setup Java via HomeBrew:<\/p>\n<blockquote><p>$ brew cask install java<\/p><\/blockquote>\n<p class=\" language-bash\">And then add in the Java Home environment variable (as recommended by Apple).<\/p>\n<blockquote><p>$ vim ~\/.bash_profile<br \/>\nexport JAVA_HOME=$(\/usr\/libexec\/java_home)<\/p><\/blockquote>\n<p class=\" language-bash\">Setup and run apache-spark in python mode interactively.<\/p>\n<blockquote>\n<p class=\" language-bash\">$ brew install apache-spark<\/p>\n<p class=\" language-bash\">$ pyspark\u00a0&#8211;master local[2]<\/p>\n<\/blockquote>\n<p class=\" language-bash\">&#8230;<\/p>\n<p class=\" language-bash\"><strong>References<\/strong><\/p>\n<ul>\n<li class=\" language-bash\">http:\/\/www.mkyong.com\/java\/how-to-set-java_home-environment-variable-on-mac-os-x\/<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Starting Machine Learning with Apache Spark (http:\/\/spark.apache.org\/docs\/latest\/index.html). First setup Java via HomeBrew: $ brew cask install java And then add in the Java Home environment variable (as recommended by Apple). $ vim ~\/.bash_profile export JAVA_HOME=$(\/usr\/libexec\/java_home) Setup and run apache-spark in python mode interactively. $ brew install apache-spark $ pyspark\u00a0&#8211;master local[2] &#8230; References http:\/\/www.mkyong.com\/java\/how-to-set-java_home-environment-variable-on-mac-os-x\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-684","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/comments?post=684"}],"version-history":[{"count":0,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/684\/revisions"}],"wp:attachment":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/media?parent=684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/categories?post=684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/tags?post=684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}