<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed” in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102982#M15306</link>
    <description>&lt;P&gt;I never heard back from our network team with regards to firewall 
logs, but our NameNode's OS got corrupted and had to be reformatted and 
HDP reinstalled. For some reason we're not encountering this error any 
longer. &lt;/P&gt;&lt;P&gt;One difference between the original cluster and the new installation 
is that we had 4 nodes (1 name node and 3 data nodes) which were 
virtualized in a single server. Now, we're running a single node cluster (HDP 2.3.4)
 with no virtualization on the server. &lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2016 16:00:07 GMT</pubDate>
    <dc:creator>latorres</dc:creator>
    <dc:date>2016-01-26T16:00:07Z</dc:date>
    <item>
      <title>Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102973#M15297</link>
      <description>&lt;P&gt;On HDP 2.3.2 with Sqoop 1.4.6, I'm trying to import tables from SQL Server 2008.&lt;/P&gt;&lt;P&gt;I'm able to successfully connect to the SQL Server because I can list databases and tables etc.&lt;/P&gt;&lt;P&gt;However, every single time during imports I run into the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException:
  com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection
  to the host x.x.x.x, port 1433 has failed. Error: "connect timed
  out. 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.".&lt;/BLOCKQUOTE&gt;&lt;P&gt;Again, I am actually able to successfully import from SQL Server, but
 only after a couple of retries. However, regardless of whether the 
import succeeded or failed, I &lt;EM&gt;always&lt;/EM&gt; get the error mentioned above and I
 was wondering what could be causing the problem? It's rather cumbersome
 to have to keep repeating the imports whenever they fail.&lt;/P&gt;&lt;P&gt;I've already turned off the connection time-out on the SQL Server, 
and though the connection from the Hadoop cluster and the SQL Server 
passes through our corporate firewall, our admins tell me that the 
timeout on the firewall is 3600 seconds. The imports fail before getting
 anywhere near that mark.&lt;/P&gt;&lt;P&gt;Just an example of one of the sqoop commands I use:&lt;/P&gt;&lt;PRE&gt;sqoop import \
  -D mapred.task.timeout=0 \
  --connect "jdbc:sqlserver://x.x.x.x:1433;database=CEMHistorical" \
  --table MsgCallRefusal \
  --username hadoop \
  --password-file hdfs:///user/sqoop/.adg.password \
  --hive-import \
  --hive-overwrite \
  --create-hive-table \
  --split-by TimeStamp \
  --hive-table develop.oozie \
  --map-column-hive Call_ID=STRING,Stream_ID=STRING,AgentGlobal_ID=STRING&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After getting in touch with our network team, it seems this is most definitely a network issue. To add context, the Hadoop cluster is on a different VLAN as the SQL Server and it goes through a number of firewalls. To test, I tried importing from a different SQL Server within the same VLAN as the Hadoop cluster and I didn't encounter this exception at all.
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:46:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102973#M15297</guid>
      <dc:creator>latorres</dc:creator>
      <dc:date>2016-01-18T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102974#M15298</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1196/latorres.html" nodeid="1196"&gt;@Luis Antonio Torres&lt;/A&gt;&lt;P&gt; Thanks for sharing the details while posting your question. I don't see it that often. &lt;/P&gt;&lt;P&gt;I am going to share this from this &lt;A target="_blank" href="http://stackoverflow.com/questions/14127663/sqoop-connection-to-ms-sql-timeout"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After much searching and talking to many people I have determined that this issue is being caused by the port being blocked. I am still not 100% certain why this error in particular occurred. If I try with an invalid username or password it will successfully tell me that they are invalid. It is just when it comes to making the actual query that the port is restricted. Most likely different ports are used.&lt;/P&gt;&lt;P&gt;I believe next step is to get tcp dump when you see that error to check further. I have seen this behavior during high network traffic.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:04:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102974#M15298</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-18T20:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102975#M15299</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1196/latorres.html" nodeid="1196"&gt;@Luis Antonio Torres&lt;/A&gt; it can't hurt to try a ping -t (or just ping if you're on a mac) against the SQL Server IP and see if you're getting dropped packets. &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 22:08:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102975#M15299</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2016-01-18T22:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102976#M15300</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/186/sshaw.html" nodeid="186"&gt;@Scott Shaw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Pinged the SQL Server and no dropped packets. I can also telnet to port 1433 and nmap also says the port is open. However, I tried it the other way around - I'm unable to ping the Hadoop cluster from the SQL Server. I'm not really sure if this is significant.
 &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:10:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102976#M15300</guid>
      <dc:creator>latorres</dc:creator>
      <dc:date>2016-01-19T09:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102977#M15301</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; thanks for your response. I checked out the link you shared but it doesn't seem to be the same problem. I'm able to connect to the SQL Server, it's just that I always see that error - particularly in between map tasks. In any case, I'm coordinating with our network guys as well. I can't be sure, but I do believe the SQL Server resides in a different corporate network as the Hadoop cluster. I'll update my post once I get further details.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:17:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102977#M15301</guid>
      <dc:creator>latorres</dc:creator>
      <dc:date>2016-01-19T09:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102978#M15302</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1196/latorres.html" nodeid="1196"&gt;@Luis Antonio Torres&lt;/A&gt; Thanks! Having sqlserver in different vlan increases the probability of network issue. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:18:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102978#M15302</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-19T09:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102979#M15303</link>
      <description>&lt;P&gt;Try removing the&lt;STRONG&gt; mapred.task.timeout &lt;/STRONG&gt;command.&lt;/P&gt;&lt;P&gt;I also assume you're using the correct jdbc driver? &lt;/P&gt;&lt;PRE&gt;curl -L 'http://download.microsoft.com/download/0/2/A/02AAE597-3865-456C-AE7F-613F99F850A8/sqljdbc_4.0.2206.100_enu.tar.gz'| tar xz. &lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2016 21:04:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102979#M15303</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2016-01-19T21:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102980#M15304</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/186/sshaw.html" nodeid="186"&gt;@Scott Shaw&lt;/A&gt; I removed &lt;STRONG&gt;mapred.task.timeout&lt;/STRONG&gt; like you suggested, but I'm still getting the same results. As for the jdbc driver, that's the same one that we downloaded and placed in the Sqoop lib. I'm able to connect to the SQL Server with no problems via SQL Server Management Studio on my workstation which are both in the same corporate network, whereas the Hadoop cluster is on a separate network. I actually had to explicity request for our network guys to allow traffic from the cluster into the SQL Server, so I'm starting to suspect there's something in the network that's causing this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 08:54:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102980#M15304</guid>
      <dc:creator>latorres</dc:creator>
      <dc:date>2016-01-20T08:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102981#M15305</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1196/latorres.html" nodeid="1196"&gt;@Luis Antonio Torres&lt;/A&gt; thanks for the update. Please be sure to post the solution when you find it. I'm sure others will find it helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:45:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102981#M15305</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2016-01-20T20:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102982#M15306</link>
      <description>&lt;P&gt;I never heard back from our network team with regards to firewall 
logs, but our NameNode's OS got corrupted and had to be reformatted and 
HDP reinstalled. For some reason we're not encountering this error any 
longer. &lt;/P&gt;&lt;P&gt;One difference between the original cluster and the new installation 
is that we had 4 nodes (1 name node and 3 data nodes) which were 
virtualized in a single server. Now, we're running a single node cluster (HDP 2.3.4)
 with no virtualization on the server. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 16:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102982#M15306</guid>
      <dc:creator>latorres</dc:creator>
      <dc:date>2016-01-26T16:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102983#M15307</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1196/latorres.html" nodeid="1196"&gt;@Luis Antonio Torres&lt;/A&gt; has this been resolved? Can you post your solution or accept best answer?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 23:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102983#M15307</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-02T23:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102984#M15308</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; yes, this has been resolved but I didn't accept my own answer because we never found out what exactly was wrong. The issue merely stopped occurring after we reinstalled HDP on a server with no virtualization - I detail this in my answer. In any case, I've accepted my own answer as a reference, for the benefit of others.Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 08:05:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102984#M15308</guid>
      <dc:creator>latorres</dc:creator>
      <dc:date>2016-02-03T08:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop: Importing from SQL Server throwing “The TCP/IP connection to the host x.x.x.x, port 1433 has failed”</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102985#M15309</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1196/latorres.html"&gt;Luis Antonio Torres&lt;/A&gt; Listing databases (Sqoop eval) just needs the Namenode access to sql server. Whereas, for import/export (mapreduce tasks) Datanodes also need to have access to the sqlserver. I know your issue is resolved and this is a late reply but someone else might be looking for this in future.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Importing-from-SQL-Server-throwing-The-TCP-IP/m-p/102985#M15309</guid>
      <dc:creator>subodadithya</dc:creator>
      <dc:date>2017-11-10T14:53:30Z</dc:date>
    </item>
  </channel>
</rss>

