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

jmark99 pushed a commit to branch 1.10
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.10 by this push:
     new 2ef1477  Add libraries in tool.sh script for 1.10 examples (#1737)
2ef1477 is described below

commit 2ef14774866cbc41b9e7a39b51648ecafed93f04
Author: Mark Owens <jmar...@apache.org>
AuthorDate: Thu Oct 15 12:01:04 2020 -0400

    Add libraries in tool.sh script for 1.10 examples (#1737)
    
    When attempting to run the 1.10.x Accumulo examples with Hadoop version 
3.x, there were several NoClassDefFoundError exceptions thrown when using the 
tool.sh script to run MR jobs. This PR updates the tool.sh script to add the 
necessary jar files to the lib path allowing the MR jobs to run successfully. 
The additions work with both Hadoop 2.x and Hadoop 3.x.
---
 assemble/bin/tool.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/assemble/bin/tool.sh b/assemble/bin/tool.sh
index b7a0b10..d03c8d5 100755
--- a/assemble/bin/tool.sh
+++ b/assemble/bin/tool.sh
@@ -56,6 +56,8 @@ JCOMMANDER_LIB="$LIB/jcommander.jar"
 COMMONS_VFS_LIB="$LIB/commons-vfs2.jar"
 GUAVA_LIB="$LIB/guava.jar"
 HTRACE_LIB="$LIB/htrace-core.jar"
+COMMONS_CONFIG_LIB="$LIB/commons-configuration.jar"
+COMMONS_LANG_LIB="$LIB/commons-lang.jar"
 
 USERJARS=" "
 for arg in "$@"; do
@@ -76,8 +78,8 @@ for arg in "$@"; do
    fi
 done
 
-LIB_JARS="$THRIFT_LIB,$CORE_LIB,$FATE_LIB,$ZOOKEEPER_LIB,$TRACE_LIB,$JCOMMANDER_LIB,$COMMONS_VFS_LIB,$GUAVA_LIB,$HTRACE_LIB"
-H_JARS="$THRIFT_LIB:$CORE_LIB:$FATE_LIB:$ZOOKEEPER_LIB:$TRACE_LIB:$JCOMMANDER_LIB:$COMMONS_VFS_LIB:$GUAVA_LIB:$HTRACE_LIB"
+LIB_JARS="$THRIFT_LIB,$CORE_LIB,$FATE_LIB,$ZOOKEEPER_LIB,$TRACE_LIB,$JCOMMANDER_LIB,$COMMONS_VFS_LIB,$GUAVA_LIB,$HTRACE_LIB,$COMMONS_CONFIG_LIB,$COMMONS_LANG_LIB"
+H_JARS="$THRIFT_LIB:$CORE_LIB:$FATE_LIB:$ZOOKEEPER_LIB:$TRACE_LIB:$JCOMMANDER_LIB:$COMMONS_VFS_LIB:$GUAVA_LIB:$HTRACE_LIB:$COMMONS_CONFIG_LIB:$COMMONS_LANG_LIB"
 
 for jar in $USERJARS; do
    LIB_JARS="$LIB_JARS,$jar"

Reply via email to