cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

spark.sql() is suddenly giving an error "Unable to instantiate org.apache.hadoop.hive.metastore.Hive

copper-carrot
New Contributor II

spark.sql() is suddenly giving an error "Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient" on databricks jobs and python scripts that worked last month.  No local changes on my end.

What could be the cause of this and what should I be looking at?

Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/mbarlett/projects/ds-pipelines/.venv/lib/python3.10/site-packages/pyspark/sql/connect/session.py", line 503, in sql data, properties = self.client.execute_command(cmd.command(self._client)) File "/home/mbarlett/projects/ds-pipelines/.venv/lib/python3.10/site-packages/pyspark/sql/connect/client/core.py", line 892, in execute_command data, _, _, _, properties = self._execute_and_fetch(req) File "/home/mbarlett/projects/ds-pipelines/.venv/lib/python3.10/site-packages/pyspark/sql/connect/client/core.py", line 1172, in _execute_and_fetch for response in self._execute_and_fetch_as_iterator(req): File "/home/mbarlett/projects/ds-pipelines/.venv/lib/python3.10/site-packages/pyspark/sql/connect/client/core.py", line 1153, in _execute_and_fetch_as_iterator self._handle_error(error) File "/home/mbarlett/projects/ds-pipelines/.venv/lib/python3.10/site-packages/pyspark/sql/connect/client/core.py", line 1308, in _handle_error self._handle_rpc_error(error) File "/home/mbarlett/projects/ds-pipelines/.venv/lib/python3.10/site-packages/pyspark/sql/connect/client/core.py", line 1344, in _handle_rpc_error raise convert_exception(info, status.message) from None pyspark.errors.exceptions.connect.AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

1 REPLY 1

I am not aware of any recent changes and don't know what changes might solicit this sort of error.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group