accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/6] accumulo git commit: ACCUMULO-4032 Monitor ignores the hostname supplied in cmdline.
Date Mon, 26 Oct 2015 04:14:39 GMT
ACCUMULO-4032 Monitor ignores the hostname supplied in cmdline.

Monitor should not overwrite the hostname supplied in command line argument `-a` with an autodetected
hostname.

Signed-off-by: Josh Elser <elserj@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/b1510fd3
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/b1510fd3
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/b1510fd3

Branch: refs/heads/1.7
Commit: b1510fd326eb4d98fcbcc4c26e97d8f933682694
Parents: ddace50
Author: volth <volth@webmaster.ms>
Authored: Thu Oct 15 18:16:22 2015 +0000
Committer: Josh Elser <elserj@apache.org>
Committed: Mon Oct 26 00:13:46 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/accumulo/monitor/Monitor.java        | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/b1510fd3/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java
----------------------------------------------------------------------
diff --git a/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java b/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java
index 25ee34f..77e2400 100644
--- a/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java
+++ b/server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java
@@ -18,7 +18,6 @@ package org.apache.accumulo.monitor;
 
 import static com.google.common.base.Charsets.UTF_8;
 
-import java.net.InetAddress;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
@@ -480,8 +479,6 @@ public class Monitor {
     server.start();
 
     try {
-      hostname = InetAddress.getLocalHost().getHostName();
-
       log.debug("Using " + hostname + " to advertise monitor location in ZooKeeper");
 
       String monitorAddress = HostAndPort.fromParts(hostname, server.getPort()).toString();


Mime
View raw message