From 9f52c1a6c29095a7e1b24b397644e24da5d51d79 Mon Sep 17 00:00:00 2001 From: Vahid Hashemian Date: Tue, 17 Oct 2017 13:25:02 -0700 Subject: [PATCH] MINOR: Improve quickstart instruction for Windows OS 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 of existing command. An update is suggested to the command so the query is performed inside the `wmic` command itself instead of using pipes and greps. --- docs/quickstart.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/quickstart.html b/docs/quickstart.html index 9b0720fdc858..063fec076b77 100644 --- a/docs/quickstart.html +++ b/docs/quickstart.html @@ -186,9 +186,10 @@

Step 6: Settin On Windows use:
-> 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
-> taskkill /pid 644 /f
+> wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'" get processid
+ProcessId
+6016
+> taskkill /pid 6016 /f
 

Leadership has switched to one of the slaves and node 1 is no longer in the in-sync replica set: