<?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 Sqoop lists tables but fails to import data in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/39199#M24092</link>
    <description>&lt;P&gt;I am successfully listing tables in my 'test' db on the master node like so:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sqoop list-tables --driver com.mysql.jdbc.Driver --connect jdbc:mysql://localhost/test --username hadoop&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;test_table&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when i try importing data like so, it fails with the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sqoop import --driver com.mysql.jdbc.Driver --connect jdbc:mysql://localhost/test --username hadoop --table 'test_table' -m 1 --verbose;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Error: java.io.IOException: SQLException in nextKeyValue Caused by:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;java.sql.SQLSyntaxErrorException: Table 'test.test_table' doesn't exist&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Caused by: org.mariadb.jdbc.internal.common.QueryException: Table 'test.test_table' doesn't exist&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While trying to fix this i tried doing following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my MySQL database i ran the following command for each data node:&lt;/P&gt;&lt;P&gt;create user 'hadoop'@'&amp;lt;node ip&amp;gt;';&lt;BR /&gt;grant all on test.* to 'hadoop'@'&amp;lt;node ip&amp;gt;'; and commented out the&amp;nbsp;bind-address address in mysql settings. And restarted the server&lt;BR /&gt;But that didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what is wrong?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:11:50 GMT</pubDate>
    <dc:creator>denystetsenko</dc:creator>
    <dc:date>2022-09-16T10:11:50Z</dc:date>
    <item>
      <title>Sqoop lists tables but fails to import data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/39199#M24092</link>
      <description>&lt;P&gt;I am successfully listing tables in my 'test' db on the master node like so:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sqoop list-tables --driver com.mysql.jdbc.Driver --connect jdbc:mysql://localhost/test --username hadoop&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;test_table&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when i try importing data like so, it fails with the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sqoop import --driver com.mysql.jdbc.Driver --connect jdbc:mysql://localhost/test --username hadoop --table 'test_table' -m 1 --verbose;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Error: java.io.IOException: SQLException in nextKeyValue Caused by:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;java.sql.SQLSyntaxErrorException: Table 'test.test_table' doesn't exist&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Caused by: org.mariadb.jdbc.internal.common.QueryException: Table 'test.test_table' doesn't exist&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While trying to fix this i tried doing following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my MySQL database i ran the following command for each data node:&lt;/P&gt;&lt;P&gt;create user 'hadoop'@'&amp;lt;node ip&amp;gt;';&lt;BR /&gt;grant all on test.* to 'hadoop'@'&amp;lt;node ip&amp;gt;'; and commented out the&amp;nbsp;bind-address address in mysql settings. And restarted the server&lt;BR /&gt;But that didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea what is wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:11:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/39199#M24092</guid>
      <dc:creator>denystetsenko</dc:creator>
      <dc:date>2022-09-16T10:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop lists tables but fails to import data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/39200#M24093</link>
      <description>&lt;P&gt;Solved the issue in a minute after posting it - the power of the Cloudera forum &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution was to specify not 'localhost', but the localhosts' ip address in the connection string &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 08:44:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/39200#M24093</guid>
      <dc:creator>denystetsenko</dc:creator>
      <dc:date>2016-03-31T08:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop lists tables but fails to import data</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/53795#M24094</link>
      <description>&lt;P&gt;I checked all firewalls are open for the gateway node server in.The list tables and eval commands &amp;nbsp;work well with this.The problem occurs only with import command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can Someone please help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;17/04/18 11:16:47 INFO mapreduce.Job: Task Id : attempt_1491582957593_104165_m_000000_1, Status : FAILED&lt;BR /&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host gblondb505v.ants.ad.anplc.co.uk, port 1493 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;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:167)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)&lt;BR /&gt;at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)&lt;BR /&gt;at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:415)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1707)&lt;BR /&gt;at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)&lt;BR /&gt;Caused by: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host gblondb505v.ants.ad.anplc.co.uk, port 1493 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;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:220)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:165)&lt;BR /&gt;... 9 more&lt;BR /&gt;Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host gblondb505v.ants.ad.anplc.co.uk, port 1493 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;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:571)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:215)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBConfiguration.getConnection(DBConfiguration.java:302)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:213)&lt;BR /&gt;... 10 more&lt;/P&gt;&lt;P&gt;17/04/18 11:17:08 INFO mapreduce.Job: Task Id : attempt_1491582957593_104165_m_000000_2, Status : FAILED&lt;BR /&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host gblondb505v.ants.ad.anplc.co.uk, port 1493 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;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:167)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)&lt;BR /&gt;at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)&lt;BR /&gt;at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:415)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1707)&lt;BR /&gt;at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)&lt;BR /&gt;Caused by: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host gblondb505v.ants.ad.anplc.co.uk, port 1493 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;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:220)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:165)&lt;BR /&gt;... 9 more&lt;BR /&gt;Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host gblondb505v.ants.ad.anplc.co.uk, port 1493 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;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:571)&lt;BR /&gt;at java.sql.DriverManager.getConnection(DriverManager.java:215)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBConfiguration.getConnection(DBConfiguration.java:302)&lt;BR /&gt;at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:213)&lt;BR /&gt;... 10 more&lt;/P&gt;&lt;P&gt;17/04/18 11:17:31 INFO mapreduce.Job: map 100% reduce 0%&lt;BR /&gt;17/04/18 11:17:32 INFO mapreduce.Job: Job job_1491582957593_104165 failed with state FAILED due to: Task failed task_1491582957593_104165_m_000000&lt;BR /&gt;Job failed as tasks failed. failedMaps:1 failedReduces:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 10:24:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-lists-tables-but-fails-to-import-data/m-p/53795#M24094</guid>
      <dc:creator>Kamleshkumar43</dc:creator>
      <dc:date>2017-04-18T10:24:02Z</dc:date>
    </item>
  </channel>
</rss>

