<?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 Re: Databricks Cluster is going down after installing the external library in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38651#M5566</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/3889"&gt;@DineshKumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Don't try to remove it. Just don't install it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;About the error - it's clearly permissions issue to the database. Firstly check if the user has got an access to the database. Secondly, check if there's no firewall - if yes make sure that the address range that you're connecting from is whitelisted.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 10:32:01 GMT</pubDate>
    <dc:creator>daniel_sahal</dc:creator>
    <dc:date>2023-07-28T10:32:01Z</dc:date>
    <item>
      <title>Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38613#M5563</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Databricks cluster with below configurations.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Databricks Runtime Version&lt;/STRONG&gt;&lt;BR /&gt;13.2 ML (includes Apache Spark 3.4.0, Scala 2.12)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Node type&lt;/STRONG&gt;&lt;BR /&gt;i3.xlarge&lt;BR /&gt;30.5 GB Memory, 4 Cores&lt;/P&gt;&lt;P&gt;I created a notebook and trying to load the Mysql table which resides in AWS RDS.&lt;/P&gt;&lt;P&gt;So, I have installed this jar file `&lt;STRONG&gt;mysql-connector-j-8.0.33.jar&lt;/STRONG&gt;` into my cluster then I tried executing the below code in a notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;table = "test_table"
database_host = "test-db-dev.cluster-ro-pkh5s13hvg.us-west-2.rds.amazonaws.com"
database_port = "3306" 
database_name = "test_db"
user = "test_user"
password = "12345678"
url = f"jdbc:mysql://{database_host}:{database_port}/{database_name}"

df_rds_table = spark.read \
    .format("jdbc") \
    .option("driver","com.mysql.cj.jdbc.Driver") \
    .option("url", url) \
    .option("dbtable", table) \
    .option("user", user) \
    .option("password", password) \
    .load()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command execution was running for long time and finally ended up with failed status by throwing the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;java.lang.Exception: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
	at org.apache.spark.sql.hive.HiveExternalCatalog.$anonfun$withClient$2(HiveExternalCatalog.scala:167)
	at org.apache.spark.sql.hive.HiveExternalCatalog.maybeSynchronized(HiveExternalCatalog.scala:114)
	at org.apache.spark.sql.hive.HiveExternalCatalog.$anonfun$withClient$1(HiveExternalCatalog.scala:152)
	at com.databricks.backend.daemon.driver.ProgressReporter$.withStatusCode(ProgressReporter.scala:364)
	at com.databricks.spark.util.SparkDatabricksProgressReporter$.withStatusCode(ProgressReporter.scala:34)
	at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:151)
	at org.apache.spark.sql.hive.HiveExternalCatalog.databaseExists(HiveExternalCatalog.scala:323)
	at org.apache.spark.sql.internal.SharedState.externalCatalog$lzycompute(SharedState.scala:302)
	at org.apache.spark.sql.internal.SharedState.externalCatalog(SharedState.scala:297)
	at org.apache.spark.sql.hive.HiveSessionStateBuilder.externalCatalog(HiveSessionStateBuilder.scala:60)
	at org.apache.spark.sql.hive.HiveSessionStateBuilder.$anonfun$resourceLoader$1(HiveSessionStateBuilder.scala:67)
	at org.apache.spark.sql.hive.HiveSessionResourceLoader.client$lzycompute(HiveSessionStateBuilder.scala:166)
	at org.apache.spark.sql.hive.HiveSessionResourceLoader.client(HiveSessionStateBuilder.scala:166)
	at org.apache.spark.sql.hive.HiveSessionResourceLoader.$anonfun$addJar$1(HiveSessionStateBuilder.scala:170)
	at org.apache.spark.sql.hive.HiveSessionResourceLoader.$anonfun$addJar$1$adapted(HiveSessionStateBuilder.scala:169)
	at scala.collection.immutable.List.foreach(List.scala:431)
.
.
.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I observed that after installing the library I could see the below status in Cluster's Event log.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Event Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Message&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;METASTORE_DOWN&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;2023-07-27 18:22:11 CDT&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Metastore is down.&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Kindly assist me on this.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 00:27:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38613#M5563</guid>
      <dc:creator>DineshKumar</dc:creator>
      <dc:date>2023-07-28T00:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38622#M5564</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/3889"&gt;@DineshKumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm not 100% sure what the issue could be, but my lucky guess is that you're reinstalling the JDBC driver that is used to connect to Hive Metastore (it's on MySQL though).&lt;/P&gt;&lt;P&gt;Try to use the one that is already installed:&amp;nbsp;&lt;A href="https://docs.databricks.com/external-data/mysql.html" target="_blank"&gt;https://docs.databricks.com/external-data/mysql.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 05:09:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38622#M5564</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-07-28T05:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38649#M5565</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79106"&gt;@daniel_sahal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I tried uninstalling the JDBC driver but this time I am getting the below classNotFound error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;java.lang.ClassNotFoundException: com.mysql.jdbc.Driver&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Also, I tried using the one (jdbc) from above link which you shared. I am getting the below error.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;java.sql.SQLInvalidAuthorizationSpecException: Could not connect to address=(host=test-db-dev.cluster-ro-pkh5s13hvg.us-west-2.rds.amazonaws.com)
(port=3306)(type=master) : (conn=12345676) Access denied for user 'test_user'@'10.2255.1134.111' (using password: YES)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:07:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38649#M5565</guid>
      <dc:creator>DineshKumar</dc:creator>
      <dc:date>2023-07-28T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38651#M5566</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/3889"&gt;@DineshKumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Don't try to remove it. Just don't install it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;About the error - it's clearly permissions issue to the database. Firstly check if the user has got an access to the database. Secondly, check if there's no firewall - if yes make sure that the address range that you're connecting from is whitelisted.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:32:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38651#M5566</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-07-28T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38655#M5567</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79106"&gt;@daniel_sahal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked that the user has read only access to the database. I connected through Dbeaver with same credentials.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, can you guide me on how to check if there is no firewall or not. Where can I check this. Kindly guide me on this.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:51:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38655#M5567</guid>
      <dc:creator>DineshKumar</dc:creator>
      <dc:date>2023-07-28T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38732#M5568</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/3889"&gt;@DineshKumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please check this stackoverflow question:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/8380797/enable-remote-mysql-connection-error-1045-28000-access-denied-for-user" target="_blank"&gt;https://stackoverflow.com/questions/8380797/enable-remote-mysql-connection-error-1045-28000-access-denied-for-user&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 05:01:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38732#M5568</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2023-07-31T05:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Cluster is going down after installing the external library</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38743#M5569</link>
      <description>&lt;P&gt;Hi, The below error describes that there is an issue connecting to the host from Databricks, you can find more details about the network configurations here at&amp;nbsp;&lt;A href="https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;Could not connect to address=(host=test-db-dev.cluster-ro-pkh5s13hvg.us-west-2.rds.amazonaws.com)
(port=3306)(type=master) : (conn=12345676) Access denied for user 'test_user'@'10.2255.1134.111' (using password: YES)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 06:20:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-cluster-is-going-down-after-installing-the-external/m-p/38743#M5569</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-07-31T06:20:09Z</dc:date>
    </item>
  </channel>
</rss>

