

{"id":5628,"date":"2018-01-17T05:03:20","date_gmt":"2018-01-17T05:03:20","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=5628"},"modified":"2018-11-16T15:07:41","modified_gmt":"2018-11-16T09:37:41","slug":"sparksession-and-rstudio","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/","title":{"rendered":"Ways to start SparkR &#8211; Using Sparksession or RStudio"},"content":{"rendered":"<h2>1. Objective<\/h2>\n<p><span style=\"font-weight: 400\">A distributed collection of data organized into named columns is SparkDataFrame. Basically, there are two ways to which we can start <a href=\"https:\/\/data-flair.training\/blogs\/sparkr\/\"><strong>SparkR<\/strong><\/a>. For example, by using Sparksession or\u00a0<a href=\"https:\/\/data-flair.training\/blogs\/r-programming-tutorial\/\"><strong>R<\/strong><\/a>studio. In this article, we will learn both the process in detail. Before, ways to start SparkR, we will also learn a brief introduction\u00a0to SparkDataFrame.<\/span><\/p>\n<div id=\"attachment_42385\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-42385\" class=\"size-full wp-image-42385\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg\" alt=\"Ways to start SparkR - Sparksession and RStudio\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-42385\" class=\"wp-caption-text\">Ways to start SparkR &#8211; Sparksession and RStudio<\/p><\/div>\n<h2>2. SparkDataFrame<\/h2>\n<p><span style=\"font-weight: 400\">A distributed collection of data organized into named columns is SparkDataFrame. Basically, it is as same as a table in a relational database or a <a href=\"https:\/\/data-flair.training\/blogs\/apache-spark-sql-dataframe-tutorial\/\"><strong>data frame<\/strong><\/a> in R. Moreover, it has some richer optimizations under the hood. <\/span><br \/>\n<span style=\"font-weight: 400\">In addition, we can construct <strong><a href=\"https:\/\/data-flair.training\/blogs\/create-sparkdataframes\/\">SparkDataFrames<\/a><\/strong> from a wide array of sources. For example, structured data files, <strong><a href=\"https:\/\/data-flair.training\/blogs\/apache-hive-tutorial\/\">tables in Hive<\/a><\/strong>, external databases. Also can construct from existing local <a href=\"https:\/\/data-flair.training\/blogs\/r-data-frame-introduction-operations\/\"><strong>R data frames<\/strong><\/a>.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><br \/>\n<span style=\"font-weight: 400\">We can start SparkR using two kinds of methods. Either using Sparksession or R studio.<\/span><\/p>\n<h2>3. Ways to start SparkR<\/h2>\n<p>There are several ways to start SparkR,\u00a0let\u2019s discuss\u00a0them in detail.<\/p>\n<h3>a. Using SparkSession<\/h3>\n<p><span style=\"font-weight: 400\">Basically, SparkSession is the entry point into SparkR. Also connects your R program to a <strong><a href=\"https:\/\/data-flair.training\/blogs\/apache-spark-cluster-managers-tutorial\/\">Spark cluster<\/a><\/strong>. Although, by using sparkR.session we can <span class=\"adverb\">easily<\/span> create a SparkSession. Moreover, it passes in options. Such as the application name, any spark packages depended on, and many more. Afterwards, we can also work with SparkDataFrames via SparkSession. Since we are working from the sparkR shell. Hence it is important that SparkSession should already <span class=\"passivevoice\">be created<\/span> for us. Then we would not need to call sparkR.session.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><b>sparkR.session()<\/b><\/p>\n<h3>b.\u00a0Using RStudio<\/h3>\n<p><span style=\"font-weight: 400\">Apart from SparkSession, we can also start SparkR from RStudio.<\/span>\u00a0Also, from RStudio, R shell, Rscript or other R IDEs, we can connect our <strong><a href=\"https:\/\/data-flair.training\/blogs\/career-growth-in-r-programming\/\">R <\/a><\/strong>program to a Spark cluster. Basically, we need to make sure that to start, SPARK_HOME is set in the environment.<br \/>\nMoreover, to check Sys.getenv, load the SparkR package, and call sparkR.session as same as below. Hence, that will check for the Spark installation. Although, if not found, it will be downloaded and cached automatically. Therefore, as an alternative, we can also run install.spark manually.<span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">Furthermore, to call sparkR.session, we could also specify certain Spark driver properties. Although, we can not set these application properties, Runtime Environment p<span class=\"adverb\">rogrammatically<\/span>.<\/span><br \/>\n<span style=\"font-weight: 400\"> Since the driver JVM process would have <span class=\"passivevoice\">been started<\/span>. <span class=\"adverb\">Basically<\/span>, in this case, <strong><a href=\"https:\/\/data-flair.training\/blogs\/create-sparkdataframes\/\">SparkR<\/a><\/strong> takes care of this for us. Moreover, we can also set in other ways. <span class=\"hardreadability\">By passing them as other configuration properties in the sparkConfig argument to sparkR.session()<\/span>.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><b>if (nchar(Sys.getenv(&#8220;SPARK_HOME&#8221;)) &lt; 1) {<\/b><b><br \/>\n<\/b><b> \u00a0Sys.setenv(SPARK_HOME = &#8220;\/home\/spark&#8221;)<\/b><b><br \/>\n<\/b><b>}<\/b><b><br \/>\n<\/b><b>library(SparkR, lib.loc = c(file.path(Sys.getenv(&#8220;SPARK_HOME&#8221;), &#8220;R&#8221;, &#8220;lib&#8221;)))<\/b><b><br \/>\n<\/b><b>sparkR.session(master = &#8220;local[*]&#8221;, sparkConfig = list(spark.driver.memory = &#8220;2g&#8221;))<\/b><\/p>\n<h3>c. Spark Driver Properties<\/h3>\n<p><span style=\"font-weight: 400\">In <span class=\"complexword\">addition<\/span>, there are many Spark driver Properties. <span class=\"adverb\">Basically<\/span>, we can set following Spark driver properties. Although, it is possible by using sparkConfig with sparkR.session from RStudio. <\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Property Name<\/b><\/td>\n<td><b>Property group<\/b><\/td>\n<td><b>spark-submit equivalent<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.master<\/b><\/td>\n<td><b>Application Properties<\/b><\/td>\n<td><b>&#8211;master<\/b><b><\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.yarn.keytab<\/b><\/td>\n<td><b>Application Properties<\/b><\/td>\n<td><b>&#8211;keytab<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.yarn.principal<\/b><\/td>\n<td><b>Application Properties<\/b><\/td>\n<td><b>&#8211;principal<\/b><b><\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.driver.memory<\/b><\/td>\n<td><b>Application Properties<\/b><\/td>\n<td><b>&#8211;driver-memory<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.driver.extraClassPath<\/b><\/td>\n<td><b>Runtime Environment<\/b><\/td>\n<td><b>&#8211;driver-class-path<\/b><b><\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.driver.extraJavaOptions<\/b><\/td>\n<td><b>Runtime Environment<\/b><\/td>\n<td><b>&#8211;driver-java-options<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>spark.driver.extraLibraryPath<\/b><\/td>\n<td><b>Runtime Environment<\/b><\/td>\n<td><b>&#8211;driver-library-path<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>4. Conclusion<\/h2>\n<p>As a result, we have seen ways to start SparkR by Sparksession and RStudio. However, we have tried to cover all the insights regarding same. Despite that, if any query occurs, feel free to ask in the comment section.<br \/>\nA list of <strong><a href=\"https:\/\/data-flair.training\/blogs\/best-apache-spark-scala-books\/\">best books<\/a><\/strong> to Learn Spark.<br \/>\n<a href=\"https:\/\/spark.apache.org\/\"><strong>For reference<\/strong><\/a><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2052,&quot;href&quot;:&quot;https:\\\/\\\/spark.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251009215151\\\/https:\\\/\\\/spark.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 00:11:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-14 03:24:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 05:06:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-20 07:19:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-23 14:10:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-26 19:03:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-30 13:05:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 13:25:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 14:08:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-09 10:16:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 11:04:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-15 17:09:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-18 18:39:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-21 19:15:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 04:14:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-29 05:32:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-01 07:55:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 10:44:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 12:28:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-11 00:52:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-14 12:51:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 14:17:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 17:49:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 04:42:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 06:25:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-02 08:44:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 10:27:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 11:13:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 12:04:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 12:32:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 01:16:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 21:29:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 06:37:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-28 07:59:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 10:36:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 11:16:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 18:11:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 05:09:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 06:26:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 15:58:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 11:10:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 06:59:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-30 12:38:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-03 15:24:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 17:05:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 12:07:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-14 23:33:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 11:27:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-23 02:59:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 05:05:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 06:55:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 20:59:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-08 05:37:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-11 15:39:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-14 16:52:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-18 01:16:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-22 04:29:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-25 16:10:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-29 06:57:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-02 07:09:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-07 02:05:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-10 04:47:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-13 04:57:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-16 23:55:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-20 04:32:16&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-20 04:32:16&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective A distributed collection of data organized into named columns is SparkDataFrame. Basically, there are two ways to which we can start SparkR. For example, by using Sparksession or\u00a0Rstudio. In this article, we&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":42385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[6329,13054,15446,15966],"class_list":["post-5628","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spark","tag-how-to-start-sparkr","tag-spark-driver-properties","tag-ways-to-start-sparkr","tag-what-is-sparkdataframe"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ways to start SparkR - Using Sparksession or RStudio - DataFlair<\/title>\n<meta name=\"description\" content=\"SparkR-what is SparkDataFrames, Ways to start SparkR- from RStudio, Starting Up from SparkSession, Spark Driver Properties with property name &amp; group\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ways to start SparkR - Using Sparksession or RStudio - DataFlair\" \/>\n<meta property=\"og:description\" content=\"SparkR-what is SparkDataFrames, Ways to start SparkR- from RStudio, Starting Up from SparkSession, Spark Driver Properties with property name &amp; group\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-17T05:03:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-16T09:37:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ways to start SparkR - Using Sparksession or RStudio - DataFlair","description":"SparkR-what is SparkDataFrames, Ways to start SparkR- from RStudio, Starting Up from SparkSession, Spark Driver Properties with property name & group","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:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/","og_locale":"en_US","og_type":"article","og_title":"Ways to start SparkR - Using Sparksession or RStudio - DataFlair","og_description":"SparkR-what is SparkDataFrames, Ways to start SparkR- from RStudio, Starting Up from SparkSession, Spark Driver Properties with property name & group","og_url":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-01-17T05:03:20+00:00","article_modified_time":"2018-11-16T09:37:41+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Ways to start SparkR &#8211; Using Sparksession or RStudio","datePublished":"2018-01-17T05:03:20+00:00","dateModified":"2018-11-16T09:37:41+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/"},"wordCount":598,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg","keywords":["How to start SparkR","Spark Driver Properties","Ways to start SparkR","what is SparkDataFrame"],"articleSection":["Apache Spark Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/","url":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/","name":"Ways to start SparkR - Using Sparksession or RStudio - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg","datePublished":"2018-01-17T05:03:20+00:00","dateModified":"2018-11-16T09:37:41+00:00","description":"SparkR-what is SparkDataFrames, Ways to start SparkR- from RStudio, Starting Up from SparkSession, Spark Driver Properties with property name & group","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/How-to-start-SparkR-Using-sparksession-or-R-studio-01-2.jpg","width":1200,"height":628,"caption":"Ways to start SparkR - Sparksession and RStudio"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/sparksession-and-rstudio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Apache Spark Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/spark\/"},{"@type":"ListItem","position":3,"name":"Ways to start SparkR &#8211; Using Sparksession or RStudio"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/5628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=5628"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/5628\/revisions"}],"predecessor-version":[{"id":42387,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/5628\/revisions\/42387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/42385"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=5628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=5628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=5628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}