问题:启动oozie的时候,报错
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
解答:
不仅要复制MySQL JDBC Driver 文件到 libext/目录,还需要复制到 lib/目录。如下:
# 复制JDBC Driver 到 oozie 的 libext/ & lib/目录
# lib/ 目录不复制,在启动的时候也会报 Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
cp /usr/share/java/mysql-connector-java.jar /home/oozie/oozie-5.2.1/distro/target/oozie-5.2.1-distro/oozie-5.2.1/libext/
cp /usr/share/java/mysql-connector-java.jar /home/oozie/oozie-5.2.1/distro/target/oozie-5.2.1-distro/oozie-5.2.1/lib/
问题:启动oozie的时候,报错
org.apache.oozie.service.ServiceException: E0104: Could not fully initialize service [org.apache.oozie.service.ShareLibService], Not able to cache sharelib.
An Admin needs to install the sharelib with oozie-setup.sh and issue the 'oozie admin' CLI command to update the sharelib
File /user/oozie/share/lib does not exist
解答:
在oozie-site.xml增加如下配置:
<!-- HadoopAccessorService -->
<property>
<name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
<value>*=/opt/hadoop-2.8.5/etc/hadoop/</value>
<description>
Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of
the Hadoop service (JobTracker, YARN, HDFS). The wildcard '*' configuration is
used when there is no exact match for an authority. The HADOOP_CONF_DIR contains
the relevant Hadoop *-site.xml files. If the path is relative is looked within
the Oozie configuration directory; though the path can be absolute (i.e. to point
to Hadoop client conf/ directories in the local filesystem.
</description>
</property>