aa19615e06
Oozie can't start properly because of absence of MySQL JDBC driver in its lib/ directory. The jar is copied there from /usr/share/java/mysql- connector-java.jar during Oozie install. Driver is provided by libmysql-java on Ubuntu and mysql-connector-java on RedHat and SLES Change-Id: I75d70eea82ec136f49770431a1d0a872717263e1 Closes-Bug: #1432633
13 lines
399 B
Bash
13 lines
399 B
Bash
#!/bin/bash
|
|
|
|
if [[ $1 == *"Ubuntu"* ]]; then
|
|
sudo apt-get install --force-yes -y mysql-client libmysql-java
|
|
elif [[ $1 == *"CentOS"* ]] || [[ $1 == *"Red Hat Enterprise Linux"* ]]; then
|
|
sudo yum install -y mysql mysql-connector-java
|
|
elif [[ $1 == *"SUSE"* ]]; then
|
|
sudo zypper install mysql-community-server-client mysql-connector-java
|
|
else
|
|
echo "Unknown distribution"
|
|
exit 1
|
|
fi
|