1, 下載地址:sqoop.apache.orgmysql
2, 設置環境變量:sql
[root@hadoop hadoop]# export HADOOP_COMMON_HOME=/home/hadoop/hadoop-2.8.1apache
[root@hadoop hadoop]# export HADOOP_MAPRED_HOME=/home/hadoop/hadoop-2.8.1oop
3, 連接mysql:(前提是先開啓mysql:service mysqld start)hadoop
[root@hadoop bin]# sqoop list-databases --connect jdbc:mysql://192.168.35.110/angel --username root --password root123class