<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Mateusz Aszyk]]></title><description><![CDATA[There's just so much to do.]]></description><link>https://maszyk.azurewebsites.net/</link><image><url>https://maszyk.azurewebsites.net/favicon.png</url><title>Mateusz Aszyk</title><link>https://maszyk.azurewebsites.net/</link></image><generator>Ghost 2.20</generator><lastBuildDate>Sat, 18 Apr 2026 01:24:04 GMT</lastBuildDate><atom:link href="https://maszyk.azurewebsites.net/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Network over network]]></title><description><![CDATA[Mikrotik PWR-Line PRO (PL7510Gi), How it is working at home.]]></description><link>https://maszyk.azurewebsites.net/network-over-network/</link><guid isPermaLink="false">5ee68507381280255c560d4e</guid><category><![CDATA[Mikrotik]]></category><dc:creator><![CDATA[Mateusz Aszyk]]></dc:creator><pubDate>Tue, 23 Jun 2020 08:44:02 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1508920291026-c344bbfca1ab?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1508920291026-c344bbfca1ab?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Network over network"><p>As part of the expansion of the connection between the rooms, I decided to implement new technologies that allow communication without modernizing the apartment. Searching for technologies enabling the implementation of the idea, I noticed that the most common option chosen is the wireless network, PLC and thin twisted pair (through the door). Reading various opinions about the PLC I came across many devices that did not meet my expectations. Often in the product description there was information that the maximum speed was 1300Mbps and they actually reached 150 - 200 Mbps. I postponed the topic for a while and temporarily used the bridge between MT cAP AC.</p><p>While expanding my small server environment with a 10Gbps network, I noticed that Mikrotik also produces PLC devices. Most of the products available in the company's offer provide a speed of 100Mbps plus wireless technologies and the latest PRO device that will be tested.</p><h2 id="what-is-a-plc">What is a PLC?</h2><p>PLC is short for <a href="https://en.wikipedia.org/wiki/Power_line_communication">power line communication</a>.<br>In non-technical language, Internet via electricity. It is a technology holding as many opponents as supporters and myself to any of them do not belong.</p><h2 id="device">Device</h2><p>The latest product <a href="https://mikrotik.com/product/pl7510gi">PWR-LINE PRO</a>, providing LAN connection through the power network, colloquially speaking <strong><em>Network over network</em></strong>. According to the specification within a top speed 600Mbps, which was not a big surprise but more of astonishment, what is the reason for such a low speed? Finding any information about this device is almost impossible, in addition to the manufacturer's website. Let me share with you my opinion about this device and verify information about its performance.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/26A9973B-B549-4882-8B1D-CDC0B93533C2_1_201_a-1.jpeg" class="kg-image" alt="Network over network"><figcaption>Mikrotik PWR-LINE PRO - PL7510Gi</figcaption></figure><!--kg-card-end: image--><p>The device is in the "Data over Powerlines" category and is built on the same chipset as the competitor's TP-Link TL-PA8010P device.</p><p>The device has two sockets, the first of which connects the power cable, and the second one is for connecting a computer or device with the possibility of power through POE. I tested the POE power supply on Mikrotik CRS109-8G-1S-2HnD-IN device and it worked correctly. Between the sockets, there is a button for resetting and creating a connection between the modules. Lighted diodes inform us that the device is on (blue LED), communicates between modules (orange LED), there is an activity between computers (green LED) and active POE supply (red LED). It also has a manual switch to turn on the POE power.</p><p>We do not need anything more, the device is easy to configure. Just turn on, keep <strong>synchronization button</strong> and there is a connection between computers.</p><p>More information about the device on the <a href="https://mikrotik.com/product/pl7510gi">manufacturer's</a> website or <a href="https://www.wisp.pl/p7180,mikrotik-pwr-line-pro-pl7510gi.html">online store</a>.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/AD7B8F8D-35CF-460D-998C-0569FDD7CB53_1_201_a.jpeg" class="kg-image" alt="Network over network"><figcaption>Mikrotik PWR-LINE PRO - PL7510Gi, CRS109-8G-1S-2HnD-IN</figcaption></figure><!--kg-card-end: image--><h2 id="tests">Tests</h2><p>Each of the tests was performed with the <a href="https://iperf.fr/"><strong>iperf3</strong></a> program with the time set for the old apartment of 10 seconds and the new apartment of 30 seconds. I made a single connection between the computers, in most cases, it showed no diametrical difference.</p><p>The purpose of the tests was to show reliable results and to present the importance of building a power grid in various locations.<br>What conclusions should result from the tests performed: <br>- the impact of the network infrastructure on the speed, <br>- does the distance matter, <br>- whether interference devices such as a fridge, washing machine, etc. affect the transmission.</p><h2 id="old-apartment-old-network-without-ground">Old apartment - old network without ground</h2><p>The goal is to show the operation of devices in the old power grid where it is not possible to use the 3-core cable (grounded cable) required for maximum speed.</p><p>Legend:<br><strong>Strip</strong> - connection within one strip with grounding.<br><strong>Room - kitchen</strong> - the same circuit with a fridge along the way - greater distance<br><strong>Room - corridor</strong> - the same circuit - smaller distance</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/old-apartment.png" class="kg-image" alt="Network over network"></figure><!--kg-card-end: image--><p>Connections under the old network are at a level adequate to the competition. Slight drops at a greater distances caused by other devices.</p><p>The network is suitable for Internet use up to 150Mbps, an additional PWR-Line with a wireless transmitter is recommended for larger connections.</p><h2 id="new-apartment-grounded-network">New apartment - grounded network</h2><p>In this scenario, I did more tests with different variants. At the beginning let's look at the chart below.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/new-apartment.png" class="kg-image" alt="Network over network"></figure><!--kg-card-end: image--><p>Legend:<br>- <strong>Room</strong> - one circuit - same room<br>- <strong>Corridor</strong> - one circuit - corridor on the way to fuses<br>- <strong>Server</strong> - separate circuit<br>- <strong>Living room</strong> - separate circuit<br>- <strong>Living room - no fridge </strong>- separate circuit - fridge off<br>- <strong>Living room - cheap strip</strong> - separate circuit</p><h2 id="what-was-the-purpose-of-breaking-down-the-tests-into-details">What was the purpose of breaking down the tests into details?</h2><p>As part of a connection in one room, I wanted to check what I can get the fastest connection between computers on one circuit. I am a bit negatively surprised by the result because I expected the speed of <strong>600Mbps</strong> and obtained <strong>370Mbps</strong>. It's not bad but it could have been better. It is suitable for connection when we want to use a provider offering over 300 Mbps.<em> Test made on a double socket. It is worth noting that when connecting, for example, a switch to the second socket, the speed drops to 100Mbps and is the equivalent of a connection on a <strong>cheap strip</strong>.</em></p><p>The test in <strong>the corridor </strong>had a symbolic purpose, it could be useful when installing an IP camera powered by POE. Transmission at an above-average level.</p><p><strong>Server</strong> - The most important scenario, the connection from the room to the small server room came out average but better than in <strong>the old apartment</strong>. The location is in a separate circuit, has a grounding, there are no interference devices and connected to a single power outlet. The solution can be used by patient people because the speed is not suitable for communication with servers. However, the goal was simple - to make quick backups.</p><p><strong>Living room</strong> - the largest distance between devices. The main goal is to strengthen the wireless network and provide Internet to devices such as the console and TV. In this case, the PLC was to be the main Internet provider and served as a backup link, the bridge between cAP AC works much better. Just like in the case of <strong>the Corridor</strong>, it can be used as a power supply, for communication for IP cameras or a <em>backup connection</em>.</p><p>In addition, I performed two tests in the living room:</p><p><strong>Without the fridge</strong> - I checked, how the PLC works without one of the biggest enemies like a fridge. Often in various materials available on the Internet, it is said that enemies for PLCs are washing machines and refrigerators. To be honest, I haven't noticed big changes with or without the fridge turned on. Importantly, the fridge is in a separate circuit and is not connected via a strip. The fridge's greater impact on transmissions was in <strong>the old network</strong>, where the whole devices worked on one circuit.</p><p><strong>Cheap strip </strong>- a symbolic test to check whether the use of the strip helps or harms. The connection was between rooms, where one of the devices was connected to the so-called <em>cheap strip</em> that has no fuse and only distributes electricity. As can be seen in the chart, it only injure and is the equivalent of a double socket connection.</p><p>The subject of the strip in the tests appeared twice, in the scenario with <strong>the Living room</strong> worsens the results but when solving <strong>P2P</strong> using the strip, it showed the maximum speed that is possible in connection with grounding (three-core wires).</p><p>For comparison, it shows a graph of connections between computers without the use of any switch devices and PLCs.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/P2P.png" class="kg-image" alt="Network over network"></figure><!--kg-card-end: image--><h2 id="summary">Summary</h2><p>Devices worth recommending to ensure transmission and power supply of simple devices such as IP cameras or other IoTs. For less demanding people who do not want to build MESH networks, this is an ideal solution. What is worth mentioning is the increased security compared to a wireless network. As part of the PLC network, we have secure transmission, and using Mikrotik devices, we can easily further encrypt traffic using IPSEC.</p><p>The negative side of the device is that it occupies a socket. As compensation, Mikrotik provided POE power supply, which is enough for a camera, IoT, or network devices such as Switch or Access Point.</p><p><strong><em>Equipment for testing has been provided by the store <a href="https://www.wisp.pl">www.wisp.pl</a></em></strong></p>]]></content:encoded></item><item><title><![CDATA[Sieć przez sieć]]></title><description><![CDATA[Mikrotik PWR-Line PRO (PL7510Gi), jak działa i czy nadaje się do domu. ]]></description><link>https://maszyk.azurewebsites.net/siec-przez-siec/</link><guid isPermaLink="false">5ee62609381280255c560937</guid><category><![CDATA[PL]]></category><category><![CDATA[Mikrotik]]></category><dc:creator><![CDATA[Mateusz Aszyk]]></dc:creator><pubDate>Sun, 14 Jun 2020 18:41:47 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1508920291026-c344bbfca1ab?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1508920291026-c344bbfca1ab?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Sieć przez sieć"><p>W ramach rozbudowy połączenia pomiędzy pomieszczeniami, zdecydowałem o wdrożeniu nowych technologii pozwalających na komunikacje bez modernizacji mieszkania. Szukając technologii umożliwiających zrealizowanie pomysłu, dostrzegłem, że najczęstszym wybieranym wariantem jest sieć bezprzewodowa, PLC a na końcu cienka skrętka (przez drzwi). Czytając różnie opinie na temat PLC napotkałem wiele urządzeń, które nie spełniały moich oczekiwań. Często w opisie produktu były informację o tym, że maksymalna prędkość to 1300Mbps a rzeczywiście osiągały 150 - 200 Mbps. Temat odłożyłem na później i chwilowo korzystałem z mostu pomiędzy MT cAP AC.</p><p>Przy okazji rozbudowywania mojego małego środowiska serwerowego o sieć 10Gbps zauważyłem, że firma Mikrotik również produkuje urządzenia PLC. Większość produktów dostępnych w ofercie firmy, zapewnia prędkość na poziomie 100Mbps plus technologie bezprzewodowe oraz najnowsze urządzenie PRO, które będzie podlegać testom.</p><h2 id="czym-jest-plc">Czym jest PLC ?</h2><p>PLC jest to skrót od <a href="https://pl.wikipedia.org/wiki/Power_line_communication">power line communication</a>, czyli po polsku komunikacja elektroenergetyczną siecią rozdzielczą. </p><p>Mówiąc językiem nie technicznym, Internet przez prąd. Jest to technologia posiadająca tyle samo przeciwników, co zwolenników zaś ja do żadnych z nich nie należę.</p><h2 id="urz-dzenie">Urządzenie</h2><p>Najnowszy produkt <a href="https://mikrotik.com/product/pl7510gi">PWR-LINE PRO</a>, zapewniający połączenie LAN przez sieć energetyczną czyli kolokwialnie mówiąc <strong><em>Sieć przez sieć</em></strong>. Według specyfikacji rozwija prędkość w granicach 600Mbps, co nie było wielkim zaskoczeniem a bardziej zdziwieniem, skąd taka niska prędkość. Znalezienie jakikolwiek informacji na temat tego urządzenia graniczy z cudem, oprócz strony producenta. Pozwolę sobie podzielić się z Wami moją opinią dotyczącą tego urządzenia i zweryfikować informację na temat jego wydajności.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/26A9973B-B549-4882-8B1D-CDC0B93533C2_1_201_a-1.jpeg" class="kg-image" alt="Sieć przez sieć"><figcaption>Mikrotik PWR-LINE PRO - PL7510Gi</figcaption></figure><!--kg-card-end: image--><p>Urządzenie znajduje się w kategorii "Data over Powerlines" i jest zbudowane na tym samym chipsecie, co konkurencyjne urządzenie firmy TP-Link TL-PA8010P. </p><p>Urządzenie posiada dwa gniazda, do pierwszego z nich podłączamy kabel zasilający, zaś do drugiego komputer lub urządzenie z możliwością zasilania przez POE. Zasilanie POE przetestowałem na urządzeniu Mikrotik CRS109-8G-1S-2HnD-IN i działało prawidłowo. Pomiędzy gniazdami jest przycisk do resetowania i tworzenia połączenia pomiędzy modułami. Zapalone diody informują nas, że urządzenie jest włączone (niebieski LED), komunikuje się pomiędzy modułami (pomarańczowy LED), jest aktywność pomiędzy komputerami (zielony LED) i aktywnym zasilaniu POE (czerwony LED). Posiada również przełącznik manualny do włączania zasilania POE. </p><p>Nic więcej nam nie potrzeba, urządzenie jest proste w <em>konfiguracji</em>. Wystarczy podłączyć, przytrzymać <strong>sync</strong> i następuje połączenie pomiędzy komputerami. </p><p>Więcej informacji na temat urządzenia na stronie <a href="https://mikrotik.com/product/pl7510gi">producenta</a> lub <a href="https://www.wisp.pl/p7180,mikrotik-pwr-line-pro-pl7510gi.html">sklepu internetowego</a>.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/AD7B8F8D-35CF-460D-998C-0569FDD7CB53_1_201_a.jpeg" class="kg-image" alt="Sieć przez sieć"><figcaption>Mikrotik PWR-LINE PRO - PL7510Gi, CRS109-8G-1S-2HnD-IN</figcaption></figure><!--kg-card-end: image--><h2 id="testy">Testy</h2><p>Każdy z testów został wykonany programem <a href="https://iperf.fr/"><strong>iperf3</strong></a> z ustawionym czasem dla starej lokalizacji 10 sekund i dla nowej 30 sekund. Wykonywałem pojedyncze połączenie pomiędzy komputerami, w większej ilości nie wykazało diametralnego różnicy.</p><p>Celem testów było ukazanie wiarygodnych wyników i przedstawienie znaczenia budowy sieci energetycznej w różnych lokalizacjach. </p><p>Jakie wnioski powinny wyniknąć z wykonywanych testów:<br>- wpływ infrastruktury sieci na prędkość,<br>- czy odległość ma znaczenia,<br>- czy urządzenia zakłócające, takie jak lodówka, pralka itp. wpływają na transmisję.</p><h2 id="stare-mieszkanie-stara-sie-bez-uziemienia">Stare mieszkanie - stara sieć bez uziemienia</h2><p>Celem jest pokazanie działania urządzeń w starej sieci energetycznej, gdzie nie ma możliwości skorzystania z trzeciej żyły wymaganej do maksymalnej prędkości. </p><p>Legenda:<br><strong>Listwa</strong> - połączenie w ramach jednej listwy z uziemieniem.<br><strong>Pokój - kuchnia</strong> - ten sam obwód z lodówką po drodze - większa odległość<br><strong>Pokój - korytarz</strong> - ten sam obwód - mniejsza odległość</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/Stare-Mieszkanie.png" class="kg-image" alt="Sieć przez sieć"></figure><!--kg-card-end: image--><p>Połączenia w ramach starej sieci są na poziomie adekwatnym do konkurencji. Delikatne spadki przy większej odległości spowodowane innymi urządzeniami.</p><p>Sieć nadaje się do korzystania z Internetu do prędkości 150Mbps, przy większym łączu zalecany jest dodatkowy PWR-Line z nadajnikiem sieci bezprzewodowej.</p><h2 id="nowe-mieszkanie-sie-z-uziemieniem">Nowe mieszkanie - sieć z uziemieniem</h2><p>W tym scenariuszu wykonałem więcej testów z różnymi wariantami. Na początku przyjrzyjmy się poniższemu wykresowi.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/Nowe-Mieszkanie.png" class="kg-image" alt="Sieć przez sieć"></figure><!--kg-card-end: image--><p>Legenda:<br>- <strong>Pokój</strong> - jeden obwód - ten sam pokój<br>- <strong>Korytarz</strong> - jeden obwód - korytarz po drodze do bezpieczników<br>- <strong>Serwer</strong> - osobny obwód<br>- <strong>Salon</strong> - osobny obwód<br>- <strong>Salon - bez lodówki </strong>- osobny obwód - wyłączona lodówka <br>- <strong>Salon - tania listwa</strong> - osobny obwód </p><h3 id="jaki-cel-mia-o-rozbicie-test-w-na-szczeg-y">Jaki cel miało rozbicie testów na szczegóły ?</h3><p>W ramach połączenia w jednym pokoju<strong>, </strong>chciałem sprawdzić jakie mogę uzyskać najszybsze połączenie pomiędzy komputerami w ramach jednego obwodu. Jestem trochę negatywnie zaskoczony wynikiem, ponieważ oczekiwałem prędkości w granicach <strong>600Mbps</strong> a uzyskałem<strong> 370 Mbps</strong>. Nie jest źle ale mogło być lepiej. Nadaje się do połączenia, gdy chcemy skorzystać z dostawcy oferującego ponad 300 Mbps.<em> Test wykonany na podwójnym gnieździe. Warto zauważyć, że w momencie podłączenia na przykład switch do drugiego gniazda, prędkość spada do 100Mbps i stanowi odpowiednik połączenia na <strong>taniej listwie</strong>.</em></p><p>Test na <strong>Korytarzu</strong> miał cel symboliczny, mógłby przydać się przy montażu kamery IP zasilanej przez POE. Transmisja na poziomie ponadprzeciętnym.</p><p><strong>Serwer</strong> - Najważniejszy scenariusz, połączenie z pokoju do <em>małej serwerowni </em>wypadło średnio ale lepiej niż w <strong>starym mieszkaniu</strong>. Lokalizacja znajduje się w osobnym obwodzie, posiada uziemienie, nie występują urządzenia zakłócające i podpięte do pojedynczego gniazda energetycznego. Rozwiązanie może być stosowane przez ludzi cierpliwych, gdyż prędkość nie nadaje się do komunikacji z serwerami. Jednakże cel był prosty - wykonywanie szybkie kopii bezpieczeństwa.</p><p><strong>Salon</strong> - największa odległość pomiędzy urządzeniami. Główny cel to wzmocnienie sieci bezprzewodowej i dostarczenie Internetu do urządzeń takich jak konsola i telewizor. W tym przypadku PLC miało być jako główny dostawca Internetu a posłużył jako zapasowe łącze, mostek pomiędzy cAP AC działa dużo lepiej. Tak samo jak w przypadku <strong>Korytarza</strong>, może posłużyć jako zasilanie, do komunikacji dla kamer IP lub zapasowe łącze <em>kablowe</em>.</p><p>Dodatkowo w salonie wykonałem dwa testy:</p><p><strong>Bez lodówki</strong> - sprawdzenie jak działa PLC bez jednego z największych wrogów czyli lodówki. Często w różnych materiałach dostępnych w Internecie jest mowa o tym, że wrogiem dla PLC są urządzenia takie jak pralka czy lodówka. Powiem szczerze, że nie zauważyłem dużych zmian z włączoną lodówką czy bez. Co ważne, lodówka jest w osobnym obwodzie i nie jest podłączona za pomocą listwy. Większy wpływ lodówki na transmisje było w <strong>starej sieci</strong>, gdzie całość pracowała na jednym obwodzie.</p><p><strong>Tania listwa</strong> - symboliczny test w celu sprawdzenia czy stosowanie listwy pomaga albo szkodzi. Połączenie odbywało się pomiędzy pokojami, gdzie jedno z urządzeń było podłączone do tzw. <em>taniej listwy</em>, która nie posiada bezpiecznika i tylko rozdziela prąd. Jak można zauważyć na wykresie, tylko zaszkodziła i jest odpowiednikiem połączenia w podwójnym gnieździe.</p><p>Temat listwy w testach występował dwukrotnie, w scenariuszu z <strong>Salonem</strong> zaszkodził a przy rozwiązaniu <strong>P2P</strong> za pomocą listwy, ukazał maksymalna prędkość jaka jest możliwa w połączeniu z uziemieniem (trzech żył). </p><p>Dla porównania pokazuje wykres połączenia pomiędzy komputerami bez  zastosowania jakichkolwiek urządzeń przełączników i PLC.</p><!--kg-card-begin: image--><figure class="kg-card kg-image-card"><img src="https://maszyk.azurewebsites.net/content/images/2020/06/P2P.png" class="kg-image" alt="Sieć przez sieć"></figure><!--kg-card-end: image--><p><strong>Podsumowanie</strong></p><p>Urządzenia godne polecenie do zapewnienia transmisji i zasilania prostych urządzeń takich jak kamery IP lub inne IoT. Dla osób mniej wymagających a nie chcących budować sieci MESH jest to rozwiązanie idealne. O czym warto wspomnieć, to zwiększone bezpieczeństwo w porównaniu do sieci bezprzewodowej. W ramach sieci PLC mamy zapewnione bezpieczeństwo transmisji a korzystając z urządzeń Mikrotik, możemy w prosty sposób dodatkowo zaszyfrować ruch za pomocą IPSEC.</p><p>Negatywną stroną urządzenia jest to, że zajmuje gniazdo. W ramach rekompensaty Mikrotik zapewnił zasilanie POE, które starczy nam do kamery, IoT lub urządzenia sieciowego takiego jak Switch czy Access Point.</p><p>Dziękuje za cierpliwe przeczytanie artykułu.</p><p><strong><em>Urządzenia do testów udostępnił sklep <a href="https://www.wisp.pl/">www.wisp.pl</a></em></strong></p>]]></content:encoded></item><item><title><![CDATA[Access to Azure Data Lake Storage Gen2 with Hadoop]]></title><description><![CDATA[<p>Hadoop FileSystem is one of the primary access methods for data in Azure Data Lake Storage Gen2. Users of Azure Blob Storage have access to ADLS Gen2 by new driver, the Azure Blob File System driver as ABFS.</p><p>ABFS driver is part of Apache Hadoop. </p><h2 id="how-it-is-possible">How it is possible?</h2><ol><li>Download</li></ol>]]></description><link>https://maszyk.azurewebsites.net/access-to-azure-storage-datalake-gen2-by-hadoop/</link><guid isPermaLink="false">5cbcdfd744635d37485b52f6</guid><dc:creator><![CDATA[Mateusz Aszyk]]></dc:creator><pubDate>Tue, 07 May 2019 07:44:44 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1484662020986-75935d2ebc66?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1484662020986-75935d2ebc66?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Access to Azure Data Lake Storage Gen2 with Hadoop"><p>Hadoop FileSystem is one of the primary access methods for data in Azure Data Lake Storage Gen2. Users of Azure Blob Storage have access to ADLS Gen2 by new driver, the Azure Blob File System driver as ABFS.</p><p>ABFS driver is part of Apache Hadoop. </p><h2 id="how-it-is-possible">How it is possible?</h2><ol><li>Download the newest Hadoop (doesn't work with 3.1.2), extract and move to <em>/opt/</em>:</li></ol><!--kg-card-begin: code--><pre><code>curl -O http://ftp.man.poznan.pl/apache/hadoop/common/hadoop-3.2.0/hadoop-3.2.0.tar.gz
tar -zxf hadoop-3.2.0.tar.gz
sudo mv hadoop-3.2.0 /opt/
</code></pre><!--kg-card-end: code--><p>2. You should have the newest Java that you can install by yum or other packages manager:</p><!--kg-card-begin: code--><pre><code>yum install -y java-1.8.0-openjdk
</code></pre><!--kg-card-end: code--><p>3. Add to <em>.bashrc</em> file and relogon:</p><!--kg-card-begin: code--><pre><code>export HADOOP_HOME=/opt/hadoop-3.2.0
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export HADOOP_SHARE=$HADOOP_HOME/share/hadoop
export HADOOP_CLASSPATH=$(find $HADOOP_SHARE -name '*.jar' | xargs echo | tr ' ' ':')
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0
export PATH=$PATH:$HADOOP_HOME/bin
</code></pre><!--kg-card-end: code--><p>In class path you need using <em>find</em> command because HDFS needs all jar and it can't recursively attach library.</p><p>4. It is possible to have two and more authorization access to storage. All authorization must be edit in <em>core-site.xml </em>($HADOOP_HOME/etc/hadoop/)</p><p>SharedKey:</p><!--kg-card-begin: code--><pre><code>&lt;configuration&gt;
        &lt;property&gt;
                &lt;name&gt;fs.azure.account.key.[ADLSgen2-name].dfs.core.windows.net&lt;/name&gt;
                &lt;value&gt;[SharedKey]&lt;/value&gt;
        &lt;/property&gt;
&lt;/configuration&gt;
</code></pre><!--kg-card-end: code--><p>OAuth 2.0 Client Credentials</p><!--kg-card-begin: code--><pre><code>&lt;configuration&gt;
&lt;property&gt;
  	&lt;name&gt;fs.azure.account.auth.type&lt;/name&gt;
  	&lt;value&gt;OAuth&lt;/value&gt;
  	&lt;description&gt;
  	Use OAuth authentication
  	&lt;/description&gt;
&lt;/property&gt;
&lt;property&gt;
	&lt;name&gt;fs.azure.account.oauth.provider.type&lt;/name&gt;
	&lt;value&gt;org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider&lt;/value&gt;
	&lt;description&gt;
	Use client credentials
	&lt;/description&gt;
&lt;/property&gt;
&lt;property&gt;
	&lt;name&gt;fs.azure.account.oauth2.client.endpoint&lt;/name&gt;
	&lt;value&gt;https://login.microsoftonline.com/[ServicePrincipal-TenandID]/oauth2/token&lt;/value&gt;
  	&lt;description&gt;
  	URL of OAuth endpoint
  	&lt;/description&gt;
&lt;/property&gt;
&lt;property&gt;
  	&lt;name&gt;fs.azure.account.oauth2.client.id&lt;/name&gt;
  	&lt;value&gt;[ServicePrincipal-ID]&lt;/value&gt;
  	&lt;description&gt;
  	Client ID
  	&lt;/description&gt;
&lt;/property&gt;
&lt;property&gt;
  	&lt;name&gt;fs.azure.account.oauth2.client.secret&lt;/name&gt;
  	&lt;value&gt;[ServicePrincipal-Secret]&lt;/value&gt;
  	&lt;description&gt;
  	Secret
  	&lt;/description&gt;
&lt;/property&gt;
&lt;/configuration&gt;
</code></pre><!--kg-card-end: code--><p>5. Create first directory by tool:</p><!--kg-card-begin: code--><pre><code>hdfs dfs -mkdir abfss://[FileSystem]@[YourDataLake].dfs.core.windows.net/[new-directory]
</code></pre><!--kg-card-end: code--><p></p><p>This is simple way to access ADLS files.</p><p>If you have a different solution, I invited you to the <a href="https://www.facebook.com/groups/azureugpl/?ref=group_header">Microsoft Azure User Group Poland</a>.</p>]]></content:encoded></item><item><title><![CDATA[Big (Data) Logs]]></title><description><![CDATA[<p>When logs are too big it is a perfect timing to thing about something bigger. An ideal place for large amounts of data is Big Data. In this case it will be Hadoop which works well with Syslog-ng.</p><p>When you have no power to build BigData environment, a good idea</p>]]></description><link>https://maszyk.azurewebsites.net/big-data-logs/</link><guid isPermaLink="false">5cbb9a19560d4a755491f425</guid><category><![CDATA[Azure]]></category><dc:creator><![CDATA[Mateusz Aszyk]]></dc:creator><pubDate>Sat, 27 Apr 2019 20:35:05 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1506399441630-774ef431470f?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1506399441630-774ef431470f?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Big (Data) Logs"><p>When logs are too big it is a perfect timing to thing about something bigger. An ideal place for large amounts of data is Big Data. In this case it will be Hadoop which works well with Syslog-ng.</p><p>When you have no power to build BigData environment, a good idea is to use Azure Data Lake Storage Gen2. More information about common features between ADLS Gen2 and Hadoop You can find in the <a href="https://docs.microsoft.com/pl-pl/azure/storage/blobs/data-lake-storage-introduction">documentation</a>. <a href="https://lnx.azurewebsites.net/">Michał Smereczyński</a> suggested to me the idea to start sending logs to ADLS by syslog-ng with HDFS. </p><h2 id="preparation-of-the-environment">Preparation of the environment</h2><p>When you have environment build on something else, for example Graylog or ELK Stack, you need to change it a little bit. Syslog-ng can possibly collect logs and it can be sent to a given localization. Service provider suggests in its <a href="https://www.syslog-ng.com/community/b/blog/posts/filling-your-data-lake-with-log-messages-the-syslog-ng-hadoop-hdfs-destination">post </a>that you can send logs to HDFS. I don't have HDFS but in ABFS (Azure Blob Filesystem) it isn't a problem because Hadoop supports it. </p><p>The configuration is very similar to the one available on the provider post:</p><!--kg-card-begin: code--><pre><code>destination d_hdfs {
        hdfs(
		# directory with Hadoop classes
                client-lib-dir("/opt/hadoop/")
                hdfs-uri("abfs://logs@biglogslinux.dfs.core.windows.net")
                hdfs-file("/user/log/log-$DAY-$HOUR.txt")
		# authorization file with properties like core-site.xml
                hdfs-resources("/opt/hdfs.xml")
                hdfs-append-enabled(true)
        );
};
</code></pre><!--kg-card-end: code--><p>Authorization file and access to logs will be described next time.</p><p>In the next steps you should configure filter and source, for example:</p><!--kg-card-begin: code--><pre><code>source log_net {
    tcp();
    udp();
};

log {
    source(log_net);
    destination(d_hdfs);
};
</code></pre><!--kg-card-end: code--><p>After that, you send logs from other servers to BigData.</p>]]></content:encoded></item></channel></rss>