Ich habe 5 Datensätze in Mitarbeiter Tabelle importieren inKann die Tabelle aus Mysql mit Sqoop in MySQL in demo_poc Datenbank
192.168.1.126 [Maschinen-1].
Ich möchte die Daten in Bienenstock importieren in
192.168.1.129 [Maschinen-2] mit Sqoop.
Ich installierte sqoop 1.4.6 auf Machine-2.
ich so versucht,
sqoop import --connect jdbc:mysql://192.168.1.126:3306/demo_poc
--username root --password root --table employee -m 10
--hive-import --hive-table demo_poc.address
Hier ist der Fehler, den ich erhielt,
16/04/11 16:28:20 INFO tool.CodeGenTool: Beginning code generation
16/04/11 16:28:21 ERROR manager.SqlManager: Error executing statement: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
16/04/11 16:28:21 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: No columns to generate for ClassWriter
Irgendwelche Vorschläge. Danke.
Bitte erläutern Sie Ihre Antwort. –