- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Sqoop import fail : TCP/IP Connection refused
- Labels:
-
Apache Sqoop
Created on ‎09-19-2017 03:28 AM - edited ‎09-16-2022 05:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sqoop list-tables , sqoop eval is successful
But fails in Sqoop import.
sqoop import --connect "jdbc:sqlserver://10.xxx.xxx.xxx:1433; database=Runtime" --username ** --password ****** --table live -m 1
The error is :
Error: java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 10.xxx.xxx.xxx, port 1433 has failed. Error: "Connection refused. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
Created ‎10-06-2017 07:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sqoop eval and Sqoop list tables requires only the Name node connection with the SQL server.
But for SQOOP import, all the nodes in the cluster needs to have access to the remote SQL server.
Here the Telnet failed from datanodes. It was due the network settings and firewalls configuration.
Later when every node was able to access the Remote SQL server the SQOOP IMPORT was successful.
Created ‎09-20-2017 04:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error message pretty much indicated that your client host is not able to communicate with server host, it could be a network issue, or some firewall settings.
Created on ‎09-20-2017 10:30 AM - edited ‎09-20-2017 10:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am able to Telnet to the SQL Server. Connected success
Sqoop eval, Sqoop list-database, Sqoop list-tables are all working.
Able to view the status and Log in the Job Browser.
Only sqoop import throws this TCP/IP Connection refused error.
Created ‎10-06-2017 07:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sqoop eval and Sqoop list tables requires only the Name node connection with the SQL server.
But for SQOOP import, all the nodes in the cluster needs to have access to the remote SQL server.
Here the Telnet failed from datanodes. It was due the network settings and firewalls configuration.
Later when every node was able to access the Remote SQL server the SQOOP IMPORT was successful.
