Janusgraph: CQLStoreManager doesn't support storage.port property

Created on 24 Apr 2018  路  2Comments  路  Source: JanusGraph/janusgraph

On the dev server, I would like to easily switch between different Cassandra and Scylla backends. I just realized the storage.port is not supported. Does any store manager support it?
Btw: same problem with ElasticSearch - index.[X].port.

kinquestion

All 2 comments

I just tested this out, and it works fine for me.

In cassandra.yaml I updated native_transport_port: 9043 (default is 9042), then I connected to a graph with:

graph = JanusGraphFactory.build().
    set('storage.backend', 'cql').
    set('storage.hostname', 'localhost').
    set('storage.port', 9043).
    set('storage.cql.keyspace', 'test').
    open()

If you are using cassandra or cassandrathrift, you need to update the Thrift port in the cassandra.yaml. For example, I tried rpc_port: 9161 (default is 9160), then I connected to a graph with:

graph = JanusGraphFactory.build().
    set('storage.backend', 'cassandra').
    set('storage.hostname', 'localhost').
    set('storage.port', 9161).
    set('storage.cassandra.keyspace', 'test').
    open()

Thank you Jason!!!
Both storage.port and index.search.port is working fine now. I found the issue in my code.
Rado

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amyth picture amyth  路  4Comments

amcp picture amcp  路  5Comments

jerryjch picture jerryjch  路  3Comments

porunov picture porunov  路  4Comments

jerryjch picture jerryjch  路  5Comments