zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "scott chu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ZOOKEEPER-1122) "start" and "stop" commands are not present in zkServer.cmd
Date Mon, 15 May 2017 04:00:06 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009944#comment-16009944
] 

scott chu edited comment on ZOOKEEPER-1122 at 5/15/17 3:59 AM:
---------------------------------------------------------------

@Dan: It's about the behavior of DOS cmd "windows title". In the zkServer.cmd, these 2 lines
must succeed so you can have correct pid stored for stop command to work ok:

	title zookeeper
	for /F "tokens=2 delims= " %%A in ('TASKLIST /FI ^"WINDOWTITLE eq zookeeper^" /NH') do (


However, in some way to start cmd.exe, the title won't be "zookeeper". As I can remember,
when you press Win+R and type in dos.cmd, then run zkServer.cmd in it, the title seems to
be normal (i.e. zookeeper). But if you make a shortcut of cmd.exe and rename the shortcut
to some other name, say 'foowin', then the title will become 'foowin'. Anyway, the above command
is not reliable (but it's not author's fault).
(Note: I've modifed zkServer.cmd and zkEnv.cmd to make a version that can start up multiple
zookeeper servers with each server have its own config and log file, respectively. But I don't
know how to upload or post them here.


was (Author: scottchu):
@Dan: It's about the behavior of DOS cmd "windows title". In the zkServer.cmd, these 2 lines
must succeed so you can have correct pid stored for stop command to work ok:

	title zookeeper
	for /F "tokens=2 delims= " %%A in ('TASKLIST /FI ^"WINDOWTITLE eq zookeeper^" /NH') do (


However, in some way to start cmd.exe, the title won't be "zookeeper". As I can remember,
when you press Win+R and type in dos.cmd, then run zkServer.cmd in it, the title seems to
be normal (i.e. zookeeper). But if you make a shortcut of cmd.exe and rename the shortcut
to some other name, say 'foowin', then the title will become 'foowin'. Anyway, the above command
is not reliable.
(Note: I've modifed zkServer.cmd and zkEnv.cmd to make a version that can start up multiple
zookeeper servers with each server have its own config and log file, respectively. But I don't
know how to upload or post them here.

> "start" and "stop" commands are not present in zkServer.cmd
> -----------------------------------------------------------
>
>                 Key: ZOOKEEPER-1122
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1122
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 3.3.3
>         Environment: Windows
>            Reporter: Alexander Osadchiy
>              Labels: patch
>             Fix For: 3.6.0
>
>         Attachments: zkServer.cmd, zkServer.cmd
>
>
> Now ZooKeeper server can be started and stoped from Unix-based systems using script "bin/zkServer.sh":
> bin/zkServer.sh start - to start server;
> bin/zkServer.sh stop - to stop server.
> There are no "start" and "stop" commands in script "zkServer.cmd" (for Windows).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message