Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database

前端 未结 11 935
深忆病人
深忆病人 2020-12-14 17:11

I am trying to run SparkSQL :

val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)  

But the error i m getting is below:

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 17:34

    an lck(lock) file is an access control file which locks the database so that only a single user can access or update the database. The error suggests that there is another instance which is using the same database. Thus you need to delete the .lck files. In your home directory, go to metastore_db and delete any .lck files.

提交回复
热议问题