I use Spark 1.6.
We have a HDFS write method that wrote to HDFS using SqlContext
. Now we needed to switch over to using HiveContext
. When we did that existing unit tests do not run and give the error
Error XSDB6: Another instance of Derby may have already booted the database <local path>\metastore_db
This happens whether I run a single test via IntelliJ test runner or via maven on the command line.
As I understand the issue happens when multiple HiveContexts or multiple processes are trying to access the metastore_db. However I am running a single test and no other jobs on my local machine so I fail to understand where the multiple processes are coming from