<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why does the Spark user differ if using sparklyr from Spark SQL? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/why-does-the-spark-user-differ-if-using-sparklyr-from-spark-sql/m-p/15666#M9973</link>
    <description>&lt;P&gt;My team uses a shared cluster. We've been having issues with spark_connect failing to work at times (can't easily reproduce). One thing I've recently noticed is that the Spark user through sparklyr seems to be set to the first person who connects to Spark on the (shared) cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;library(sparklyr)&lt;/P&gt;&lt;P&gt;sc &amp;lt;- spark_connect(method = "databricks")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBI::dbGetQuery(sc, 'select current_user() as user')&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is not necessarily the same as user identified with Spark SQL in a notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;%sql&lt;/P&gt;&lt;P&gt;select current_user() as user&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug? Could this be causing Spark connection issues? &lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 16:59:38 GMT</pubDate>
    <dc:creator>J15S</dc:creator>
    <dc:date>2022-12-20T16:59:38Z</dc:date>
    <item>
      <title>Why does the Spark user differ if using sparklyr from Spark SQL?</title>
      <link>https://community.databricks.com/t5/data-engineering/why-does-the-spark-user-differ-if-using-sparklyr-from-spark-sql/m-p/15666#M9973</link>
      <description>&lt;P&gt;My team uses a shared cluster. We've been having issues with spark_connect failing to work at times (can't easily reproduce). One thing I've recently noticed is that the Spark user through sparklyr seems to be set to the first person who connects to Spark on the (shared) cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;library(sparklyr)&lt;/P&gt;&lt;P&gt;sc &amp;lt;- spark_connect(method = "databricks")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBI::dbGetQuery(sc, 'select current_user() as user')&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is not necessarily the same as user identified with Spark SQL in a notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;%sql&lt;/P&gt;&lt;P&gt;select current_user() as user&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug? Could this be causing Spark connection issues? &lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:59:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/why-does-the-spark-user-differ-if-using-sparklyr-from-spark-sql/m-p/15666#M9973</guid>
      <dc:creator>J15S</dc:creator>
      <dc:date>2022-12-20T16:59:38Z</dc:date>
    </item>
  </channel>
</rss>

