Janus Solr configuration
Jason Plurad <plu...@...>
If you have a standalone Cassandra install, you can use cqlsh to drop the keyspace. For example, if you're using the default keyspace name:
If you are using Cassandra in the pre-packaged distribution, you can use the clean command on janusgraph.sh
As you've noticed, Solr 4.3 is not a supported version. You'd be best off the with latest 5.z version. On Friday, September 22, 2017 at 8:27:04 AM UTC-4, Ankur Goel wrote:
|
|
Ankur Goel <ankur...@...>
Problem resolved: default global value is Cloud, after clearing cassandra it works. Now when using following: graph.close(); JanusGraphCleanup.clear(graph); it is throwing below error, please help: 2017-09-22 17:54:06,739 ERROR [main] org.janusgraph.diskstorage.solr.SolrIndex: Unable to clear storage from index due to general error. java.lang.UnsupportedOperationException: Operation only supported for SolrCloud at org.janusgraph.diskstorage.solr.SolrIndex.clearStorage(SolrIndex.java:741) at org.janusgraph.diskstorage.Backend.clearStorage(Backend.java:593) at org.janusgraph.core.util.JanusGraphCleanup$1.call(JanusGraphCleanup.java:51) at org.janusgraph.core.util.JanusGraphCleanup$1.call(JanusGraphCleanup.java:48) at org.janusgraph.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:69) at org.janusgraph.diskstorage.util.BackendOperation.execute(BackendOperation.java:55)
at org.janusgraph.core.util.JanusGraphCleanup.clear(JanusGraphCleanup.java:48) is there any other way to clear graph. ~AnkurG On Friday, September 22, 2017 at 5:42:18 PM UTC+5:30, Ankur Goel wrote:
|
|
Ankur Goel <ankur...@...>
Hi, @ link http://docs.janusgraph.org/latest/solr.html and solr configuration provided with Janus looks supporting only Solr 5.X. I am using Solr 4.3, do we have any config to support that. My solr config: index.search.backend=solr index.search.solr.mode=http index.search.solr.http-urls=http://localhost:8983/solr Getting exception: 2017-09-22 17:38:12,819 WARN [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-09-22 17:38:12,920 WARN [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-09-22 17:38:14,133 ERROR [main] com.test.ankur.janusgraph.mains.JanusGraphMain: Exception ===java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.solr.SolrIndex
In http mode why it is trying to connect zookeeper. ~AnkurG |
|