spark-shell에서 Failed to start database 'metastore_db' with class loader 에러가 발생하면..


Caused by: org.apache.derby.iapi.error.StandardException: Failed to start database 'metastore_db' with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@6d4a82, see the next exception for details.

  at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)

  at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)

  ... 153 more

Caused by: org.apache.derby.iapi.error.StandardException: Another instance of Derby may have already booted the database /usr/local/spark-2.1.0-bin-hadoop2.7/metastore_db.




다음 metastore lock 파일을 삭제하고 다시 spark-shell을 재기동한다.

$ rm metastore_db/dbex.lck




Posted by 김용환 '김용환'

댓글을 달아 주세요