[ https://issues.apache.org/jira/browse/SPARK-9776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14700096#comment-14700096 ]
Michael Armbrust commented on SPARK-9776: ----------------------------------------- You can only have one hive context running when you are using derby for the metastore (the default). {{bin/spark-shell}} automatically creates a HiveContext on startup (it checks the classpath and creates a HiveContext if possible, otherwise falls back on creating a SQLContext). So the one you are creating by hand will always fail since the database is locked. > Another instance of Derby may have already booted the database > --------------------------------------------------------------- > > Key: SPARK-9776 > URL: https://issues.apache.org/jira/browse/SPARK-9776 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.5.0 > Environment: Mac Yosemite, spark-1.5.0 > Reporter: Sudhakar Thota > Attachments: SPARK-9776-FL1.rtf > > > val hiveContext = new org.apache.spark.sql.hive.HiveContext(sc) results in > error. Though the same works for spark-1.4.1. > Caused by: ERROR XSDB6: Another instance of Derby may have already booted the > database -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org