Skip to content

Commit

Permalink
Fix zookeeperips.txt path
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosv5 committed Jan 21, 2018
1 parent b916a8c commit e6706f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BankClient/src/es/upm/dit/cnvr/server/ZookeeperObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ else if (event.getPath().equals(rootBarrier)) {
private static ArrayList<String> getIps(){
ArrayList<String> ips = new ArrayList<String>();
try {
Files.lines(Paths.get("zookeeperips.txt")).forEach(ips::add);
Files.lines(Paths.get("/root/zookeeperips.txt")).forEach(ips::add);
} catch (IOException e) {
ips.add("127.0.0.1");
System.out.println("Ips not found. Default: 127.0.0.1");
Expand Down

0 comments on commit e6706f3

Please sign in to comment.