<?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 SparkException: There is no Credential Scope. in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/sparkexception-there-is-no-credential-scope/m-p/38767#M1122</link>
    <description>&lt;P&gt;Hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am new to databricks and trying to connect to Rstudio&amp;nbsp;&lt;SPAN&gt;Server from my all-purpose compute cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the cluster configuration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Policy: Personal Compute&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access mode: Single user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Databricks run time version:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;13.2 ML (includes Apache Spark 3.4.0, Scala 2.12)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Following the instruction &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sparkr/rstudio#--connect-using-rstudio-server" target="_blank" rel="noopener"&gt;here,&amp;nbsp;&lt;/A&gt;I am trying to run the codes both with sparlyr and sparkR.&lt;/DIV&gt;&lt;H3&gt;Sparklyr&lt;/H3&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;library(sparklyr)&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;sc &amp;lt;- spark_connect(method = "databricks")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;However, I receive the below error:&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Error in value[[3L]](cond) : 
  Failed to start sparklyr backend: java.util.concurrent.ExecutionException: org.apache.spark.SparkException: There is no Credential Scope. 
	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2344)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2316)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)
	at com.google.common.cache.Loc&lt;/SPAN&gt;&lt;SPAN class=""&gt;In addition: &lt;/SPAN&gt;&lt;SPAN class=""&gt;Warning messages:&lt;/SPAN&gt;&lt;SPAN class=""&gt;1: &lt;/SPAN&gt;&lt;SPAN class=""&gt;In file.create(to[okay]) :&lt;/SPAN&gt; &lt;SPAN class=""&gt; cannot create file '/usr/local/lib/R/site-library/sparklyr/java//sparklyr-2.2-2.11.jar', reason 'Permission denied'&lt;/SPAN&gt;&lt;SPAN class=""&gt;2: &lt;/SPAN&gt;&lt;SPAN class=""&gt;In file.create(to[okay]) :&lt;/SPAN&gt; &lt;SPAN class=""&gt; cannot create file '/usr/local/lib/R/site-library/sparklyr/java//sparklyr-2.1-2.11.jar', reason 'Permission denied'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;H3&gt;sparkR&lt;/H3&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;library(SparkR) &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;sparkR.session() &lt;/SPAN&gt;&lt;SPAN class=""&gt;Java ref type org.apache.spark.sql.SparkSession id 1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;df &amp;lt;- SparkR::sql("SELECT * FROM default.diamonds LIMIT 2")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Error traceback&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Error in handleErrors(returnStatus, conn) : 
  org.apache.spark.sql.AnalysisException: There is no Credential Scope. ; line 1 pos 14
	at org.apache.spark.sql.catalyst.analysis.package$AnalysisErrorAt.failAnalysis(package.scala:69)
	at org.apache.spark.sql.execution.datasources.ResolveSQLOnFile$$anonfun$apply$1.applyOrElse(rules.scala:172)
	at org.apache.spark.sql.execution.datasources.ResolveSQLOnFile$$anonfun$apply$1.applyOrElse(rules.scala:94)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.$anonfun$resolveOperatorsDownWithPruning$2(AnalysisHelper.scala:219)
	at org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:106)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.$anonfun$resolveOperatorsDownWithPruning$1(AnalysisHelper.scala:219)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper$.allowInvokingTransformsInAnalyzer(AnalysisHelper.scala:372)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.resolveOperatorsDownWithPruning(AnalysisHelper.scal&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can someone help me?&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 09:11:23 GMT</pubDate>
    <dc:creator>paniz_asghari</dc:creator>
    <dc:date>2023-07-31T09:11:23Z</dc:date>
    <item>
      <title>SparkException: There is no Credential Scope.</title>
      <link>https://community.databricks.com/t5/data-governance/sparkexception-there-is-no-credential-scope/m-p/38767#M1122</link>
      <description>&lt;P&gt;Hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am new to databricks and trying to connect to Rstudio&amp;nbsp;&lt;SPAN&gt;Server from my all-purpose compute cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the cluster configuration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Policy: Personal Compute&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access mode: Single user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Databricks run time version:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;13.2 ML (includes Apache Spark 3.4.0, Scala 2.12)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Following the instruction &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sparkr/rstudio#--connect-using-rstudio-server" target="_blank" rel="noopener"&gt;here,&amp;nbsp;&lt;/A&gt;I am trying to run the codes both with sparlyr and sparkR.&lt;/DIV&gt;&lt;H3&gt;Sparklyr&lt;/H3&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;library(sparklyr)&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;sc &amp;lt;- spark_connect(method = "databricks")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;However, I receive the below error:&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Error in value[[3L]](cond) : 
  Failed to start sparklyr backend: java.util.concurrent.ExecutionException: org.apache.spark.SparkException: There is no Credential Scope. 
	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2344)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2316)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3936)
	at com.google.common.cache.Loc&lt;/SPAN&gt;&lt;SPAN class=""&gt;In addition: &lt;/SPAN&gt;&lt;SPAN class=""&gt;Warning messages:&lt;/SPAN&gt;&lt;SPAN class=""&gt;1: &lt;/SPAN&gt;&lt;SPAN class=""&gt;In file.create(to[okay]) :&lt;/SPAN&gt; &lt;SPAN class=""&gt; cannot create file '/usr/local/lib/R/site-library/sparklyr/java//sparklyr-2.2-2.11.jar', reason 'Permission denied'&lt;/SPAN&gt;&lt;SPAN class=""&gt;2: &lt;/SPAN&gt;&lt;SPAN class=""&gt;In file.create(to[okay]) :&lt;/SPAN&gt; &lt;SPAN class=""&gt; cannot create file '/usr/local/lib/R/site-library/sparklyr/java//sparklyr-2.1-2.11.jar', reason 'Permission denied'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;H3&gt;sparkR&lt;/H3&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;library(SparkR) &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;sparkR.session() &lt;/SPAN&gt;&lt;SPAN class=""&gt;Java ref type org.apache.spark.sql.SparkSession id 1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;df &amp;lt;- SparkR::sql("SELECT * FROM default.diamonds LIMIT 2")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Error traceback&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Error in handleErrors(returnStatus, conn) : 
  org.apache.spark.sql.AnalysisException: There is no Credential Scope. ; line 1 pos 14
	at org.apache.spark.sql.catalyst.analysis.package$AnalysisErrorAt.failAnalysis(package.scala:69)
	at org.apache.spark.sql.execution.datasources.ResolveSQLOnFile$$anonfun$apply$1.applyOrElse(rules.scala:172)
	at org.apache.spark.sql.execution.datasources.ResolveSQLOnFile$$anonfun$apply$1.applyOrElse(rules.scala:94)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.$anonfun$resolveOperatorsDownWithPruning$2(AnalysisHelper.scala:219)
	at org.apache.spark.sql.catalyst.trees.CurrentOrigin$.withOrigin(TreeNode.scala:106)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.$anonfun$resolveOperatorsDownWithPruning$1(AnalysisHelper.scala:219)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper$.allowInvokingTransformsInAnalyzer(AnalysisHelper.scala:372)
	at org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.resolveOperatorsDownWithPruning(AnalysisHelper.scal&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 09:11:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/sparkexception-there-is-no-credential-scope/m-p/38767#M1122</guid>
      <dc:creator>paniz_asghari</dc:creator>
      <dc:date>2023-07-31T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: SparkException: There is no Credential Scope.</title>
      <link>https://community.databricks.com/t5/data-governance/sparkexception-there-is-no-credential-scope/m-p/46336#M1270</link>
      <description>&lt;P&gt;Running into this issue as well. Let me know if you found a resolution,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85623"&gt;@paniz_asghari&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Sep 2023 23:39:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/sparkexception-there-is-no-credential-scope/m-p/46336#M1270</guid>
      <dc:creator>kunalmishra9</dc:creator>
      <dc:date>2023-09-26T23:39:52Z</dc:date>
    </item>
  </channel>
</rss>

