JanusGraph / JanusGraph/janusgraph
unable to canonicalize address xxx:2181 because it's not resolvable
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 1.2k
- Avg merge
- 13h 53m
- Merged PRs (30d)
- 6
Description
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();
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
Contributor guide
Research direction
Start by reproducing the ConfiguredGraphFactory.createConfiguration call with the supplied MapConfiguration and the invalid storage.hostname value. Trace how the storage and index hostnames are retained after configuration creation, then verify the expected behavior for updating or dropping that configuration and the resulting address resolution error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, java
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100