pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/apache/orc/commit/a512329cee6d42179a3165ca3302247cf1ec269a

rimer-b48faa60c69660fa.css" /> ORC-902: Fix hadoop-common dependency scope in orc-example (#808) · apache/orc@a512329 · GitHub
Skip to content

Commit a512329

Browse files
authored
ORC-902: Fix hadoop-common dependency scope in orc-example (#808)
### What changes were proposed in this pull request? run orc-example, Throw an exception ```log Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632) Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 7 more ``` mvn dependency:tree in orc-example ```log ... [INFO] +- org.apache.hadoop:hadoop-common:jar:2.2.0:provided ... ``` Need to set scope to compile in orc-example/pom.xml ### Why are the changes needed? The example of orc-example cannot be run ### How was this patch tested? Manual.
1 parent 117e87c commit a512329

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

java/examples/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@
5050
<dependency>
5151
<groupId>org.apache.hadoop</groupId>
5252
<artifactId>hadoop-common</artifactId>
53+
<scope>compile</scope>
5354
</dependency>
5455
<dependency>
5556
<groupId>org.apache.hadoop</groupId>
5657
<artifactId>hadoop-hdfs</artifactId>
58+
<scope>compile</scope>
5759
</dependency>
5860
<dependency>
5961
<groupId>org.apache.hive</groupId>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy