janusgraph icon indicating copy to clipboard operation
janusgraph copied to clipboard

unable to canonicalize address xxx:2181 because it's not resolvable

Open panda0120 opened this issue 1 year ago • 2 comments

I create a graph by ConfiguredGraphFactory.createConfiguration(new MapConfiguration(map)); But the storage.hostname is wrong in the map, then the janusgraph log error like "unable to canonicalize address xxx:2181 because it's not resolvable".Someone knows how to fix it?I try to update the configuration or drop it,but it's not working

groovy code :

map = new HashMap<String, Object>();
map.put("storage.backend", "hbase");
map.put("storage.hostname", "node1");
map.put("index.search.backend", "elasticsearch");
map.put("index.search.hostname", "172.17.0.130:9200);
map.put("storage.batch-loading", true);
map.put("storage.buffer-size", "102400");
map.put("graph.set-vertex-id", true);
map.put("graph.allow-custom-vid-types", true);
map.put("schema.default", "none");
map.put("graph.graphname", graphName);
ConfiguredGraphFactory.createConfiguration(new MapConfiguration(map));
  • Version: 1.0.0

  • Storage Backend: hbase

  • Mixed Index Backend: elasticsearch

  • Link to discussed bug:

  • Expected Behavior:

  • Current Behavior: unable to canonicalize address node1:2181 because it's not resolvable

  • Steps to Reproduce: execute the groovy code above

panda0120 avatar Sep 01 '24 10:09 panda0120

I find the reason.It's because I execute a script to create and open the graph,when the hostname is wrong, the script keep hunging on the open api in the janusgraph server, Even my java client is closed. Then when I execute ConfiguredGraphFactory.updateConfiguration,the server will keep hunging until the timeout error is throwed; I want to know how to restore my janusgraph server.

panda0120 avatar Sep 02 '24 12:09 panda0120

Hello, Your problem is that index.search.hostname is supposed to only contain the hostname(s), not the hostname+port. The port has to go in the index.search.port property.

unautre avatar Sep 28 '24 09:09 unautre