<?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>question Spark failed to get database default in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56320#M63479</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I just did a fresh clean install of CDH 5.11 and with Hive and Spark, everythin in dev mode - so embedded database, no HA, simple setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to run spark-shell a got an exception:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spark context available as sc (master = yarn-client, app id = application_1498152485620_0001).&lt;BR /&gt;17/06/22 19:30:59 WARN metastore.ObjectStore: Version information not found in metastore. hive.metastore.schema.verification is not enabled so recording the schema version 1.1.0&lt;BR /&gt;17/06/22 19:30:59 WARN metastore.ObjectStore: Failed to get database default, returning NoSuchObjectException&lt;BR /&gt;SQL context available as sqlContext.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this some bug related to Spark 1.6?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Tomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:48:34 GMT</pubDate>
    <dc:creator>Tomas79</dc:creator>
    <dc:date>2022-09-16T11:48:34Z</dc:date>
    <item>
      <title>Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56320#M63479</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I just did a fresh clean install of CDH 5.11 and with Hive and Spark, everythin in dev mode - so embedded database, no HA, simple setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to run spark-shell a got an exception:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spark context available as sc (master = yarn-client, app id = application_1498152485620_0001).&lt;BR /&gt;17/06/22 19:30:59 WARN metastore.ObjectStore: Version information not found in metastore. hive.metastore.schema.verification is not enabled so recording the schema version 1.1.0&lt;BR /&gt;17/06/22 19:30:59 WARN metastore.ObjectStore: Failed to get database default, returning NoSuchObjectException&lt;BR /&gt;SQL context available as sqlContext.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this some bug related to Spark 1.6?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Tomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:48:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56320#M63479</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2022-09-16T11:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56322#M63480</link>
      <description>The interesting thing is, that if I download spark 2.1 and configure it (point to hadoop conf dir in etc), it just works ok in YARN a does not have a problem to show databases or show tables.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2017 18:01:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56322#M63480</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2017-06-22T18:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56349#M63481</link>
      <description>&lt;P&gt;The database it is trying to access is the backend to the Hive Metastore. &amp;nbsp;Are you able to access and view databases and tables in Hive?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 01:46:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56349#M63481</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-06-23T01:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56355#M63482</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18127"&gt;@mbigelow&lt;/a&gt;i agree with you on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you check your Metastore / HS2&amp;nbsp; status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo service hive-metastore status&lt;BR /&gt;sudo service hive-server2 status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 05:03:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56355#M63482</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-06-23T05:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56374#M63483</link>
      <description>&lt;P&gt;I am sorry, but probably my mistake. I dont know why but now the sqlContext.sql("show tables").collect gathers the tables so I am able to access the metastore. The warning message is still there during spark-shell startup. But it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 09:59:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/56374#M63483</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2017-06-23T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/91164#M63484</link>
      <description>&lt;P&gt;Still not clear on what the solution is for this error.&amp;nbsp; We are getting the same error.&amp;nbsp; Please help !!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 14:48:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/91164#M63484</guid>
      <dc:creator>MuniraG</dc:creator>
      <dc:date>2019-06-03T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Spark failed to get database default</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/91234#M63486</link>
      <description>&lt;P&gt;Could you let me know what is the issue you are facing ? whats the error ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 07:15:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-failed-to-get-database-default/m-p/91234#M63486</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2019-06-05T07:15:07Z</dc:date>
    </item>
  </channel>
</rss>

