<?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 /MySQL conncetion issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161538#M123917</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/4380/junnnninho.html"&gt;Wellington De Oliveira&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The /usr directory is the default install &lt;/P&gt;&lt;P&gt;Confirm that .jar is in the Java share directory. Make sure the .jar file has the appropriate permissions - 644. &lt;/P&gt;&lt;PRE&gt;[root@ambarihost ~]# ls –al /usr/share/java/mysql-connector-java.jar 
-rw-r--r--. 1 root root 819803 Jun 22 2012 mysql-connector-java-5.1.17.jar 
lrwxrwxrwx. 1 root root 31 Nov 8 20:51 mysql-connector-java.jar -&amp;gt; mysql-connector-java-5.1.17.jar&lt;/PRE&gt;&lt;P&gt;Try that and tell if it works out &lt;/P&gt;</description>
    <pubDate>Sat, 09 Apr 2016 02:00:48 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2016-04-09T02:00:48Z</dc:date>
    <item>
      <title>SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161534#M123913</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am using the following command to import a MySQL into HDFS. &lt;/P&gt;&lt;P&gt;sqoop import --connect jdbc:mysql//master.centos:3306/employees --username ambari --password ambari --m 1 --table employee --target-dir /user/landing/sqlImport&lt;/P&gt;&lt;P&gt;When I try to execute the command I get the following error: &lt;/P&gt;&lt;P&gt;ERROR tool.BaseSqoopTool: Got error creating database manager: java.io.IOException: No manager for connect string: jdbc:mysql//master.centos:3306/employees
   at org.apache.sqoop.ConnFactory.getManager(ConnFactory.java:191)
   at org.apache.sqoop.tool.BaseSqoopTool.init(BaseSqoopTool.java:257)
   at org.apache.sqoop.tool.ImportTool.init(ImportTool.java:89)
   at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:593)
   at org.apache.sqoop.Sqoop.run(Sqoop.java:148)
   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
   at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:184)
   at org.apache.sqoop.Sqoop.runTool(Sqoop.java:226)
   at org.apache.sqoop.Sqoop.runTool(Sqoop.java:235)
   at org.apache.sqoop.Sqoop.main(Sqoop.java:244)&lt;/P&gt;&lt;P&gt;I suspect this is something related to the jdbc driver configuration for Sqoop.&lt;/P&gt;&lt;P&gt;What configurations should I follow to solve the issue?&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;&lt;P&gt;Wellington&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 08:36:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161534#M123913</guid>
      <dc:creator>junnnninho</dc:creator>
      <dc:date>2016-04-08T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161535#M123914</link>
      <description>&lt;P&gt;Yes, for Mysql-5.5 and higher your need the latest version of mysql-connector and it cannot be installed using yum, download it from &lt;A href="https://dev.mysql.com/downloads/connector/j/"&gt;here&lt;/A&gt;. After installing it retry sqoop. Also on HDP Sandbox add "--driver com.mysql.jdbc.Driver" to your sqoop command.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 10:49:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161535#M123914</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-08T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161536#M123915</link>
      <description>&lt;P&gt;try specifying the driver class and since MySQL supports --direct, use that too&lt;/P&gt;&lt;PRE&gt;sqoop import --driver com.mysql.jdbc.Driver --connect jdbc:mysql://server.foo.com/db \
    --table bar \
    --direct -- --default-character-set=latin1 

&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2016 10:55:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161536#M123915</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-08T10:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161537#M123916</link>
      <description>&lt;P&gt;Thank you guys. I downloaded and install the connector (tar zxf mysql-connector-java-5.1.38.tar.gz). Then add the --driver and parameters at the sqoop import command. Here is the errors I am getting now:&lt;/P&gt;&lt;PRE&gt;[root@master lib]# sqoop import --connect jdbc:mysql//master.centos:3306/employees --driver com.mysql.jdbc.Driver --direct --username ambari --password ambari --m 1 --table employee --target-dir /user/landing/sqlImport
Warning: /usr/hdp/2.4.0.0-169/hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /usr/hdp/2.4.0.0-169/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
16/04/07 08:51:40 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.4.0.0-169
16/04/07 08:51:40 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
16/04/07 08:51:41 WARN sqoop.ConnFactory: Parameter --driver is set to an explicit driver however appropriate connection manager is not being set (via --connection-manager). Sqoop is going to fall back to org.apache.sqoop.manager.GenericJdbcManager. Please specify explicitly which connection manager should be used next time.
16/04/07 08:51:41 INFO manager.SqlManager: Using default fetchSize of 1000
16/04/07 08:51:41 INFO tool.CodeGenTool: Beginning code generation
16/04/07 08:51:41 ERROR manager.SqlManager: Error executing statement: java.sql.SQLException: No suitable driver found for jdbc:mysql//master.centos:3306/employees
java.sql.SQLException: No suitable driver found for jdbc:mysql//master.centos:3306/employees
   at java.sql.DriverManager.getConnection(DriverManager.java:689)
   at java.sql.DriverManager.getConnection(DriverManager.java:247)
   at org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:885)
   at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
   at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:744)
   at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:767)
   at org.apache.sqoop.manager.SqlManager.getColumnInfoForRawQuery(SqlManager.java:270)
   at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:241)
   at org.apache.sqoop.manager.SqlManager.getColumnTypes(SqlManager.java:227)
   at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:295)
   at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1845)
   at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1645)
   at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
   at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
   at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
   at org.apache.sqoop.Sqoop.run(Sqoop.java:148)
   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
   at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:184)
   at org.apache.sqoop.Sqoop.runTool(Sqoop.java:226)
   at org.apache.sqoop.Sqoop.runTool(Sqoop.java:235)
   at org.apache.sqoop.Sqoop.main(Sqoop.java:244)
16/04/07 08:51:41 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: No columns to generate for ClassWriter
   at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1651)
   at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
   at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:478)
   at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
   at org.apache.sqoop.Sqoop.run(Sqoop.java:148)
   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
   at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:184)
   at org.apache.sqoop.Sqoop.runTool(Sqoop.java:226)
   at org.apache.sqoop.Sqoop.runTool(Sqoop.java:235)
   at org.apache.sqoop.Sqoop.main(Sqoop.java:244)&lt;/PRE&gt;&lt;P&gt;What do you think I am missing? Should I install the connector on a certain way or from a certain folder?&lt;/P&gt;&lt;P&gt;Thanks-&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 00:50:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161537#M123916</guid>
      <dc:creator>junnnninho</dc:creator>
      <dc:date>2016-04-09T00:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161538#M123917</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/4380/junnnninho.html"&gt;Wellington De Oliveira&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The /usr directory is the default install &lt;/P&gt;&lt;P&gt;Confirm that .jar is in the Java share directory. Make sure the .jar file has the appropriate permissions - 644. &lt;/P&gt;&lt;PRE&gt;[root@ambarihost ~]# ls –al /usr/share/java/mysql-connector-java.jar 
-rw-r--r--. 1 root root 819803 Jun 22 2012 mysql-connector-java-5.1.17.jar 
lrwxrwxrwx. 1 root root 31 Nov 8 20:51 mysql-connector-java.jar -&amp;gt; mysql-connector-java-5.1.17.jar&lt;/PRE&gt;&lt;P&gt;Try that and tell if it works out &lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 02:00:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161538#M123917</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-04-09T02:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161539#M123918</link>
      <description>&lt;P&gt;I actually had it there already: &lt;/P&gt;&lt;P&gt;[root@master ~]# ls -la /usr/share/java/mysql-connector-java.jar&lt;/P&gt;&lt;P&gt;lrwxrwxrwx 1 root root 31 Apr  3 13:49 /usr/share/java/mysql-connector-java.jar -&amp;gt; mysql-connector-java-5.1.17.jar&lt;/P&gt;&lt;P&gt;I have ran the import again an still getting the same error&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 03:54:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161539#M123918</guid>
      <dc:creator>junnnninho</dc:creator>
      <dc:date>2016-04-09T03:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161540#M123919</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/4380/junnnninho.html" nodeid="4380"&gt;@Wellington  De Oliveira&lt;/A&gt;, change that symlink, it's still pointing to the old version of the connector:&lt;/P&gt;&lt;PRE&gt;cd /usr/share/java
rm mysql-connector-java.jar
ln -s mysql-connector-java-5.1.38.jar mysql-connector-java.jar&lt;/PRE&gt;&lt;P&gt;Check the name of the new version, not sure is it as I wrote.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 08:20:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161540#M123919</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-09T08:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161541#M123920</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Sorry for not getting back with feedbacks during this week, but my environment was very unstable and I had to rebuild it on AWS. I have done the driver installation again: tar zxf /usr/mysql-connector-java-5.1.38.tar.gz. Then I realize that i still have the old version mysql-connector-java.jar under /usr/share/java. I then I want to copy the new file from /usr/mysql-connector-java-5.1.38 into the java folder but I realize that this is the file I have there: -rw-r--r--. 1 root root 983914 Dez  2 03:02 mysql-connector-java-5.1.38-bin.jar&lt;/P&gt;&lt;P&gt;Is this normal to have this file with "bin" before the jar?&lt;/P&gt;&lt;P&gt;I then copy it to /usr/share/java. I change it permissions with chmod 644 and try the sqoop command and get the same errors. Then I change the file name from mysql-connector-java-5.1.38-bin.jar into mysql-connector-java-5.1.38.jar and remove the mysql-connector-java.jar and keep having the same error. &lt;/P&gt;&lt;P&gt;Any insights appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Wellington &lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 06:18:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161541#M123920</guid>
      <dc:creator>junnnninho</dc:creator>
      <dc:date>2016-04-16T06:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161542#M123921</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/4380/junnnninho.html" nodeid="4380"&gt;@Wellington  De Oliveira&lt;/A&gt;, please see my answer of April 9 above, and update mysql-connector-java.jar which is a symbolic link, to point to the latest version of the driver.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2016 13:53:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161542#M123921</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-16T13:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP /MySQL conncetion issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161543#M123922</link>
      <description>&lt;P&gt;I think "jdbc:mysql//master.centos:3306/employees" is not a valid jdbc url for mysql. Try to add ':' character after jdbc:mysql&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 20:28:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQOOP-MySQL-conncetion-issue/m-p/161543#M123922</guid>
      <dc:creator>dbodo</dc:creator>
      <dc:date>2017-12-19T20:28:43Z</dc:date>
    </item>
  </channel>
</rss>

