<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/apache-spark-integrated-with-microsoft-r-server-for-hadoop/"></div></div><div><a data-url="http://www.r-bloggers.com/apache-spark-integrated-with-microsoft-r-server-for-hadoop/" data-counturl="http://www.r-bloggers.com/apache-spark-integrated-with-microsoft-r-server-for-hadoop/" data-count="horizontal" data-text="Apache Spark integrated with Microsoft R Server for Hadoop" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://blog.revolutionanalytics.com/2016/06/apache-spark-integrated-with-mrs-for-hadoop.html"> Revolutions</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<div>
<p>by Bill Jacobs, Microsoft Advanced Analytics Product Marketing</p>
<p>They say that time is infinite.  Seem to me data is fast becoming the same.  Or perhaps it's becoming true that our thirst for speed is providing eternal job security to computer scientists who can deliver it.</p>
<p>Apache Spark, one of the Apache Foundation's fastest-growing open source projects, delivers new levels of speed to computing clusters, combining in-memory computing and efficient parallelization.  With Spark, Hadoop clusters and data lakes can achieve speeds far greater than available with Hadoop's MapReduce framework.</p>
<p>We're happy to announce this month that Microsoft has integrated support for Apache Spark into Microsoft R Server for Hadoop, bringing Spark's speed advantages within the reach of R users.</p>
<p>But how much faster is it?  <em><span>&lt;drum-roll please…></span></em></p>
<p>To measure performance, we first pitted R Server for Hadoop running on MapReduce against R Server for Hadoop running R algorithms in Apache Spark on Hadoop. In our testing using R Server to move work into <em><strong>Spark boosted GLM speeds by roughly 6x over R Server on Hadoop MapReduce on the same cluster and the same data.  </strong></em>That's quite a testament to Spark's new distributed compute engine in-memory architecture.</p>
<p>Second, more pertinent to users of open source R and CRAN algorithms (and perhaps struggling with scale limits), we compared R Server on a five node Spark cluster to open source R with CRAN algorithms which can only run on a single server.  We expected faster, and we go it. <strong><em>R Server ran GLM 125 times faster on five times the hardware, </em></strong>showing the combined speed of R Server's parallelized algorithms and Spark's in-memory architecture.</p>
<p>Hadoop and Spark have a reputation of being &quot;testy&quot; to develop for, requiring fluency in programming languages including Java, Python or Scala skills.  For R users involved in things like risk analytics, insurance underwriting, ad optimization or fraud detection, speed is only useful if it's easily achievable.  We built R Server version 8 for Hadoop and Spark for this case.</p>
<p>For most R users, however, it's what you learn from the data that matters, often making effort to learn a new language a bridge too far.  And so, it is the intersection of speed and ease of use that matters the most.</p>
<p>Ease of use was treated as a top engineering priority for Spark integration.  As a result, using Spark requires only minimal script changes.  CRAN R users can add R Server's remote execution context settings and substitute ScaleR algorithms in order to run parallelized computation on large data sets in Spark.  For existing users of R Server for Hadoop, it's easier still, requiring them to change the context setting from MapReduce to Spark.  </p>
<p>The combined speed and simplicity of R Server on Spark are available to preview today in the Azure Cloud and will be generally available in Azure later this summer.  For use on premises, MapR, Hortonworks and Cloudera users can install Microsoft R Server for Hadoop, version 8.0.5, which will become available the last week of June 2016. </p>
<p>If you're interested in learning more, here's <a target="_blank" href="https://channel9.msdn.com/blogs/MicrosoftR/R-Server-on-Spark">a short video</a> on Microsoft's Channel9 blog site describing our Spark support in Microsoft R Server version 8.0.5. </p>
<p>If you'd like to test drive R Server on Spark and Hadoop in the Azure cloud, you can start for free at <a target="_blank" href="http://azure.microsoft.com/">http://azure.microsoft.com</a>.  With your Azure account, you can <a target="_blank" href="https://azure.microsoft.com/en-us/marketplace/partners/microsoft/rserverforhdinsight/">spin-up a cluster with R Server and Spark on HDInsight Hadoop</a> in about the time it takes to make a decent lunch.</p>
</div>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/apache-spark-integrated-with-microsoft-r-server-for-hadoop/"></div></div><div><a data-url="http://www.r-bloggers.com/apache-spark-integrated-with-microsoft-r-server-for-hadoop/" data-counturl="http://www.r-bloggers.com/apache-spark-integrated-with-microsoft-r-server-for-hadoop/" data-count="vertical" data-text="Apache Spark integrated with Microsoft R Server for Hadoop" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://blog.revolutionanalytics.com/2016/06/apache-spark-integrated-with-mrs-for-hadoop.html"> Revolutions</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/mi4SVIke8O4"></a></div>