spark 提示Could not initialize class org.apache.derby.jdbc.EmbeddedDriver

在CDH老版本运行spark时提示Could not initialize class org.apache.derby.jdbc.EmbeddedDriver的错误是因为找不到hive的配置文件hive-site.xml, 默认使用derby数据库导致,可把配置文件放到spark配置目录解决:

$ sudo cp /etc/hive/conf/hive-site.xml /etc/spark/conf

Be the first to comment

Leave a Reply

Your email address will not be published.


*