1. 程式人生 > >hive啟動報錯之2、The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.

hive啟動報錯之2、The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.

報錯資訊如下:

[[email protected] bin]$ ./hive Missing Hive Execution Jar: /opt/soft/apache-hive-1.1.0-cdh5.7.0-bin/lib/hive-exec-*.jar 考慮的原因有2個:

1、環境變數未配置

sudo vi /etc/profile

在最後新增

export HIVE_HOME=/opt/soft/hive export PATH=$HIVE_HOME/bin/:$PATH

source /etc/profile 2、在hive的安裝路徑下lib庫中沒有hive-exec-1.1.0-cdh5.7.0.jar 包