sqoop:000> create link --cid 1
Creating link for connector with id 1
Please fill following values to create new link object
Name: mysql
Link configuration
JDBC Driver Class: generic-jdbc-connector
JDBC Connection String: mysql://127.0.0.1:3306/employees
Username: root
Password: **********
JDBC Connection Properties:
There are currently 0 values in the map:
entry#
There are issues with entered data, please revise your input:
Name: mysql
Link configuration
Error message: Class not found
JDBC Driver Class: com.mysql.jdbc.Driver
Error message: String must start with: jdbc:
JDBC Connection String: jdbc:mysql://127.0.0.1:3306/employees
Username: root
Password: **********
JDBC Connection Properties:
There are currently 0 values in the map:
entry#
New link was successfully created with validation status OK and persistent id 2
----------------------------------------------------------------------------------------------------------------
与上面对应的mysql信息如下:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| employees |
| hive |
| mysql |
| performance_schema |
| sys |
+--------------------+
6 rows in set (0.06 sec)
解决方案:
根据上面的红色信息进行调试即可.
另外碰到entry# 的时候直接按下回车键即可.