Josh Elser created SLIDER-230:
---------------------------------
Summary: Can't run accumulo provider tests
Key: SLIDER-230
URL: https://issues.apache.org/jira/browse/SLIDER-230
Project: Slider
Issue Type: Bug
Components: providers/accumulo, test
Affects Versions: Slider 0.40
Reporter: Josh Elser
Priority: Minor
Fix For: Slider 0.50
Pulled down 0.40.0-rc0, tried to run the unit tests (not functional tests,
yet). Accumulo provider unit tests all failed because of missing HDFS resources
(not sure if it's hdfs-site.xml, the hdfs jar, or something else entirely).
I see the following error in the slider.out file for each test when it tries to
invoke {{accumulo init}}.
{noformat}
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - java.lang.NoClassDefFoundError:
org/apache/hadoop/hdfs/DistributedFileSystem
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
org.apache.accumulo.server.fs.VolumeManagerImpl.ensureSyncIsEnabled(VolumeManagerImpl.java:232)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
org.apache.accumulo.server.fs.VolumeManagerImpl.<init>(VolumeManagerImpl.java:82)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
org.apache.accumulo.server.fs.VolumeManagerImpl.get(VolumeManagerImpl.java:421)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
org.apache.accumulo.server.init.Initialize.main(Initialize.java:614)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2014-07-12 18:18:43,266 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.lang.reflect.Method.invoke(Method.java:606)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
org.apache.accumulo.start.Main$1.run(Main.java:141)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.lang.Thread.run(Thread.java:744)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - Caused by:
java.lang.ClassNotFoundException: org.apache.hadoop.hdfs.DistributedFileSystem
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.net.URLClassLoader$1.run(URLClassLoader.java:366)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.net.URLClassLoader$1.run(URLClassLoader.java:355)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.security.AccessController.doPrivileged(Native Method)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.net.URLClassLoader.findClass(URLClassLoader.java:354)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.lang.ClassLoader.loadClass(ClassLoader.java:425)
2014-07-12 18:18:43,267 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
org.apache.accumulo.start.classloader.AccumuloClassLoader$2.loadClass(AccumuloClassLoader.java:275)
2014-07-12 18:18:43,268 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - at
java.lang.ClassLoader.loadClass(ClassLoader.java:358)
2014-07-12 18:18:43,268 [accumulo-003] WARN workflow.ForkedProcessService
(LongLivedProcess.java:recordRecentLine(413)) - ... 10 more
{noformat}
Additionally, the test logic might be able to be improved as it was repeatedly
waiting for Accumulo to start when it was already in the {{FINISHED}} state. We
might be able to short-circuit the test logic to fail faster in this case.
--
This message was sent by Atlassian JIRA
(v6.2#6252)