BigBug BigBug - 5 months ago 61
Java Question

JanusGraph with Solr

I am having problems with JanusGraph connecting to Solr: I have the following:
public static void main(String args[]) {
JanusGraph g ="/path/to/file/");

# Change to the directory where JanusGraph was extracted. Later commands
# use relative paths to the Solr config files shipped with the JanusGraph
# distribution.

# The name must be URL safe and should contain one dot/full-stop
# character. The part of the name after the dot must not conflict with
# any of JanusGraph's internal CF names. Starting the part after the dot
# "solr" will avoid a conflict with JanusGraph's internal CF names.
# Where to upload collection configuration and send CoreAdmin requests.

# The value of index.[X].solr.http-urls in JanusGraph's config file
# should match $SOLR_HOST and $CORE_NAME. For example, given the
# $CORE_NAME and $SOLR_HOST values above, JanusGraph's config file would
# contain (assuming "search" is the desired index alias):
# The stock JanusGraph config file conf/
# ships with this http-urls value.


GraphOfTheGods file:

I get the following error:

Exception in thread "main" java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.cassandra.thrift.CassandraThriftStoreManager

Caused by: org.janusgraph.diskstorage.TemporaryBackendException: Temporary failure in storage backend

Caused by: Connection refused (Connection refused)

How do i get rid of storage.backend=cassandrathrift and use solr as the backend? replacing "cassandrathrift" with solr as the document suggests fails for me. This results in the solr class not being found. Any help would be appreciated

Answer Source

Enable thrift server on cassandra

nodetool enablethrift
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download