WEBVTT 00:04.450 --> 00:10.300 In a previous lecture, we have explored the contents of Kafka folder, and there are basically several 00:10.300 --> 00:13.140 sub folders and two text files. 00:13.450 --> 00:17.260 Also, we have tried to eat contents of several tax documents. 00:17.530 --> 00:22.780 And of course, you are able to do that using time and know and command line, but it is not the best 00:22.780 --> 00:23.380 way to do that. 00:23.770 --> 00:29.980 This is why in this lecture, I'll show you how to install visual graphical user interface, text editor, 00:30.160 --> 00:31.690 Gold Visual Studio Code. 00:31.690 --> 00:36.880 It is open source free and available for Mac Windows and Unix like systems. 00:37.090 --> 00:43.330 And I'll demonstrate you how to read the contents of every file using the escort and how to edit those 00:43.330 --> 00:44.080 files as well. 00:44.380 --> 00:49.660 OK, so please don't Lord Gold on your computer if it does not yet installed. 00:49.900 --> 00:56.960 I downloaded the Formic excises around 100 megabytes and basically in discourse we will use the via 00:56.980 --> 01:01.930 Scholte not just for editing of Kafka files, but also using Via Skold. 01:01.930 --> 01:06.750 We will do some coding for creation of consumers and producers for Kafka. 01:07.060 --> 01:08.780 OK, archive was downloaded. 01:08.800 --> 01:09.840 Let's open it up. 01:11.590 --> 01:18.510 And here I'll find a file and all what they need to do is drag this file into applications folder, 01:18.760 --> 01:23.580 but if I do that, I'll get an error because I have already Vaskov installed in this computer. 01:23.770 --> 01:30.370 If you cannot, please just file in the applications folder and afterwards simply run visual studio 01:30.370 --> 01:30.650 code. 01:31.020 --> 01:34.710 I'll stop operation, then go to Spotlight and type here. 01:34.870 --> 01:40.150 Visual Studio Code and Vyas code will be opened here, see some release notes. 01:40.270 --> 01:41.170 Let me close them. 01:41.320 --> 01:48.100 And now let's open up a folder here in the U.S. Code in order to perform this task, go to file, click 01:48.100 --> 01:48.880 here open. 01:49.810 --> 01:53.560 And now we need to find a location of Kafka folder on this computer. 01:54.410 --> 02:01.760 Please go to this dropdown and select here your username, in my case, it's Bugden and here in a whole 02:01.760 --> 02:07.640 folder for this particular user, along with folders like applications, desktop documents, dullards, 02:07.820 --> 02:14.300 I'll find folder called Kafka because we have created this folder in a home directory for specific user 02:14.300 --> 02:15.130 local users. 02:15.410 --> 02:18.350 OK, let's select this folder and click open. 02:19.710 --> 02:24.580 And contents of this folder will be opened in visual studio code, and you should agree that reading 02:24.580 --> 02:29.760 the contents of this folder is much easier and nicer here than in terminal. 02:30.000 --> 02:36.560 For example, I can easily expand the folder and read any of the files listed here. 02:36.630 --> 02:38.880 For example, let's click on this file, Kafka. 02:39.060 --> 02:44.460 This conflicts daughter age and you'll see here in the bottom that the vast gold will automatically 02:44.460 --> 02:46.450 detect the type of this file. 02:46.560 --> 02:49.950 It is a shell script and highlight corresponding sections. 02:50.160 --> 02:56.250 For example, comments will be in blue and executable lines will be like soul with different colors. 02:56.550 --> 03:03.300 Also, let's open up, for example, this file connect mirror maker Dot Sage and the same structure 03:03.300 --> 03:03.880 is here. 03:04.350 --> 03:11.160 Let me Minifie Benfold and the gold config folder and here I'll find a bunch of files with extension 03:11.300 --> 03:11.940 properties. 03:12.210 --> 03:16.230 And for example, let's open up a file center that properties. 03:16.500 --> 03:20.370 This file will be used in order to start Kafka brolga again. 03:20.370 --> 03:28.620 I see some comments here and the below I configuration parameters like Broecker ID next I'll see no 03:28.620 --> 03:31.570 network threads num are your threads and so on. 03:31.580 --> 03:33.960 A bunch of different configuration parameters. 03:33.960 --> 03:42.430 For example, on this line I see location of the folder where Kafka will store its logs and there is 03:42.430 --> 03:47.790 a difference between logs that will be stored here and logs that are stored here in this folder. 03:48.090 --> 03:54.060 In this folder, Kafka actually logs related to start stop and Operation of services. 03:54.390 --> 04:01.470 And in this folder, COFCO will store messages that will be sent by producers and consumed by consumers. 04:01.920 --> 04:09.420 OK, this is how you are able to easily and nicely read contents of every file here using Visual Studio 04:09.420 --> 04:09.780 Code. 04:10.050 --> 04:14.510 But more than that, you are able pretty fast and easy edit those files. 04:14.790 --> 04:19.620 For example, I can rename this folder and name it instead of Kafka. 04:19.630 --> 04:21.270 This looks simply looks. 04:21.570 --> 04:23.850 And now I see that this file was edited. 04:23.850 --> 04:31.330 You'll see here this dot and there is also one unsaved file here and I am able to save file using a 04:31.410 --> 04:35.310 combination of as or go to file and click say. 04:36.300 --> 04:42.510 And now this file will say, I can prove that by going, for example, to Tamino and here let's again 04:42.520 --> 04:46.130 use comment and read file that we have just edited. 04:46.320 --> 04:48.540 It is located in config and file. 04:48.540 --> 04:50.190 Name is Sarovar Properties. 04:50.550 --> 04:54.460 And scroll up a bit to the location of a log file. 04:54.690 --> 05:02.640 Notice how inconvenient is to do that, using a terminal, basically looking at your storage DMP logs. 05:02.640 --> 05:07.680 And yes, here was this line and it proves that the contents of this file were edited. 05:07.930 --> 05:15.540 OK, let me go back to the code and edit this file back to Kafka dish logs and save the file again by 05:15.540 --> 05:22.770 pressing comment as OK, that's how you are able pretty easily and fast to read and edit files using 05:22.770 --> 05:23.730 visuals to the code. 05:23.730 --> 05:26.000 And that's what we will do later on discourse. 05:26.220 --> 05:31.730 Also here you can click on license and the license terms for Aperture Kafka and also you can click on 05:31.980 --> 05:34.390 this file and read another text document. 05:34.590 --> 05:41.010 Notice that not all lines are visible here on a screen and I need to use the horizontal scroll in order 05:41.010 --> 05:41.550 to see them. 05:41.790 --> 05:43.710 And if you want to see all lines, you can. 05:43.710 --> 05:50.440 Prosky combination option Z like soul and no lines will be drop and visible on a screen. 05:50.700 --> 05:55.560 Also, you are able to hide this left pane by clicking on this icon. 05:55.800 --> 05:59.130 By clicking on it again, it will be shown again and so on. 05:59.670 --> 06:05.100 Bioscope is very powerful, Edita, and if you cannot use it before, I highly recommend you to do that. 06:05.460 --> 06:10.710 I will not explain all of his features or what you need to know about it for the moment is how to read 06:10.710 --> 06:12.360 files and how to edit files. 06:12.750 --> 06:17.190 That's all for this laubscher and the next one lets finally start Casares. 06:17.310 --> 06:18.720 I'll see you in the next lecture. 06:18.750 --> 06:19.190 Bye bye.