You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by br...@apache.org on 2010/01/05 18:38:44 UTC

svn commit: r896144 - in /hadoop/zookeeper/trunk: CHANGES.txt bin/README.txt bin/zkCli.cmd bin/zkEnv.cmd bin/zkServer.cmd

Author: breed
Date: Tue Jan  5 17:38:44 2010
New Revision: 896144

URL: http://svn.apache.org/viewvc?rev=896144&view=rev
Log:
ZOOKEEPER-426. Windows versions of zookeeper scripts

Added:
    hadoop/zookeeper/trunk/bin/README.txt
    hadoop/zookeeper/trunk/bin/zkCli.cmd
    hadoop/zookeeper/trunk/bin/zkEnv.cmd
    hadoop/zookeeper/trunk/bin/zkServer.cmd
Modified:
    hadoop/zookeeper/trunk/CHANGES.txt

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=896144&r1=896143&r2=896144&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Tue Jan  5 17:38:44 2010
@@ -221,6 +221,8 @@
 
   ZOOKEEPER-544. improve client testability - allow test client to access connected server location (phunt via breed)
 
+  ZOOKEEPER-426. Windows versions of zookeeper scripts (David Bosschaert via breed)
+
 NEW FEATURES:
   ZOOKEEPER-539. generate eclipse project via ant target. (phunt via mahadev)
 

Added: hadoop/zookeeper/trunk/bin/README.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/bin/README.txt?rev=896144&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/bin/README.txt (added)
+++ hadoop/zookeeper/trunk/bin/README.txt Tue Jan  5 17:38:44 2010
@@ -0,0 +1,6 @@
+This directory contain scripts that allow easy access (classpath in particular)
+to the ZooKeeper server and command line client.
+
+Files ending in .sh are unix and cygwin compatible
+
+Files ending in .cmd are msdos/windows compatible

Added: hadoop/zookeeper/trunk/bin/zkCli.cmd
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/bin/zkCli.cmd?rev=896144&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/bin/zkCli.cmd (added)
+++ hadoop/zookeeper/trunk/bin/zkCli.cmd Tue Jan  5 17:38:44 2010
@@ -0,0 +1,24 @@
+@echo off
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM     http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+
+setlocal
+call "%~dp0zkEnv.cmd"
+
+set ZOOMAIN=org.apache.zookeeper.ZooKeeperMain
+java "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" "-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% %*
+
+endlocal
+

Added: hadoop/zookeeper/trunk/bin/zkEnv.cmd
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/bin/zkEnv.cmd?rev=896144&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/bin/zkEnv.cmd (added)
+++ hadoop/zookeeper/trunk/bin/zkEnv.cmd Tue Jan  5 17:38:44 2010
@@ -0,0 +1,34 @@
+@echo off
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM     http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+
+set ZOOCFGDIR=%~dp0%..\conf
+set ZOO_LOG_DIR=%~dp0%..
+set ZOO_LOG4J_PROP=INFO,CONSOLE
+
+REM for sanity sake assume Java 1.6
+REM see: http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html
+
+REM add the zoocfg dir to classpath
+set CLASSPATH=%ZOOCFGDIR%
+
+REM make it work in the release
+SET CLASSPATH=%~dp0..\*;%~dp0..\lib\*;%CLASSPATH%
+
+REM make it work for developers
+SET CLASSPATH=%~dp0..\build\classes;%~dp0..\build\lib\*;%CLASSPATH%
+
+set ZOOCFG=%ZOOCFGDIR%\zoo.cfg
+

Added: hadoop/zookeeper/trunk/bin/zkServer.cmd
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/bin/zkServer.cmd?rev=896144&view=auto
==============================================================================
--- hadoop/zookeeper/trunk/bin/zkServer.cmd (added)
+++ hadoop/zookeeper/trunk/bin/zkServer.cmd Tue Jan  5 17:38:44 2010
@@ -0,0 +1,25 @@
+@echo off
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM     http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+
+setlocal
+call "%~dp0zkEnv.cmd"
+
+set ZOOMAIN=org.apache.zookeeper.server.quorum.QuorumPeerMain
+echo on
+java "-Dzookeeper.log.dir=%ZOO_LOG_DIR%" "-Dzookeeper.root.logger=%ZOO_LOG4J_PROP%" -cp "%CLASSPATH%" %ZOOMAIN% "%ZOOCFG%" %*
+
+endlocal
+