<?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 import in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148709#M32507</link>
    <description>&lt;P&gt;java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago&lt;/P&gt;&lt;P&gt;it seems you have connectivity issue from the node to the mysql server. can you check whether you are able to run simple jdbc program to connect to your mysql server.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2016 13:42:37 GMT</pubDate>
    <dc:creator>rajkumar_singh</dc:creator>
    <dc:date>2016-06-21T13:42:37Z</dc:date>
    <item>
      <title>Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148708#M32506</link>
      <description>&lt;P&gt;I am having a small cluster with 2 master nodes and 3 slave nodes (data nodes/ node managers). Suppose i want to import the data from a remote mysql db to HDFS/HBASE, do i need to provide permissions for the ip addresses of the datanodes at the database server . Some sort of grant privileges for the ip addresses of the datanode machines on the database server machine.&lt;/P&gt;&lt;P&gt;Since sqoop import is the submission of map jobs to the DB. I see these errors in the individual datanode logs&lt;/P&gt;&lt;P&gt; java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago.&lt;/P&gt;&lt;P&gt;IS there any standard procedure for sqoop jobs to be adopted across the cluster.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:39:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148708#M32506</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-06-21T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148709#M32507</link>
      <description>&lt;P&gt;java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago&lt;/P&gt;&lt;P&gt;it seems you have connectivity issue from the node to the mysql server. can you check whether you are able to run simple jdbc program to connect to your mysql server.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:42:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148709#M32507</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-21T13:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148710#M32508</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUNKUMAR RAMASAMY&lt;/A&gt;&lt;P&gt;The communication between the datanodes and mysql needs to be open. Make sure telnet &amp;lt;mysql_server&amp;gt; &amp;lt;port&amp;gt; works on all the nodes in the cluster. Also, need to verify the bind address at mysql end to verify the connectivity. You can refer to below link for more debugging at mysql end:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/2121829/com-mysql-jdbc-exceptions-jdbc4-communicationsexceptioncommunications-link-fail" target="_blank"&gt;http://stackoverflow.com/questions/2121829/com-mysql-jdbc-exceptions-jdbc4-communicationsexceptioncommunications-link-fail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:43:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148710#M32508</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-21T13:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148711#M32509</link>
      <description>&lt;P&gt;@Sindhu, I made sure that the ports are open&lt;/P&gt;&lt;P&gt;I am able to run the simple sqoop list command(shown below) from each of the nodes and it works fine, but the import is not working.&lt;/P&gt;&lt;P&gt;sqoop list-tables --connect jdbc:mysql://hostname/sqoop_demo --username root -P&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:11:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148711#M32509</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-06-21T14:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148712#M32510</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUNKUMAR RAMASAMY&lt;/A&gt;&lt;P&gt;MySQL might be rejecting connections to the extract the data from the tables from remote host. We need to grant privileges for the IP's of the data nodes at the database end as below:&lt;/P&gt;&lt;P&gt;GRANTALL PRIVILEGES ON*.*TO'user'@'ipadress'&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148712#M32510</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-21T14:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148713#M32511</link>
      <description>&lt;P&gt;Thanks @Sindhu, i gave the permissions, but i didnt flush the privileges;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:35:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148713#M32511</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-06-21T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148714#M32512</link>
      <description>&lt;P&gt;Check if you can listen to the mysql port.&lt;/P&gt;&lt;P&gt;[root@node1 ~]# lsof -i :3306 #replace the port no as applicable&lt;/P&gt;&lt;P&gt;If there is no output that means mysql is running in "skip_networking" mode.&lt;/P&gt;&lt;P&gt;Disable the mode by commenting out below line in /etc/my.cnf and restart the db&lt;/P&gt;&lt;P&gt;# Don't listen on a TCP/IP port at all.&lt;/P&gt;&lt;P&gt;#skip-networking&lt;/P&gt;&lt;P&gt;Now check the port again . It should show similar output &lt;/P&gt;&lt;P&gt;COMMAND   PID   USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME&lt;/P&gt;&lt;P&gt;mysqld  18730  mysql   10u  IPv4 120579417      0t0  TCP *:mysql (LISTEN)&lt;/P&gt;&lt;P&gt;mysqld  18730  mysql   29u  IPv4 120579424      0t0  TCP localhost:mysql-&amp;gt;localhost:41107 (ESTABLISHED)&lt;/P&gt;&lt;P&gt;Now try to run sqoop job.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2017 04:04:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import/m-p/148714#M32512</guid>
      <dc:creator>rchaman</dc:creator>
      <dc:date>2017-02-18T04:04:18Z</dc:date>
    </item>
  </channel>
</rss>

