Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
panda0120 opened this issue Sep 1, 2024 · 2 comments
Open

Comments

@panda0120
Copy link

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 panda0120 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@panda0120
Copy link
Author

panda0120 commented Sep 2, 2024

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 panda0120 reopened this Sep 2, 2024
@unautre
Copy link
Contributor

unautre commented Sep 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants