选择集群,添加服务,选择Sqoop2,选择要安装Sqoop2的服务器,一路继续下去即可。
查找 服务端启动命令sqoop2-server
find / -name sqoop2-server
cd /opt/cloudera/parcels/CDH-5.13.2-1.cdh5.13.2.p0.3/bin/
./sqoop2-server start
查找客户端连接 sqoop2 命令
find / -name sqoop2
cd /opt/cloudera/parcels/CDH-5.13.2-1.cdh5.13.2.p0.3/bin/
./sqoop2
Sqoop home directory: /opt/cloudera/parcels/CDH-5.13.2-1.cdh5.13.2.p0.3/lib/sqoop2
五月 29, 2018 8:55:08 下午 java.util.prefs.FileSystemPreferences$1 run
信息: Created user preferences directory.
Sqoop Shell: Type 'help' or '\h' for help.
sqoop:000> show connector
0 [main] WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
+----+------------------------+------------------+------------------------------------------------------+----------------------+
| Id | Name | Version | Class | Supported Directions |
+----+------------------------+------------------+------------------------------------------------------+----------------------+
| 1 | generic-jdbc-connector | 1.99.5-cdh5.13.2 | org.apache.sqoop.connector.jdbc.GenericJdbcConnector | FROM/TO |
| 2 | kite-connector | 1.99.5-cdh5.13.2 | org.apache.sqoop.connector.kite.KiteConnector | FROM/TO |
| 3 | hdfs-connector | 1.99.5-cdh5.13.2 | org.apache.sqoop.connector.hdfs.HdfsConnector | FROM/TO |
| 4 | kafka-connector | 1.99.5-cdh5.13.2 | org.apache.sqoop.connector.kafka.KafkaConnector | TO |
+----+------------------------+------------------+------------------------------------------------------+----------------------+
sqoop:000>
添加jdbc驱动 /var/lib/sqoop2/ 把jar包copy该目录下