<?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 Import failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221228#M84434</link>
    <description>&lt;P&gt;I have to import Table from Mysql to Hive using Sqoop.&lt;/P&gt;&lt;P&gt;My cluster composed by 2 masters nodes and 2 workers Nodes with Ambari 2.7 and HDP3&lt;/P&gt;&lt;P&gt;I tried this command on hdfs :&lt;/P&gt;&lt;P&gt;[hdfs@master1 root]$  sqoop import --connect jdbc:mysql://192.168.1.83:3306/testdb --username root -P --table customers&lt;/P&gt;&lt;P&gt;the Job failed  with :&lt;/P&gt;&lt;P&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLException: Access denied for user 'root'@'worker1.hadoop.com' (using password: YES)&lt;/P&gt;&lt;P&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLException: Access denied for user 'root'@'worker2.hadoop.com' (using password: YES)&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 18:33:36 GMT</pubDate>
    <dc:creator>henimaher</dc:creator>
    <dc:date>2018-10-18T18:33:36Z</dc:date>
    <item>
      <title>Sqoop Import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221228#M84434</link>
      <description>&lt;P&gt;I have to import Table from Mysql to Hive using Sqoop.&lt;/P&gt;&lt;P&gt;My cluster composed by 2 masters nodes and 2 workers Nodes with Ambari 2.7 and HDP3&lt;/P&gt;&lt;P&gt;I tried this command on hdfs :&lt;/P&gt;&lt;P&gt;[hdfs@master1 root]$  sqoop import --connect jdbc:mysql://192.168.1.83:3306/testdb --username root -P --table customers&lt;/P&gt;&lt;P&gt;the Job failed  with :&lt;/P&gt;&lt;P&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLException: Access denied for user 'root'@'worker1.hadoop.com' (using password: YES)&lt;/P&gt;&lt;P&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLException: Access denied for user 'root'@'worker2.hadoop.com' (using password: YES)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:33:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221228#M84434</guid>
      <dc:creator>henimaher</dc:creator>
      <dc:date>2018-10-18T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221229#M84435</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18016/henimaher.html" nodeid="18016"&gt;@HENI MAHER&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please make sure that you are entering correct password for "root" user.&lt;/P&gt;&lt;PRE&gt;# mysql -u root -p
Enter Password: &amp;lt;Enter_root_password&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;After that you will need to enter the following:&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; use mysql;
mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'  IDENTIFIED BY '&amp;lt;Enter_root_password&amp;gt;';
mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO 'root'@'worker1.hadoop.com'  IDENTIFIED BY '&amp;lt;Enter_root_password&amp;gt;';
mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO 'root'@'worker2.hadoop.com'  IDENTIFIED BY '&amp;lt;Enter_root_password&amp;gt;';
mysql&amp;gt; FLUSH PRIVILEGES;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can check MySQL DB' "user" table to see if "root" user has access to see the DB from host 'worker1.hadoop.com' or not by running the following query:&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; SELECT User, Host FROM user;
+------+--------------------+
| User | Host               |
+------+--------------------+
| hive | %                  |
| root | 127.0.0.1          |
| root | ::1                |
| root | worker1.hadoop.com |
| root | worker2.hadoop.com |
| root | localhost          |
+------+--------------------+&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:38:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221229#M84435</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-10-18T18:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221230#M84436</link>
      <description>&lt;P&gt;Thak you &lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have a question please.&lt;BR /&gt;I executed this command:&lt;BR /&gt;sqoop-import --connect jdbc:mysql://192.168.1.83/testdb --username root --password ******* --table customers --hive-import --create-hive-table --hive-table testdb.customers --verbose&lt;BR /&gt;how to find this table with hive. because,&lt;BR /&gt;connecting to beeline and try show tables; i don't have this table testdb.customers.&lt;BR /&gt;a suggestion please!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:57:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Import-failing/m-p/221230#M84436</guid>
      <dc:creator>henimaher</dc:creator>
      <dc:date>2018-10-18T21:57:31Z</dc:date>
    </item>
  </channel>
</rss>

