<?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 import exception java.lang.NoClassDefFoundError: org/json/JSONObject in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/60364#M54148</link>
    <description>&lt;P&gt;I had this problem as well with sqoop and found a way to solve this without downloading a jar from somewhere in the internet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sqoop tries to get the classpath from several scripts (hbase classpath, hcat -classpath, accumulo classpath) and adds them to the own classpath. As it seems sqoop is not complaining that it can not find hcat and so it skips it silently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved this problem with installing hive-hcatalog and now sqoop adds the hive classpath over hcat -classpath as well and can use the JSONObject class that is included in hive-exec.jar (CDH5.11).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 11:05:34 GMT</pubDate>
    <dc:creator>juergen_thomann</dc:creator>
    <dc:date>2017-09-27T11:05:34Z</dc:date>
    <item>
      <title>Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50758#M54140</link>
      <description>&lt;P&gt;Hello There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured CDH5.10.0 (Manual configuration mode using YUM) on CentOS 7. It is a Pseudo distributed mode for learning purpose.&lt;/P&gt;&lt;P&gt;I have opted for Sqoop 1 and below is the sqoop version:&lt;/P&gt;&lt;P&gt;Sqoop 1.4.6-cdh5.10.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to import table from MySQL (mysql&amp;nbsp; Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using&amp;nbsp; EditLine wrapper) I'm getting below java exception:&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to execute few other sqoop commands like list-databases, list-tables, eval. All these commands returned expected results without any errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is sqoop statement and the error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$ sqoop import --connect jdbc:mysql://localhost/employees --table employees --username xxx -P&lt;/STRONG&gt;&lt;BR /&gt;Warning: /usr/lib/sqoop/../hbase does not exist! HBase imports will fail.&lt;BR /&gt;Please set $HBASE_HOME to the root of your HBase installation.&lt;BR /&gt;Warning: /usr/lib/sqoop/../hcatalog does not exist! HCatalog jobs will fail.&lt;BR /&gt;Please set $HCAT_HOME to the root of your HCatalog installation.&lt;BR /&gt;Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.&lt;BR /&gt;Please set $ACCUMULO_HOME to the root of your Accumulo installation.&lt;BR /&gt;17/02/12 17:44:39 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.10.0&lt;BR /&gt;Enter password:&lt;BR /&gt;17/02/12 17:44:43 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.&lt;BR /&gt;17/02/12 17:44:43 INFO tool.CodeGenTool: Beginning code generation&lt;BR /&gt;Sun Feb 12 17:44:43 IST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.&lt;BR /&gt;17/02/12 17:44:44 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `employees` AS t LIMIT 1&lt;BR /&gt;17/02/12 17:44:44 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `employees` AS t LIMIT 1&lt;BR /&gt;17/02/12 17:44:44 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/lib/hadoop-mapreduce&lt;BR /&gt;Note: /tmp/sqoop-yj/compile/50d8bdd75972961328544c90d3d8d539/employees.java uses or overrides a deprecated API.&lt;BR /&gt;Note: Recompile with -Xlint:deprecation for details.&lt;BR /&gt;17/02/12 17:44:45 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-yj/compile/50d8bdd75972961328544c90d3d8d539/employees.jar&lt;BR /&gt;17/02/12 17:44:45 WARN manager.MySQLManager: It looks like you are importing from mysql.&lt;BR /&gt;17/02/12 17:44:45 WARN manager.MySQLManager: This transfer can be faster! Use the --direct&lt;BR /&gt;17/02/12 17:44:45 WARN manager.MySQLManager: option to exercise a MySQL-specific fast path.&lt;BR /&gt;17/02/12 17:44:45 INFO manager.MySQLManager: Setting zero DATETIME behavior to convertToNull (mysql)&lt;BR /&gt;17/02/12 17:44:45 INFO mapreduce.ImportJobBase: Beginning import of employees&lt;BR /&gt;17/02/12 17:44:45 INFO Configuration.deprecation: mapred.job.tracker is deprecated. Instead, use mapreduce.jobtracker.address&lt;BR /&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.util.SqoopJsonUtil.getJsonStringforMap(SqoopJsonUtil.java:43)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.SqoopOptions.writeProperties(SqoopOptions.java:767)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.mapreduce.JobBase.putSqoopOptionsToConfiguration(JobBase.java:388)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.mapreduce.JobBase.createJob(JobBase.java:374)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:256)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:692)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:127)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:507)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:615)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.Sqoop.run(Sqoop.java:143)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.sqoop.Sqoop.main(Sqoop.java:236)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.json.JSONObject&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.URLClassLoader.findClass(URLClassLoader.java:381)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:424)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:357)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;... 15 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have spent 3-4 hours searching for solution in community topics as well some other blogs, but could resolve the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request you all experts to please guide how to get rid of this exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;YJ&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:03:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50758#M54140</guid>
      <dc:creator>YogeshJadhav</dc:creator>
      <dc:date>2022-09-16T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50759#M54141</link>
      <description>&lt;P&gt;By spending some more time reading blogs:&lt;/P&gt;&lt;P&gt;I found solution as below:&lt;/P&gt;&lt;P&gt;downloaded java-json.jar file from location &lt;A href="http://www.java2s.com/Code/Jar/j/Downloadjavajsonjar.htm" target="_blank"&gt;http://www.java2s.com/Code/Jar/j/Downloadjavajsonjar.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;stored this jar file at location /usr/lib/sqoop/lib/java-json.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I wonder, if JSONObject class is required to process sqoop import, why it is not found in any json jar found under hadoop classpath or anyother component classpath?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when searched for available json jar files I found below list&lt;/P&gt;&lt;P&gt;./usr/lib/hadoop/lib/jersey-json-1.9.jar&lt;BR /&gt;./usr/lib/hadoop-yarn/lib/jersey-json-1.9.jar&lt;BR /&gt;./usr/lib/hadoop-mapreduce/jersey-json-1.9.jar&lt;BR /&gt;./usr/lib/hadoop-0.20-mapreduce/lib/jersey-json-1.9.jar&lt;BR /&gt;./usr/lib/hive/lib/metrics-json-3.0.2.jar&lt;BR /&gt;./usr/lib/sentry/lib/jersey-json-1.9.jar&lt;BR /&gt;./usr/lib/sentry/lib/metrics-json-3.0.2.jar&lt;BR /&gt;./usr/lib/kite/lib/kite-morphlines-json-1.0.0-cdh5.10.0.jar&lt;BR /&gt;./usr/lib/kite/lib/metrics-json-3.0.2.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any expert advise appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 13:40:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50759#M54141</guid>
      <dc:creator>YogeshJadhav</dc:creator>
      <dc:date>2017-02-12T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50765#M54142</link>
      <description>&lt;P&gt;Jersey is basically a&amp;nbsp;&lt;SPAN&gt;RESTful Web Services framework . Jersey json &amp;nbsp;jar usess another piece of code to convert to / &amp;nbsp;from Object from Json . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JSONObject &amp;nbsp;on the other hand is a class used to decode the Json object . &amp;nbsp;Each jar have their own set of implentation for class , interface , abstard method etc it &amp;nbsp;should be lossely coupled . Thats the reason we are not able to find JsonObject class in those jars . Different implementation and purpose.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 03:23:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50765#M54142</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-02-13T03:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50810#M54143</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16544"&gt;@csguna&lt;/a&gt;Thank you for information &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but I'm not convinced, why java-json.jar was missing? I believe, I would have missed any step while installing/configuring sqoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding java-json.jar my problem have been solved.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 18:30:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/50810#M54143</guid>
      <dc:creator>YogeshJadhav</dc:creator>
      <dc:date>2017-02-13T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/55372#M54144</link>
      <description>&lt;P&gt;This solution dinn work for my 5.10 quick start. I solved by copying to below location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;download&amp;nbsp;&lt;SPAN&gt;java-json.jar and copy to&amp;nbsp;&lt;STRONG&gt; /opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo cp /home/cloudera/Downloads/java-json.jar&lt;STRONG&gt; /opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 10:50:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/55372#M54144</guid>
      <dc:creator>mohanln</dc:creator>
      <dc:date>2017-06-02T10:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/56815#M54145</link>
      <description>&lt;P&gt;Hi.. I am also facing similar kind of problem when I am trying to use sqoop job --create function and below is the command and error I am facing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;[hdfs@master root]$ sqoop job --create shortcut -- import --connect jdbc:mysql://master.cluster.com:3306/hadoop_example?zeroDateTimeBehavior=convertToNull --username root --table school --driver com.mysql.jdbc.Driver --incremental append --last-value '2017-05-29 02:02:51.0' --check-column timestamp -m 1 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Warning: /usr/hdp/2.5.0.0-1245/hbase does not exist! HBase imports will fail.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Please set $HBASE_HOME to the root of your HBase installation.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Warning: /usr/hdp/2.5.0.0-1245//sqoop/../hcatalog does not exist! HCatalog jobs will fail.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Please set $HCAT_HOME to the root of your HCatalog installation.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Warning: /usr/hdp/2.5.0.0-1245/accumulo does not exist! Accumulo imports will fail.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Please set $ACCUMULO_HOME to the root of your Accumulo installation.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;17/07/03 00:17:10 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.5.0.0-1245&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.util.SqoopJsonUtil.getJsonStringforMap(SqoopJsonUtil.java:42)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.SqoopOptions.writeProperties(SqoopOptions.java:759)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.createInternal(HsqldbJobStorage.java:399)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.metastore.hsqldb.HsqldbJobStorage.create(HsqldbJobStorage.java:379)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.tool.JobTool.createJob(JobTool.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.tool.JobTool.run(JobTool.java:294)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.Sqoop.run(Sqoop.java:147)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.Sqoop.runTool(Sqoop.java:225)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at org.apache.sqoop.Sqoop.main(Sqoop.java:243)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;Caused by: java.lang.ClassNotFoundException: org.json.JSONObject&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:381)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:424)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:357)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;... 12 more&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to follow your suggestion to download the java-json.jar file and placed it /usr/lib/sqoop/lib/java-json.jar.(in my system only /usr/lib is avaliable. I manually created 2 folder /sqoop/lib.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you can help me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 05:10:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/56815#M54145</guid>
      <dc:creator>AvinashBhetala</dc:creator>
      <dc:date>2017-07-03T05:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/56818#M54146</link>
      <description>&lt;P&gt;nah&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the repo yum whether you have installed Sqoop client .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo yum install sqoop&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if not create one . You dont have to create those folders . mate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;side note &amp;nbsp;anytime when you place any jar maually check the permission and ownershipp .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 06:34:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/56818#M54146</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-07-03T06:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/56846#M54147</link>
      <description>&lt;P&gt;thank you for your help. I installed sqoop client by using AMBARI-SERVER. I am able to run all Sqoop commands normally without any issue and I installed the sqoop again as you suggested. But still no luck..&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:47:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/56846#M54147</guid>
      <dc:creator>AvinashBhetala</dc:creator>
      <dc:date>2017-07-03T13:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/60364#M54148</link>
      <description>&lt;P&gt;I had this problem as well with sqoop and found a way to solve this without downloading a jar from somewhere in the internet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sqoop tries to get the classpath from several scripts (hbase classpath, hcat -classpath, accumulo classpath) and adds them to the own classpath. As it seems sqoop is not complaining that it can not find hcat and so it skips it silently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved this problem with installing hive-hcatalog and now sqoop adds the hive classpath over hcat -classpath as well and can use the JSONObject class that is included in hive-exec.jar (CDH5.11).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:05:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/60364#M54148</guid>
      <dc:creator>juergen_thomann</dc:creator>
      <dc:date>2017-09-27T11:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import exception java.lang.NoClassDefFoundError: org/json/JSONObject</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/91538#M54149</link>
      <description>&lt;P&gt;sudo cp /home/cloudera/Downloads/java-json.jar&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above solution worked for me too. Thank you&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 18:31:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-exception-java-lang-NoClassDefFoundError-org/m-p/91538#M54149</guid>
      <dc:creator>Dileep</dc:creator>
      <dc:date>2019-06-12T18:31:02Z</dc:date>
    </item>
  </channel>
</rss>

