Browse Source

ZOOKEEPER-2256: Zookeeper is not using specified JMX port in zkEnv.sh(Arshad Mohammad via rakeshr)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1698058 13f79535-47bb-0310-9956-ffa450edef68
Rakesh Radhakrishnan 9 years ago
parent
commit
2c163cb3cd
2 changed files with 15 additions and 11 deletions
  1. 3 0
      CHANGES.txt
  2. 12 11
      bin/zkServer.sh

+ 3 - 0
CHANGES.txt

@@ -161,6 +161,9 @@ BUGFIXES:
   from zoo.cfg on Solaris 10 (grep issue, manifests as FAILED TO WRITE PID)
   from zoo.cfg on Solaris 10 (grep issue, manifests as FAILED TO WRITE PID)
   (Chris Nauroth via rgs)
   (Chris Nauroth via rgs)
 
 
+  ZOOKEEPER-2256: Zookeeper is not using specified JMX port in zkEnv.sh
+  (Arshad Mohammad via rakeshr)
+
 IMPROVEMENTS:
 IMPROVEMENTS:
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)  
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)  
 
 

+ 12 - 11
bin/zkServer.sh

@@ -21,6 +21,18 @@
 # relative to the canonical path of this script.
 # relative to the canonical path of this script.
 #
 #
 
 
+
+# use POSTIX interface, symlink is followed automatically
+ZOOBIN="${BASH_SOURCE-$0}"
+ZOOBIN="$(dirname "${ZOOBIN}")"
+ZOOBINDIR="$(cd "${ZOOBIN}"; pwd)"
+
+if [ -e "$ZOOBIN/../libexec/zkEnv.sh" ]; then
+  . "$ZOOBINDIR"/../libexec/zkEnv.sh
+else
+  . "$ZOOBINDIR"/zkEnv.sh
+fi
+
 # See the following page for extensive details on setting
 # See the following page for extensive details on setting
 # up the JVM to accept JMX remote management:
 # up the JVM to accept JMX remote management:
 # http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
 # http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
@@ -63,17 +75,6 @@ else
     ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain"
     ZOOMAIN="org.apache.zookeeper.server.quorum.QuorumPeerMain"
 fi
 fi
 
 
-# use POSTIX interface, symlink is followed automatically
-ZOOBIN="${BASH_SOURCE-$0}"
-ZOOBIN="$(dirname "${ZOOBIN}")"
-ZOOBINDIR="$(cd "${ZOOBIN}"; pwd)"
-
-if [ -e "$ZOOBIN/../libexec/zkEnv.sh" ]; then
-  . "$ZOOBINDIR"/../libexec/zkEnv.sh
-else
-  . "$ZOOBINDIR"/zkEnv.sh
-fi
-
 if [ "x$SERVER_JVMFLAGS" != "x" ]
 if [ "x$SERVER_JVMFLAGS" != "x" ]
 then
 then
     JVMFLAGS="$SERVER_JVMFLAGS $JVMFLAGS"
     JVMFLAGS="$SERVER_JVMFLAGS $JVMFLAGS"