accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dima Spivak (JIRA)" <>
Subject [jira] [Created] (ACCUMULO-4467) Random Walk broken because of unmet dependency on commons-math
Date Mon, 19 Sep 2016 21:42:20 GMT
Dima Spivak created ACCUMULO-4467:

             Summary: Random Walk broken because of unmet dependency on commons-math
                 Key: ACCUMULO-4467
             Project: Accumulo
          Issue Type: Bug
          Components: test
    Affects Versions: 1.7.2
            Reporter: Dima Spivak

When trying to run the Random Walk with {{LongEach.xml}} module, I hit a failure once we reach
the {{Shard.xml}} step:
16 19:52:05,146 [randomwalk.Framework] ERROR: Error during random walk
java.lang.Exception: Error running node Shard.xml
	at org.apache.accumulo.test.randomwalk.Module.visit(
	at org.apache.accumulo.test.randomwalk.Framework.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.accumulo.start.Main$
Caused by: java.lang.Exception: Error running node shard.BulkInsert
	at org.apache.accumulo.test.randomwalk.Module.visit(
	at org.apache.accumulo.test.randomwalk.Module$
	at org.apache.accumulo.test.randomwalk.Module$
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
	... 1 more
Caused by: java.lang.Exception: Failed to run map/red verify
	at org.apache.accumulo.test.randomwalk.shard.BulkInsert.sort(
	at org.apache.accumulo.test.randomwalk.shard.BulkInsert.visit(
	... 9 more

Digging into YARN to see why the MR job became unhappy, I see the following:
Error: java.lang.ClassNotFoundException: org.apache.commons.math.stat.descriptive.SummaryStatistics
at$ at$
at Method) at
at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass( at org.apache.accumulo.core.file.rfile.RFile$Writer.<init>(
at org.apache.accumulo.core.file.rfile.RFileOperations.openWriter(
at org.apache.accumulo.core.file.rfile.RFileOperations.openWriter(
at org.apache.accumulo.core.file.DispatchingFileFactory.openWriter(
at org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat$1.write(
at org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat$1.write(
at org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(
at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(
at org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(
at org.apache.hadoop.mapreduce.Reducer.reduce( at
at org.apache.hadoop.mapred.ReduceTask.runNewReducer( at
at org.apache.hadoop.mapred.YarnChild$ at
Method) at at
at org.apache.hadoop.mapred.YarnChild.main( 

It looks like [this commit|]
introduced a dependency on the {{commons-math}} JAR at runtime (in the RFiles Writer class),
but tests weren't updated to ensure that the same dependency would be put onto the classpath
of MR jobs submitted by Random Walk.

Props to [~busbey] for helping to figure out the root cause here. On a separate note, we may
want to start running this test before releases, as it appears this regression also snuck
into 1.8.0 and at least one 1.6 release (though, since I don't have any easy way to test this
against non-1.7.2 cluster, I'm limiting the affects versions to what I've confirmed myself).
Ping [~kturner], who might know the simplest way to fix this.

This message was sent by Atlassian JIRA

View raw message