Skip to content


Brad Bebee edited this page Feb 13, 2020 · 1 revision

This page provides guidelines for running various unit tests against a bigdata federation. The basic procedure involves setup of a 2-DS (data service) federation running on a single node. This setup is sufficient to exercise most aspects of scale-out, including service discovery, RMI, NIO, and cross data service sharded index operations. However, note that index sharding is driven by the data scale so it is not really possible to exercise a bigdata federation at the small data scales used by the unit tests.

Setup 2-DS federation on one node

The following procedure may be used to start a federation on a single node. This assumes that you have the source code checked out in the REL directory. You may need to edit the FED, NAS, LAS, REL, and DIST variables for your environment.


# Source directory for release version.

# Distribution specific version.

# create the DIST
cd $REL
ant ant-install-artifact

# extract DIST to DIST specific directory
rm -rf /nas/bigdata/${DIST}
tar xzvof DIST.${DIST}.tgz -C /nas/bigdata/

cd /nas/bigdata/${DIST}

# remove the existing install ($LAS is cleared by bigdata destroy)
rm -rf $NAS

# install distribution.
ant ant-install

# setup environment
source $NAS/bin/bigdataenv

# Replace any edits to the bigdataCluster config file before starting the cluster.
# See $NAS/config/bigdataCluster.
bigdata start

# Note: Typically, this is done in a second terminal window so you can view error messages during startup, if any.
tail -f $errorLog

SPARQL Test Suite

The class com.bigdata.rdf.sail.tck.BigdataFederationSparqlTest may be used to run the SPARQL test suite. Instructions for running this test are in the javadoc at the top of the class. Basically, running the class looks like this:

java -cp ... -server -Dbigdata.configuration=/nas/bigdata/benchmark/config/bigdataStandalone.config com.bigdata.rdf.sail.tck.BigdataFederationSparqlTest

NanoSparqlServer Test Suite

Clone this wiki locally