1

I am installing GriddB server as outlined in their official site using Java and I am trying to connect to a cluster. In the documentation, the cluster name is set as important, and for the rest, the default values are used. Initially after installation, my gs_cluster.json configuration looked as belowenter image description here

However, the Java application could not connect, so I added the values that I thought were missing,namely:

"notificationAddress": "239.0.0.1",
"notificationPort":20000,

and made the final gs_cluster.json look as below.

enter image description here

However, nothing changed as there is not any connection yet.I have verified that my griddb server is running. Is there anything I am making wrong here? Is there a specific way to configure the gs_cluster.json file or any other related file for the connection to work ? Attached is the Java code showing how I tried to establish a connection using key-value properties.

    Properties props = new Properties();
    props.setProperty("notificationAddress", "239.0.0.1");
    props.setProperty("notificationPort", "20000");
    props.setProperty("clusterName", "myCluster");
    props.setProperty("user", "admin");
    props.setProperty("password", "admin");
    GridStore store = GridStoreFactory.getInstance().getGridStore(props);

0 Answers0