[root@hadoop01-181 ins]# ll total 4 drwxr-xr-x 2 root root 124 Mar 27 17:00 cdh drwxr-xr-x 2 root root 207 Mar 27 16:55 cm drwxr-xr-x 3 root root 83 Mar 27 18:56 jdbc drwxr-xr-x 2 root root 37 Mar 27 16:48 jdk drwxr-xr-x 2 root root 4096 Mar 27 18:50 mysql

[root@hadoop01-181 ins]# cd jdbc/ [root@hadoop01-181 jdbc]# ll total 4348 drwxr-xr-x 3 root root 178 Aug 7 2018 mysql-connector-java-5.1.47 -rw-r--r-- 1 root root 4452049 Mar 27 14:25 mysql-connector-java-5.1.47.tar.gz

tar -zxvf mysql-connector-java-5.1.47.tar.gz

[root@hadoop01-181 mysql-connector-java-5.1.47]# ll total 2448 -rw-r--r-- 1 root root 91845 Aug 7 2018 build.xml -rw-r--r-- 1 root root 248527 Aug 7 2018 CHANGES -rw-r--r-- 1 root root 18122 Aug 7 2018 COPYING -rw-r--r-- 1 root root 1007505 Aug 7 2018 mysql-connector-java-5.1.47-bin.jar -rw-r--r-- 1 root root 1007502 Aug 7 2018 mysql-connector-java-5.1.47.jar -rw-r--r-- 1 root root 61407 Aug 7 2018 README -rw-r--r-- 1 root root 63658 Aug 7 2018 README.txt drwxr-xr-x 8 root root 79 Aug 7 2018 src [root@hadoop01-181 mysql-connector-java-5.1.47]# mkdir -p /usr/share/java/

cp mysql-connector-java-5.1.47-bin.jar /usr/share/java/mysql-connector-java.jar cd /usr/share/java/ ll