[spark] spark-shell - Failed to start database 'metastore_db' with class loader 처리하기
scala 2018. 5. 28. 20:43spark-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
'scala' 카테고리의 다른 글
[spark] 머신 러닝 - 토큰화(Tokenizer) / StopWordsRemover 예 (0) | 2018.05.28 |
---|---|
[spark] 머신 러닝 - CountVectorizerModel/CountVectorizerModel 예시 (0) | 2018.05.28 |
[spark] EOFException:Cannot seek after EOF/java.lang.NumberFormatException: For input string: "" 해결하기 (0) | 2018.05.12 |
[spark] 로컬 모드 아키텍처 [펌] (0) | 2018.03.29 |
[spark] 스파크 잡 튜닝 및 아키텍처 URL 펌질 (0) | 2018.03.29 |