<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sh3hz</title>
    <description>The latest articles on DEV Community by sh3hz (@sh3hz).</description>
    <link>https://dev.to/sh3hz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F308659%2F548f5541-8199-4777-b178-3bd08334d3b2.jpg</url>
      <title>DEV Community: sh3hz</title>
      <link>https://dev.to/sh3hz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sh3hz"/>
    <language>en</language>
    <item>
      <title>How to run Jenkins in Windows</title>
      <dc:creator>sh3hz</dc:creator>
      <pubDate>Fri, 12 Jan 2024 15:29:03 +0000</pubDate>
      <link>https://dev.to/sh3hz/how-to-run-jenkins-in-windows-1m95</link>
      <guid>https://dev.to/sh3hz/how-to-run-jenkins-in-windows-1m95</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YJM3Cmfb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ley3uynzkr0h3410a0f2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YJM3Cmfb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ley3uynzkr0h3410a0f2.png" alt="jenkins-docker-windows-icons" width="800" height="450"&gt;&lt;/a&gt;&lt;em&gt;Jenkins is a popular open-source tool for automating software development processes.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Prerequisites:
&lt;/h2&gt;

&lt;p&gt;A windows system with docker installed.&lt;/p&gt;




&lt;h2&gt;
  
  
  Steps for Jenkins Docker deployment in Windows:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open a Command Prompt or PowerShell with administrative privileges and run the following command to pull and run the official Jenkins docker image:&lt;br&gt;
&lt;code&gt;docker run -p 8080:8080 -p 50000:50000 -v C:\path\to\your\jenkins_home:/var/jenkins_home jenkins/jenkins:lts&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Replace &lt;code&gt;C:\path\to\your\jenkins_home&lt;/code&gt; with the local path where you want Jenkins to store its data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once the Jenkins container is running, open a web browser and navigate to &lt;a href="http://localhost:8080"&gt;http://localhost:8080&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Retrieve the initial administrator password by running the following command:&lt;br&gt;
&lt;code&gt;docker exec -it &amp;lt;container_id&amp;gt; cat /var/jenkins_home/secrets/initialAdminPassword&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Replace  with the actual ID or name of your running Jenkins container.&lt;/p&gt;

</description>
      <category>jenkins</category>
      <category>docker</category>
      <category>windows</category>
      <category>devops</category>
    </item>
    <item>
      <title>Apache Kafka: Quickstart: Binary Deployment in Windows</title>
      <dc:creator>sh3hz</dc:creator>
      <pubDate>Sat, 23 Sep 2023 09:59:26 +0000</pubDate>
      <link>https://dev.to/sh3hz/apache-kafka-quickstart-binary-deployment-in-windows-423m</link>
      <guid>https://dev.to/sh3hz/apache-kafka-quickstart-binary-deployment-in-windows-423m</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Windows installation guide for &lt;em&gt;&lt;a href="https://kafka.apache.org/quickstart"&gt;https://kafka.apache.org/quickstart&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Downloading the Application
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MoUKEMfF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4s2miybuxq44xn3c8wvp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MoUKEMfF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4s2miybuxq44xn3c8wvp.png" alt="Image description" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Official download page - &lt;a href="https://kafka.apache.org/downloads"&gt;https://kafka.apache.org/downloads&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Choose the latest version:  kafka_2.13-3.5.1.tgz (Current)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Installation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Extract the Downloaded file (.tgz) with any file archiver like &lt;a href="https://www.7-zip.org/download.html"&gt;7zip&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;After extracting you'll get a TAR File (.tar), Again extract the TAR file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NaEnJAfj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9ztbl5o7wj1tbwgkfea.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NaEnJAfj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9ztbl5o7wj1tbwgkfea.png" alt="Image description" width="800" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Configuration
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Update &lt;strong&gt;server.properties&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create new Directory - &lt;em&gt;C:\tmp\kafka-logs&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Update &lt;em&gt;&lt;strong&gt;log.dirs&lt;/strong&gt;=C:\tmp\kafka-logs&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Update &lt;strong&gt;zookeeper.properties&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create new Directory - &lt;em&gt;C:\tmp\zookeeper&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Update &lt;em&gt;_*dataDir&lt;/em&gt;*=C:\tmp\zookeeper_&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Running the Kafka Application
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Kafka with ZooKeeper
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Start Zookeeper Server&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;.\bin\windows\zookeeper-server-start.bat config\zookeeper.properties&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ufn_--Me--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4mgmkp6rr8v14i99w7f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ufn_--Me--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4mgmkp6rr8v14i99w7f.png" alt="Image description" width="800" height="83"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2p_b_mIs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7nmfdc5x3ysf2tzbdd6m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2p_b_mIs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7nmfdc5x3ysf2tzbdd6m.png" alt="Image description" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start Kafka Server&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;.\bin\windows\kafka-server-start.bat config\server.properties&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SHoXHk3s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bes5jpk51dyde204vaet.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SHoXHk3s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bes5jpk51dyde204vaet.png" alt="Image description" width="800" height="81"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ca3eIm0e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/omnkk0kssog17y42zxr3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ca3eIm0e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/omnkk0kssog17y42zxr3.png" alt="Image description" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Create Topic
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Topic name: quickstart-events&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;.&lt;em&gt;\bin\windows\kafka-topics.bat --create --topic quickstart-events --bootstrap-server localhost:9092&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w5M5uVnd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cinluojncv2aicbfoi85.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w5M5uVnd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cinluojncv2aicbfoi85.png" alt="Image description" width="800" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Et9cF3Ey--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/che20bwr99wkw1uajdlf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Et9cF3Ey--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/che20bwr99wkw1uajdlf.png" alt="Image description" width="800" height="88"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Producer: Write some events to topic
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;.\bin\windows\kafka-console-producer.bat --topic quickstart-events --bootstrap-server localhost:9092&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6pikMQi---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pc7wry7jr5k1prn1ofd6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6pikMQi---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pc7wry7jr5k1prn1ofd6.png" alt="Image description" width="800" height="69"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Consumer: Read the events
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;.\bin\windows\kafka-console-consumer.bat --topic quickstart-events --from-beginning --bootstrap-server localhost:9092&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--n0sP_S7F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cbl2g4ujl6z8r58bav0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n0sP_S7F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cbl2g4ujl6z8r58bav0w.png" alt="Image description" width="800" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Stream messages
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Add a message in &lt;em&gt;Producer&lt;/em&gt; console from Step 6&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oFymChUv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v0tidxmhho0j2j6sq4sz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oFymChUv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v0tidxmhho0j2j6sq4sz.png" alt="Image description" width="800" height="73"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Message is streamed to the &lt;em&gt;Consumer&lt;/em&gt; console from Step 7&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_HS6xOU5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q69svto8au54ins39bf5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_HS6xOU5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q69svto8au54ins39bf5.png" alt="Image description" width="800" height="86"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kafka</category>
      <category>windows</category>
      <category>installation</category>
      <category>java</category>
    </item>
  </channel>
</rss>
