Python module that provides API access to the NEXUS datastores.
Download and unzip Apache Solr 5.3.1
$SOLR_INSTALL_DIR/server/solr
$SOLR_INSTALL_DIR/server/solr
$JTS_ZIP/lib/jts-1.13.jar
and $JTS_ZIP/lib/jtsio-1.13.jar
into $SOLR_INSTALL_DIR/server/lib/ext
$SOLR_INSTALL_DIR/bin/solr start
then open up the admin page (http://localhost:8983) to make sure there are no errorsDownload and unzip Apache Cassandra 2.2.x
$CASSANDRA_INSTALL_DIR/bin/cassandra
$CASSANDRA_INSTALL_DIR/bin/cqlsh
NOTE This project has a dependency on nexus-messages. Make sure nexus-messages is installed in the same environment you will be using for this module.
Setup a separate conda env or activate an existing one
conda create --name nexus-data-access python source activate nexus-data-access
Install conda dependencies
conda install numpy
Install cython pip install cython
Run python setup.py install
Run python test/nexustilestest.py
to validate the installation worked
If you get an error like the following
/Users/user/.pyxbld/temp.macosx-10.5-x86_64-2.7/pyrex/cassandra/numpy_parser.c:266:10: fatal error: 'numpyFlags.h' file not found ... ImportError: Building module nexustiles.dao.CassandraProxy failed: ['ImportError: Building module cassandra.numpy_parser failed: ["CompileError: command \'gcc\' failed with exit status 1\\n"]\n']
It can be fixed by copying the numpyFlags.h
file from the cassandra
library to the python include library
cp /path/to/anaconda/env/lib/python2.7/site-packages/cassandra/numpyFlags.h /path/to/anaconda/env/include/python2.7/numpyFlags.h