In test/system/bench/lib/slaves.py, change the line "from lib.path
import accumulo" to "from lib.path import *". That fixed the error for me.
A word of warning about code-rot in these tests. I remember trying to
get them fixed up in the 1.4 time frame, and I'm not sure if they've
gotten much love since. By all means though, let us know where they're
broken and we'll take care of 'em.
I'll open an issue for this bug. Thanks!
- Josh
Fagan, Michael wrote:
Hi,
I am trying to the run the 1.6.1 benchmark tests in
$ACCUMULO_HOME/test/system/bench
And getting the following error on a centos 6.4 machine:
./run.py -u cloud -p secret -z zk1:2181 -i DEV CloudStone1
Test the speed at which we can check that accumulo is up and we can reach
all the slaves. Lower is better. ... ERROR
======================================================================
ERROR: Test the speed at which we can check that accumulo is up and we can
reach all the slaves. Lower is better.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./cloudstone1/cloudstone1.py", line 35, in runTest
accumulo('bin', 'accumulo'))
File "/usr/lib/accumulo/test/system/bench/lib/slaves.py", line 86, in
runAll
slaves = slaveNames()
File "/usr/lib/accumulo/test/system/bench/lib/slaves.py", line 27, in
slaveNames
return [s.strip() for s in open(accumuloConf('slaves'))]
NameError: global name 'accumuloConf' is not defined
----------------------------------------------------------------------
Ran 1 test in 4.897s
FAILED (errors=1)
INFO:test.bench: CloudStone1: 4.90
I have not been able to find where accumuloConf is defined.
Regards,
Mike Fagan
On 11/11/14, 8:05 AM, "Fagan, Michael"<[email protected]>
wrote:
Josh,
Thanks, manual test suites are exactly what I need.
Regards,
Mike Fagan
On 11/10/14, 4:01 PM, "Josh Elser"<[email protected]> wrote:
Hi Mike,
All of the fully automated test suites are standalone tests; they aren't
presently capable of using an existing installation. These are what are
referred to as our unit and integration tests.
Unit tests: run `mvn package`
Integration tests: run `mvn verify` (note that the verify lifecycle
phase also includes the unit tests.
The strong majority of integration tests use MiniAccumuloCluster to get
an accurate testing environment.
We also have a collection of "manual" test suites, the most common of
which are the continuous ingest and randomwalk tests. These exist in
https://github.com/apache/accumulo/tree/master/test/system, continuous
and randomwalk, respectively. These are the long running tests that the
community runs before we make a new major release (e.g. 1.6.0)
Both of these tests expect an instance of Accumulo up and running which
you provide connection information to (ZooKeepers, instance name, user&
password). Both suites are also capable of running under "agitation"
which can indiscriminately kill Accumulo processes and HDFS datanodes.
Both of these test suites contain READMEs -- let us know if any of the
documentation is unclear or lacking. Happy to help you get them up and
running.
- Josh
Fagan, Michael wrote:
Hi,
I am looking for instructions on running the Accumulo test suites to
verify my build works properly in my Hadoop environment.
Can someone point me in the right direction?
Regards,
Mike Fagan