You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2021/07/19 00:39:10 UTC

[orc] branch main updated: ORC-851: Fix CNFE in ORC tools uber jar (#753)

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new 657330a  ORC-851: Fix CNFE in ORC tools uber jar (#753)
657330a is described below

commit 657330a7a1bb3e87c3020fab057fefd03fe97228
Author: William Hyun <wi...@apache.org>
AuthorDate: Sun Jul 18 17:39:03 2021 -0700

    ORC-851: Fix CNFE in ORC tools uber jar (#753)
    
    ### What changes were proposed in this pull request?
    This PR aims to fix CNFE in ORC tools uber jar.
    
    ### Why are the changes needed?
    ```
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
    	at org.apache.orc.tools.Driver.main(Driver.java:101)
    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)
    	... 1 more
    ```
    ### How was this patch tested?
    Manual.
---
 java/tools/pom.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/java/tools/pom.xml b/java/tools/pom.xml
index d7847c1..6046426 100644
--- a/java/tools/pom.xml
+++ b/java/tools/pom.xml
@@ -58,11 +58,13 @@
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-common</artifactId>
       <version>${tools.hadoop.version}</version>
+      <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.hadoop</groupId>
       <artifactId>hadoop-hdfs</artifactId>
       <version>${tools.hadoop.version}</version>
+      <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.hive</groupId>
@@ -80,6 +82,7 @@
     <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
+      <scope>compile</scope>
     </dependency>
 
     <!-- test inter-project -->