Search code examples
datastaxdatastax-enterprisedatastax-startupdatastax-enterprise-graph

Integrate Datastax solr and Graph


Our architecture has 3 nodes in Datacenter: Solr , with SOLR_ENABLED=1

Datacenter: Solr
UN  192.168.8.22  57.02 MB   1          ?       396*****  rack1
UN  192.168.8.23  56.72 MB   1          ?       7365****  rack1
UN  192.168.8.24  59.33 MB   1          ?       92d7****  rack1

We need to integrate Graph to Datastax ,so enabled GRAPH_ENABLED=1 in 192.168.8.22 and our architecture now look like below with 2 DC,Now solr is not working in 192.168.8.22

Datacenter: SearchGraph
UN  192.168.8.22  57.02 MB   1            ?       396***** rack1

.

Datacenter: Solr
UN  192.168.8.23  56.72 MB   1            ?       7365****  rack1
UN  192.168.8.24  59.33 MB   1            ?       92d7****  rack1

1) Can i integrate Solr and graph with in same DC without losing existing data ?

2) Do we need to create separate datacenter node for grap and solr ?


Solution

  • Finally Solved the issue

    1) Yes we can integrate Solr and graph on fresh nodes at same DC

    Datacenter: SearchGraph

    UN 192.168.8.10 116.25 KB 1 ? 9f9909** rack1

    UN 192.168.8.11 134.91 KB 1 ? 532344** rack1

    UN 192.168.8.12 124.31 KB 1 ? efd6dd** rack1

    If data already exist add

     JVM_OPTS="$JVM_OPTS -Dcassandra.replace_address=**NodeIP**"
    

    to the end of file cassandra-env.sh

    2) No,Graph and Solr can be integrate within the same DC. Edit file /etc/default/dse and change as mentioned below

    SOLR_ENABLED=1
    
    GRAPH_ENABLED=1