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 07-09-2017 12:11 PM
I'm trying to execute test mr job on Sandbox 2.6
#export HADOOP_CLASSPATH=/usr/hdp/2.6.0.3-8/hadoop/lib
# yarn jar testmr.jar TestReadParquet /testdir/dir1 out_fileException in thread "main" java.lang.NoClassDefFoundError: parquet/Log at TestReadParquet.<clinit>(TestReadParquet.java:24) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.hadoop.util.RunJar.run(RunJar.java:226) at org.apache.hadoop.util.RunJar.main(RunJar.java:148)Caused by: java.lang.ClassNotFoundException: parquet.Log at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 5 more
Should I put parquet-common jars in HADOOP_CLASSPATH ?
find /usr/hdp/2.6.0.3-8/hadoop/lib/ -name "parquet*.jar" no files at this moment
Created 07-10-2017 05:39 AM
@Triffids G if you have hive installed on the sandbox you can copy
/usr/hdp/2.6.0.3-8/hive/lib/parquet-hadoop-bundle-1.8.1.jar and paste it to /usr/hdp/2.6.0.3-8/hadoop/lib and try running the job again and let me know how it goes.
Created 07-10-2017 05:39 AM
@Triffids G if you have hive installed on the sandbox you can copy
/usr/hdp/2.6.0.3-8/hive/lib/parquet-hadoop-bundle-1.8.1.jar and paste it to /usr/hdp/2.6.0.3-8/hadoop/lib and try running the job again and let me know how it goes.
Created 07-10-2017 03:26 PM
The jar copied, but I've got the same exception:
[root@sandbox target]# export HADOOP_CLASSPATH=/usr/hdp/2.6.0.3-8/hadoop/lib [root@sandbox target]# find /usr/hdp/2.6.0.3-8/hadoop/lib/ -name "parquet*.jar" /usr/hdp/2.6.0.3-8/hadoop/lib/parquet-hadoop-bundle-1.8.1.jar
[root@sandbox target]# yarn jar testmr-1.0-SNAPSHOT.jar TestReadParquet /testdir/dir1 /testdir/out_file Exception in thread "main" java.lang.NoClassDefFoundError: parquet/Log at TestReadParquet.<clinit>(TestReadParquet.java:24) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.hadoop.util.RunJar.run(RunJar.java:226) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) Caused by: java.lang.ClassNotFoundException: parquet.Log at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 5 more
Created 07-10-2017 03:52 PM
I've recompiled sources with parquet.version 1.6 and copied parquet-hadoop-bundle-1.6.0.jar. The job is working now, thanks !