AnsweredAssumed Answered

MapRDB java client connect to multiple clusters

Question asked by sachin.gorade on Jan 30, 2018
Latest reply on Feb 6, 2018 by sachin.gorade

Hi,

Is there any way we can connect to multiple MapR clusters using MapRDB java library? I could not find any example for the Java library which shows how to specify the cluster to connect to using MapRDB library.

 

e.g. Check the following code where it only accepts the path of the table and connects to configured server,

 

try (Table table = MapRDB.getTable(pathName)) { Document newDocument = MapRDB.newDocument(json); table.insert(newDocument);

 

but in our case we want to connect to different cluster depending upon user input.

Outcomes