Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 02-12-2017 05:40 AM
By spending some more time reading blogs:
I found solution as below:
downloaded java-json.jar file from location http://www.java2s.com/Code/Jar/j/Downloadjavajsonjar.htm
stored this jar file at location /usr/lib/sqoop/lib/java-json.jar
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?
when searched for available json jar files I found below list
./usr/lib/hadoop/lib/jersey-json-1.9.jar
./usr/lib/hadoop-yarn/lib/jersey-json-1.9.jar
./usr/lib/hadoop-mapreduce/jersey-json-1.9.jar
./usr/lib/hadoop-0.20-mapreduce/lib/jersey-json-1.9.jar
./usr/lib/hive/lib/metrics-json-3.0.2.jar
./usr/lib/sentry/lib/jersey-json-1.9.jar
./usr/lib/sentry/lib/metrics-json-3.0.2.jar
./usr/lib/kite/lib/kite-morphlines-json-1.0.0-cdh5.10.0.jar
./usr/lib/kite/lib/metrics-json-3.0.2.jar
Any expert advise appreciated.
Thank you!