<?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: Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/90228#M94</link>
    <description>&lt;P&gt;My apologies for the delay. I was occupied with an urgent, unrelated project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used your advice and Sqoop works fine now. Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 01:47:39 GMT</pubDate>
    <dc:creator>Tipo33</dc:creator>
    <dc:date>2019-05-10T01:47:39Z</dc:date>
    <item>
      <title>Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/87552#M92</link>
      <description>&lt;P&gt;I run a PC with Ubuntu 16.04 LTS. I have installed CDH 5.16.1 (installation by parcels) and had accidentally allowed it to install Oracle Java 7 into my default Java directory (/usr/lib/jvm). Prior to my CDH installation I had installed OpenJDK 8 on my PC in the same location.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then downloaded the JDBC for Postgresql for Java 8 and higher&amp;nbsp;postgresql-42.2.5.jar and placed it in the recommended directory (/var/lib/sqoop).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In attempting to connect to my database and list the tables present, I got the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exception in thread "main" java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 52.0&lt;BR /&gt;at java.lang.ClassLoader.defineClass1(Native Method)&lt;BR /&gt;at java.lang.ClassLoader.defineClass(ClassLoader.java:800)&lt;BR /&gt;at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)&lt;BR /&gt;at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)&lt;BR /&gt;at java.net.URLClassLoader.access$100(URLClassLoader.java:71)&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:361)&lt;BR /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;BR /&gt;at java.lang.Class.forName0(Native Method)&lt;BR /&gt;at java.lang.Class.forName(Class.java:190)&lt;BR /&gt;at org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:872)&lt;BR /&gt;at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)&lt;BR /&gt;at org.apache.sqoop.manager.CatalogQueryManager.listTables(CatalogQueryManager.java:102)&lt;BR /&gt;at org.apache.sqoop.tool.ListTablesTool.run(ListTablesTool.java:49)&lt;BR /&gt;at org.apache.sqoop.Sqoop.run(Sqoop.java:147)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)&lt;BR /&gt;at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)&lt;BR /&gt;at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)&lt;BR /&gt;at org.apache.sqoop.Sqoop.runTool(Sqoop.java:243)&lt;BR /&gt;at org.apache.sqoop.Sqoop.main(Sqoop.java:252)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand that it points to a conflict in the JDK versions that are present in my PC. I then replaced the JDBC with postgresql-42.2.5.jre7.jar but still received the same error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then changed the Java Home Directory on Cloudera Manager to that of my OpenJDK 8, followed up with replacing the JDBC once again with&amp;nbsp;postgresql-42.2.5.jar in the same location, but the error remains.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked if it were possible that the error may be with Sqoop, and have removed the JDBC driver from /var/lib/sqoop, but I receive the same error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:13:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/87552#M92</guid>
      <dc:creator>Tipo33</dc:creator>
      <dc:date>2022-09-16T14:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/87619#M93</link>
      <description>&lt;P&gt;This error is more related to the java version currently running on your host. Check that you are running java version 8, and ensure your JAVA_HOME environment variable is set to this location.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 22:45:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/87619#M93</guid>
      <dc:creator>RobertM</dc:creator>
      <dc:date>2019-03-11T22:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/90228#M94</link>
      <description>&lt;P&gt;My apologies for the delay. I was occupied with an urgent, unrelated project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used your advice and Sqoop works fine now. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 01:47:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/90228#M94</guid>
      <dc:creator>Tipo33</dc:creator>
      <dc:date>2019-05-10T01:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/90281#M95</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/32598"&gt;@Tipo33&lt;/a&gt;&amp;nbsp;Thanks for letting us know you solved your issue. If you could mark the reply as the solution it would help others in a similar situation find it in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Screen Shot 2019-05-10 at 4.47.35 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5608i1887D5D337F00EB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2019-05-10 at 4.47.35 PM.png" alt="Screen Shot 2019-05-10 at 4.47.35 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:55:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/90281#M95</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2019-05-10T20:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/91789#M96</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Tipo33&amp;nbsp;&lt;BR /&gt;Could you please tell me how you solved this issue ...&lt;BR /&gt;I'm having the same problem without finding a solution...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 20:12:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/91789#M96</guid>
      <dc:creator>foal</dc:creator>
      <dc:date>2019-06-19T20:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unsupported major.minor version 52.0 in Sqoop 1 while connecting to a Postgres database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/282593#M210076</link>
      <description>&lt;P&gt;I had to install Java 8 and set JAVA_HOME to this&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 01:27:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unsupported-major-minor-version-52-0-in-Sqoop-1-while/m-p/282593#M210076</guid>
      <dc:creator>Tipo33</dc:creator>
      <dc:date>2019-11-11T01:27:52Z</dc:date>
    </item>
  </channel>
</rss>

