<?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- unable tio connect to mysql  or Hive2 server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132288#M55905</link>
    <description>&lt;P&gt;Thanks @jay! I am able to list the tables using mysql database server and its databases and also tables in each data base.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2017 17:51:15 GMT</pubDate>
    <dc:creator>oriane_tchepgag</dc:creator>
    <dc:date>2017-03-13T17:51:15Z</dc:date>
    <item>
      <title>SQOOP- unable tio connect to mysql  or Hive2 server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132283#M55900</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am learning sqoop  using the sandbox and blocked on the first step concerning connection to the database server.&lt;/P&gt;&lt;P&gt;I ssh the VM with git bash&lt;/P&gt;&lt;P&gt;I have tested 2 cases  : mysql and hive&lt;/P&gt;&lt;P&gt;For the first case , I type the command  "mysql -u root" and it returns "access denied"  as you can see on the picture in the red rectangle&lt;/P&gt;&lt;P&gt;For the second case, I tried to connect to Hive server - database "default". I used the jdbc url i have seen on ambari /Hive service as you can see on picture ambariHive&lt;/P&gt;&lt;P&gt;Does anyone can help me troubleshooting this problem?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/13134-ambarihive.png"&gt;ambarihive.png&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/13135-sqoopproblem.png"&gt;sqoopproblem.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:05:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132283#M55900</guid>
      <dc:creator>oriane_tchepgag</dc:creator>
      <dc:date>2017-03-01T22:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP- unable tio connect to mysql  or Hive2 server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132284#M55901</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15793/orianetchepgag.html" nodeid="15793"&gt;@Oriane&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are two issues in your attached screen shots:&lt;/P&gt;&lt;P&gt;1.   "access denied"  you should use the  "-p"  option while connecting to mysql as following:&lt;/P&gt;&lt;PRE&gt;mysql -u root -p&lt;/PRE&gt;&lt;P&gt;If it still does not work then Try the following: &lt;STRONG&gt;Reset the root password:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;mysqladmin -u root password newPassword&lt;/PRE&gt;&lt;P&gt;
&lt;STRONG&gt;Then try to connect to mysql as following:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;mysql -u root -p&lt;/PRE&gt;&lt;P&gt;2.  Regarding the Sqoop connection string, I see that there are extra &lt;STRONG&gt;"//"&lt;/STRONG&gt; sybmol in the connection string.&lt;/P&gt;&lt;PRE&gt;jdbc://hive2://sandbox.hortonworks.com:2181/default&lt;/PRE&gt;&lt;P&gt;
&lt;STRONG&gt;Should be following i guess:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;jdbc:hive2://sandbox.hortonworks.com:2181/default
&lt;/PRE&gt;&lt;P&gt;- You might want to try the SQOOP command as following:&lt;/P&gt;&lt;PRE&gt;sqoop list-databases --connect "jdbc:mysql://localhost:3306" --username root --password newPassword

OR

sqoop list-tables --connect "jdbc:mysql://localhost:3306/testDB" --username root --password ewPassword&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:17:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132284#M55901</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-01T22:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP- unable tio connect to mysql  or Hive2 server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132285#M55902</link>
      <description>&lt;P&gt;Hi @Jay . Thanks for your response. You are right concerning hive so i remove the extra "//" as you see on the pic but I face a problem of "parsing arguments"&lt;/P&gt;&lt;P&gt;Concerning the command "msql -u root -p, i always face the problem of access denied&lt;/P&gt;&lt;P&gt;Thanks for your feedback&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/13137-sqoopproblem1.png"&gt;sqoopproblem1.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 00:06:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132285#M55902</guid>
      <dc:creator>oriane_tchepgag</dc:creator>
      <dc:date>2017-03-02T00:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP- unable tio connect to mysql  or Hive2 server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132286#M55903</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15793/orianetchepgag.html" nodeid="15793"&gt;@Oriane
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you check if your "mysql" is listening to which host? (localhost or any specific hostname)?
Mysql should by default open 3306 port.
&lt;/P&gt;&lt;PRE&gt;nstatst -tnlpa | grep 3306&lt;/PRE&gt;&lt;P&gt;
try restarting mysql&lt;/P&gt;&lt;PRE&gt;service mysqld restart&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also try to enclose the  --connection string inside Double Quotation mark. As mentioned in my previous example.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15793/orianetchepgag.html" nodeid="15793"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 00:21:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132286#M55903</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-02T00:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP- unable tio connect to mysql  or Hive2 server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132287#M55904</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15793/orianetchepgag.html" nodeid="15793"&gt;@Oriane&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In Sandbox the default mysql password will be "hadoop"  So please try this:&lt;/P&gt;&lt;PRE&gt;# mysql -u root -p
Enter password: hadoop&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Then once you are inside the mysql prompt you can run the following kind of queries:&lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; use mysql
mysql&amp;gt; show tables;
mysql&amp;gt; select * from help_keyword;&lt;/PRE&gt;&lt;P&gt;.

Then from Sqoop try the following:&lt;/P&gt;&lt;PRE&gt;# sqoop list-databases --connect "jdbc:mysql://localhost:3306" --username root --password hadoop&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 01:26:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132287#M55904</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-02T01:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP- unable tio connect to mysql  or Hive2 server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132288#M55905</link>
      <description>&lt;P&gt;Thanks @jay! I am able to list the tables using mysql database server and its databases and also tables in each data base.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:51:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-unable-tio-connect-to-mysql-or-Hive2-server/m-p/132288#M55905</guid>
      <dc:creator>oriane_tchepgag</dc:creator>
      <dc:date>2017-03-13T17:51:15Z</dc:date>
    </item>
  </channel>
</rss>

