当前位置:   article > 正文

Hive初始化报错:org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver

org.apache.hadoop.hive.metastore.hivemetaexception: failed to load driver un

Hive初始化报错:org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver

完整错误如下所示:
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to load driver
Underlying cause: java.lang.ClassNotFoundException : com.mysql.jdbc.Driver
Use --verbose for detailed stacktrace.
*** schemaTool failed ***

解决方案:

需要把连接mysql数据库的驱动拷贝到hive安装目录的lib目录下:

  • mysql-connector-java-8.0.21.jar
  • mysql-connector-java-5.1.49.jar

MySQL驱动网盘下载地址:

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号