You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a windows machine, you have to replace the `$PWD` with the current directory and the `$HOME` with a directory where you have the `.m2` folder.
91
+
On a Windows machine, the `$PWD` and `pwd` commands may not work (unless you run in a Unix-compliant shell). PWD means `print current directory`.
92
+
93
+
The trick we use above is to map the directory two steps down from the current (which is where the labs are installed on your machine).
94
+
So say you had our labs installed in a directory called `/tmp/MyKafkaLabs`, you are now in the directory `/tmp/MyKafkaLabs/kafka-lab/labs/02-Publish-And-Subscribe`.
95
+
The script `"$(cd "$PWD/../.."; pwd)"` simply out`puts the path two steps down from here, which would be `/tmp/MyKafkaLabs/kafka-lab`.
96
+
97
+
The next thing to look out for on a Windows machine is the use of `$HOME`.
98
+
This simply means your home directory. You can always replace `$HOME` with your home directory.
92
99
93
100
7. With the producer now built, run it with the following command:
0 commit comments