WEBVTT 00:04.400 --> 00:10.400 No, we have to keep ourselves up and running, and it loosens at brought to one eight one this one, 00:10.700 --> 00:15.050 and it accepts connection to any IP address of this localhost. 00:15.050 --> 00:16.770 That's what this record means. 00:17.150 --> 00:24.320 OK, now let's try to start to Kafka once again and please know that we need to keep zookeeper's server 00:24.320 --> 00:25.220 up and running. 00:25.610 --> 00:33.740 Let me make this window smaller health screen size like soul Moorgate here and open up new tab and let's 00:33.740 --> 00:37.220 drag it here below this one and here in this tab. 00:37.220 --> 00:39.530 But let's start Cafcass Sarah. 00:39.710 --> 00:43.440 And we will start at the same as in one of the previous lectures. 00:43.700 --> 00:45.260 Go to folder COFCO. 00:46.290 --> 00:50.990 And let's type been Kafka there, Sarah. 00:51.030 --> 00:57.250 This started out as EDG does a path to executable file, which starts Kafka Sarah. 00:57.660 --> 01:02.600 And next, after the space, specify specific path to configuration file for Kafka, Cancellara. 01:02.760 --> 01:07.740 And now we will use default configuration file located in configure and file. 01:07.740 --> 01:08.880 Name is Sarah. 01:08.880 --> 01:12.330 The properties you can you step in order to see all options. 01:12.600 --> 01:18.630 Let's press start once again and this command will start a server with configuration file located here 01:18.630 --> 01:20.710 in this file server, the properties. 01:20.990 --> 01:22.110 OK, let's press enter. 01:26.450 --> 01:30.720 And no, Cafcass Silver was successfully started and now it is up and running. 01:31.190 --> 01:35.450 Let's now go to visuals, to the court and try to observe several logs. 01:35.460 --> 01:42.310 Now, go here and go to logs and find a file called Saradha Blog. 01:42.680 --> 01:46.280 And now let's scroll to the very end of this file. 01:46.490 --> 01:48.050 You'll see a bunch of logs here. 01:48.980 --> 01:54.950 Let me get this step, and at the end of this log file, you'll see my search in for Kafka, Sarah with 01:54.970 --> 02:02.390 a zero started, and that means that now Kafka server is up and running and we are able to use it for 02:02.390 --> 02:02.990 messages. 02:03.470 --> 02:10.460 But let me now scroll up a bit and to show you all the meaningful messages, first one is here, Broecker 02:10.460 --> 02:11.750 ID zero. 02:12.170 --> 02:20.540 Every broker or Cafcass server has a unique ID and this ID must be unique across Kafka, Kloster and 02:20.540 --> 02:26.210 the default ID is zero and this is basically specified in configuration file for Kafka. 02:26.220 --> 02:26.730 Sarah. 02:27.110 --> 02:33.140 Let me quickly go back to configuration file of Cafcass from this one server properties. 02:33.470 --> 02:37.700 And if I scroll up here in this file, you'll find Broecker. 02:37.700 --> 02:41.270 I'd parameter here and default one is zero. 02:41.540 --> 02:46.640 And this way here in this Saradha file we see here, Broecker ID zero. 02:46.910 --> 02:50.420 OK, we'll scroll up and find another line. 02:50.600 --> 02:55.670 This one a wait and socket connections on this IP address and Dysport. 02:56.000 --> 03:04.400 And that means that Kafka, Sara Kafka Breuker is waiting now for connections at Port nine zero nine 03:04.400 --> 03:04.760 two. 03:04.940 --> 03:10.400 And again, here you see four zeros and that means that it will accept connection to any IP address 03:10.400 --> 03:11.570 of your computer. 03:12.020 --> 03:13.970 OK, next message I wanted to show you. 03:14.210 --> 03:22.460 Log directory slash Kafka logs not found create ID and this folder will be basically used for storage 03:22.460 --> 03:23.840 of Kafka messages. 03:24.260 --> 03:24.860 Regret that. 03:24.860 --> 03:32.810 I have explained the difference between look for this one located in Kafka folder and this folder where 03:32.810 --> 03:35.060 Kafka will store its messages. 03:35.270 --> 03:42.020 So in this folder logs folder, Kafka stories, let's say system looks like several log file and in 03:42.020 --> 03:45.710 this folder to be Kafka logs, that is a default one. 03:45.980 --> 03:52.610 Kafka will store messages that will be sent by producers and consumed by consumers. 03:52.880 --> 03:53.900 And no worries, please. 03:53.900 --> 03:57.130 Will will examine the contents of this logs folder in the next lecture. 03:57.440 --> 03:59.900 No, let me scroll up a bit again. 03:59.990 --> 04:07.040 And here you'll see a bunch of parameters that were actually used for start of this Kafka Breuker and 04:07.040 --> 04:09.260 those parameters, our default parameters. 04:09.620 --> 04:15.620 Let's go up to the beginning of those configuration parameters and notice that here in the right section, 04:15.650 --> 04:22.590 you're also able to scroll and you'll see basically small text and you are able to navigate more easily. 04:22.850 --> 04:27.410 So we need to find the logs related to connection to zookeeper. 04:27.710 --> 04:35.300 And those logs start basically here connecting to zookeeper on localhost two one eight one. 04:35.780 --> 04:38.720 And now zookeeper is up and running. 04:38.750 --> 04:43.220 And that's why Cafcass server initializes new solution to this address. 04:43.220 --> 04:51.530 Localhost Collomb two one eight one Dysport is used by Zookeeper and below you'll see that zookeeper 04:51.530 --> 04:54.440 connection session will be basically successful. 04:54.680 --> 04:58.840 So here with this message zookeeper, our client Cafcass cerebral connected. 04:59.120 --> 05:05.480 And that is an indication that the calf casadevall Kafka broker has successfully connected to Zookeeper 05:05.480 --> 05:06.170 Celebra. 05:06.470 --> 05:12.920 And this message above creating a new look file basically comes from zookeeper and same message we have 05:12.920 --> 05:17.180 seen here in terminal as last message in Zookeeper Windle. 05:17.180 --> 05:20.660 This one great new look, file, log, dot one. 05:20.960 --> 05:28.640 And if you'll navigate to TMB Doorkeepers version two, you'll find this file, all that one here. 05:29.180 --> 05:32.600 And that's basically all what I wanted to show you here in this log file. 05:32.750 --> 05:37.840 And please notice that this file will contain also all previous logs. 05:38.120 --> 05:43.580 For example, here are logs that were related to the Strutt unsuccessful start of Kafka. 05:43.600 --> 05:44.060 Sara. 05:44.180 --> 05:46.430 Well, Zookeeper wasn't available. 05:46.610 --> 05:53.210 So if you want to clean this log, file up, you should simply delete it and recreated from scratch. 05:53.630 --> 05:59.750 OK, no zookeeper celebra and the Cafcass set are up and running and we are able to start using them 05:59.870 --> 06:01.610 and send some messages. 06:01.910 --> 06:07.880 But before doing that, let's observe contents of the log directory that will be used for storage of 06:07.880 --> 06:09.920 the messages, Bykofsky, etcetera. 06:10.190 --> 06:10.910 See you next. 06:10.910 --> 06:11.410 Bye bye.