kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject kafka git commit: MINOR: Improve a Windows quickstart instruction
Date Thu, 26 Oct 2017 20:46:25 GMT
Repository: kafka
Updated Branches:
  refs/heads/1.0 109a60c77 -> 0a71d53d3


MINOR: Improve a Windows quickstart instruction

The output of `wmic` can be very long and could truncate the search keywords in the existing
command. If those keywords are truncated no process is returned in the output. An update is
suggested to the command by which the query is performed inside the `wmic` command itself
instead of using pipes and `find`.

Author: Vahid Hashemian <vahidhashemian@us.ibm.com>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #4083 from vahidhashemian/minor/improve_quickstart_for_windows_wmic

(cherry picked from commit ebe749b4ee941be9baed90349b72931a041a480f)
Signed-off-by: Guozhang Wang <wangguoz@gmail.com>


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

Branch: refs/heads/1.0
Commit: 0a71d53d30f55a112094c05200a9a27db37e6f04
Parents: 109a60c
Author: Vahid Hashemian <vahidhashemian@us.ibm.com>
Authored: Thu Oct 26 13:46:11 2017 -0700
Committer: Guozhang Wang <wangguoz@gmail.com>
Committed: Thu Oct 26 13:46:20 2017 -0700

----------------------------------------------------------------------
 docs/quickstart.html | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/0a71d53d/docs/quickstart.html
----------------------------------------------------------------------
diff --git a/docs/quickstart.html b/docs/quickstart.html
index 9b0720f..063fec0 100644
--- a/docs/quickstart.html
+++ b/docs/quickstart.html
@@ -186,9 +186,10 @@ my test message 2
 
 On Windows use:
 <pre class="brush: bash;">
-&gt; wmic process get processid,caption,commandline | find "java.exe" | find "server-1.properties"
-java.exe    java  -Xmx1G -Xms1G -server -XX:+UseG1GC ... build\libs\kafka_2.11-{{fullDotVersion}}.jar"
 kafka.Kafka config\server-1.properties    644
-&gt; taskkill /pid 644 /f
+&gt; wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'"
get processid
+ProcessId
+6016
+&gt; taskkill /pid 6016 /f
 </pre>
 
 <p>Leadership has switched to one of the slaves and node 1 is no longer in the in-sync
replica set:</p>


Mime
View raw message