<?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 Error: A JNI error has occurred, please check your installation and try again Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError: com/tinkerpop/blueprints/Graph in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-A-JNI-error-has-occurred-please-check-your/m-p/305164#M222335</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;While trying to take &lt;STRONG&gt;Atlas metadata Backup in HDP 3.1.0.0.0-78&lt;/STRONG&gt; using CLI getting below error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followed this official link: &lt;A href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.5/installing-atlas/content/grate_atlas_metadata_when_upgrading_to_hdp-3_0.html" target="_blank"&gt;https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.5/installing-atlas/content/grate_atlas_metadata_when_upgrading_to_hdp-3_0.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;atlas@xxxx-0x00x00xx:~$ python /usr/hdp/3.1.0.0-78/atlas/tools/migration-exporter/atlas_migration_export.py -d /atlas_metadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Java version:&amp;nbsp;&lt;STRONG&gt;1.8.0_232&lt;/STRONG&gt; and&amp;nbsp;Python &lt;STRONG&gt;2.7.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: A JNI error has occurred, please check your installation and try again&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: com/tinkerpop/blueprints/Graph&lt;BR /&gt;at java.lang.Class.getDeclaredMethods0(Native Method)&lt;BR /&gt;at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)&lt;BR /&gt;at java.lang.Class.privateGetMethodRecursive(Class.java:3048)&lt;BR /&gt;at java.lang.Class.getMethod0(Class.java:3018)&lt;BR /&gt;at java.lang.Class.getMethod(Class.java:1784)&lt;BR /&gt;at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)&lt;BR /&gt;at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: com.tinkerpop.blueprints.Graph&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:382)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:418)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:351)&lt;BR /&gt;... 7 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on this issue,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 07:46:06 GMT</pubDate>
    <dc:creator>ManjuN</dc:creator>
    <dc:date>2020-10-30T07:46:06Z</dc:date>
    <item>
      <title>Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/tinkerpop/blueprints/Graph</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-A-JNI-error-has-occurred-please-check-your/m-p/305164#M222335</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;While trying to take &lt;STRONG&gt;Atlas metadata Backup in HDP 3.1.0.0.0-78&lt;/STRONG&gt; using CLI getting below error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followed this official link: &lt;A href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.5/installing-atlas/content/grate_atlas_metadata_when_upgrading_to_hdp-3_0.html" target="_blank"&gt;https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.5/installing-atlas/content/grate_atlas_metadata_when_upgrading_to_hdp-3_0.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;atlas@xxxx-0x00x00xx:~$ python /usr/hdp/3.1.0.0-78/atlas/tools/migration-exporter/atlas_migration_export.py -d /atlas_metadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Java version:&amp;nbsp;&lt;STRONG&gt;1.8.0_232&lt;/STRONG&gt; and&amp;nbsp;Python &lt;STRONG&gt;2.7.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: A JNI error has occurred, please check your installation and try again&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: com/tinkerpop/blueprints/Graph&lt;BR /&gt;at java.lang.Class.getDeclaredMethods0(Native Method)&lt;BR /&gt;at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)&lt;BR /&gt;at java.lang.Class.privateGetMethodRecursive(Class.java:3048)&lt;BR /&gt;at java.lang.Class.getMethod0(Class.java:3018)&lt;BR /&gt;at java.lang.Class.getMethod(Class.java:1784)&lt;BR /&gt;at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)&lt;BR /&gt;at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: com.tinkerpop.blueprints.Graph&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:382)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:418)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:351)&lt;BR /&gt;... 7 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on this issue,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 07:46:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-A-JNI-error-has-occurred-please-check-your/m-p/305164#M222335</guid>
      <dc:creator>ManjuN</dc:creator>
      <dc:date>2020-10-30T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/tinkerpop/blueprints/Graph</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-A-JNI-error-has-occurred-please-check-your/m-p/306641#M222940</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80416"&gt;@ManjuN&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoClassDefFoundError &lt;/EM&gt;Is usually seen when required jar is missing. In this case atlas migration script is looking for a jar which contains class "com/tinkerpop/blueprints/Graph". This class definition is available in blueprints-core-2.6.0.jar which is available on HDP-2.6.x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# jar -tf /usr/hdp/2.6.&amp;lt;version&amp;gt;/atlas/server/webapp/atlas/WEB-INF/lib/blueprints-core-2.6.0.jar | grep -i "com/tinkerpop/blueprints/Graph"
com/tinkerpop/blueprints/Graph.class
com/tinkerpop/blueprints/GraphFactory.class
com/tinkerpop/blueprints/GraphQuery.class&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case, you are running a migration script from &lt;STRONG&gt;"3.1.0.0-78"&lt;/STRONG&gt; directory and that is the reason you are getting &lt;EM&gt;NoClassDefFoundError&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;python /usr/hdp/3.1.0.0-78/atlas/tools/migration-exporter/atlas_migration_export.py -d /atlas_metadata&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps in the document needs to be performed only if you are upgrading your cluster from 2.6.x to 3.0+ version, because &lt;SPAN&gt;In HDP-3.0+, Apache Atlas uses the JanusGraph graph database to store metadata objects whereas in earlier versions, Atlas used the Titan graph database for metadata storage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A title="Migrate Atlas metadata when upgrading from 2.6.x" href="https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.5/installing-atlas/content/grate_atlas_metadata_when_upgrading_to_hdp-3_0.html" target="_blank" rel="noopener"&gt;document&lt;/A&gt; says, "&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;Before upgrading HDP and Atlas, perform the following steps on the &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;HDP-2.x cluster&lt;/STRONG&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;If you are performing this step during a major upgrade (from HDP-2.6.x to HDP3.0+ or 2.6.5 to HDP-7.x), kindly run atlas_migration_export.py script from 2.6.x path. For minor versions, this step is not required.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 11:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-A-JNI-error-has-occurred-please-check-your/m-p/306641#M222940</guid>
      <dc:creator>gul_shad</dc:creator>
      <dc:date>2020-12-01T11:21:32Z</dc:date>
    </item>
  </channel>
</rss>

