centos离线安装CDH(3.3): 下载mysql-connector

阿里巴巴淘系技术部招聘大数据研发、数据分析、数据挖掘同学(P6-P8)。
微信: 18520269913  备注: 阿里巴巴淘系技术部-大数据

下载mysql-connector并copy到每台机器

目标: 把mysql-connector-java.jar包添加到每台机器的/usr/share/java/mysql-connector-java.jar
下载mysql connector,下载地址 https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz
通过上一步安装的httpd服务,提供bin.jar给到集群的每个机器下载的。这一步只在master上执行。

sudo mkdir -p /var/www/html/mysql-connector
cd /var/www/html/mysql-connector
sudo wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz
sudo tar zxvf mysql-connector-java-5.1.46.tar.gz

接下来在每台机器上执行

sudo mkdir -p /usr/share/java
cd /usr/share/java
sudo wget http://hadoop130.i.md31.cn/mysql-connector/mysql-connector-java-5.1.46/mysql-connector-java-5.1.46-bin.jar
sudo mv mysql-connector-java-5.1.46-bin.jar mysql-connector-java.jar

你可能感兴趣的:(centos离线安装CDH(3.3): 下载mysql-connector)