내가 JanusGraph이 SOLR 연결에 문제가 있어요와 :JanusGraph SOLR
application.java
public static void main(String args[]) {
JanusGraph g = JanusGraphFactory.open("/path/to/file/janusgraph-solr.properties");
GraphOfTheGodsFactory.load(g);
g.close();
}
janushgraph-solr.properties
# Change to the directory where JanusGraph was extracted. Later commands
# use relative paths to the Solr config files shipped with the JanusGraph
# distribution.
cd $JANUSGRAPH_HOME
# 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.
CORE_NAME=testt
# Where to upload collection configuration and send CoreAdmin requests.
SOLR_HOST=localhost:8983
# 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):
#
index.search.solr.http-urls=http://localhost:8983/solr/testt
#
# The stock JanusGraph config file conf/janusgraph-cassandra-solr.properties
# ships with this http-urls value.
storage.backend=cassandrathrift
GraphOfTheGods 파일 : 나는 얻을 https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/example/GraphOfTheGodsFactory.java
나는 다음과 같은이 다음 오류 :
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: java.net.ConnectException: Connection refused (Connection refused)
어떻게 storage.backend = cassandrathrift를 없애고 솔라를 백엔드로 사용합니까? 문서로 "cassandrathrift"solr 대체 나에게 실패를 제안합니다. 그 결과 solr 클래스가 발견되지 않습니다. 어떤 도움을
'nodetool enablethrift'를 사용하여 cassandra에서 중고품 서버를 사용하십시오. –
@AshrafulIslam 답변을 수락 할 수 있습니다! – BigBug