在mRemoteNG上运行spark作业时,因为mRemoteNG无应答,直接退出后,再重新进入spark-shell时hive出现以下错误,如下图所示

1.Spark启动时hive出现another instance of derby may have already booted the database的错误


1.Spark启动时hive出现another instance of derby may have already booted the database的错误


错误原因:突然离线,易造成hive没能来得及删除自动创建的metastore_db文件夹(~home/bin/metastore_db),这时再次用hive命令进入,则会产生如下报错。


解决办法:将metastore_db文件夹改名或者干脆删除,然后重新运行hive命令启动即可

1)#rm -r metastore_db/

2)# mv metastore_db/ metastore_db1/

1.Spark启动时hive出现another instance of derby may have already booted the database的错误


相关文章: