{"id":14424,"date":"2025-03-18T16:21:26","date_gmt":"2025-03-18T10:51:26","guid":{"rendered":"https:\/\/www.skynats.com\/?p=14424"},"modified":"2025-03-18T16:21:30","modified_gmt":"2025-03-18T10:51:30","slug":"installing-apache-pulsar-on-ubuntu-24","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/","title":{"rendered":"Installing Apache Pulsar on Ubuntu 24"},"content":{"rendered":"\n<p>Apache Pulsar is a powerful distributed messaging and event streaming platform that supports multi-tenancy, high availability, and scalability. It\u2019s often used for building modern messaging systems, stream processing applications, and event-driven microservices.<\/p>\n\n\n\n<p>This blog will walk you through the steps of installing Apache Pulsar on <a href=\"https:\/\/ubuntu.com\/\">Ubuntu<\/a> 24.<\/p>\n\n\n\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p>Before installing Apache Pulsar, you will need to ensure that your system is updated and has Java installed, as Pulsar requires Java 17 or later.<\/p>\n\n\n\n<p>Update the system packages:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade -y<\/code><\/pre>\n\n\n\n<p>Install Java:<\/p>\n\n\n\n<p>Apache Pulsar requires Java, and we will use OpenJDK 11 here.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install openjdk-17-jre-headless -y<\/code><\/pre>\n\n\n\n<p>Verify that Java is installed correctly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -version<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-download-and-install-apache-pulsar\" style=\"font-size:18px\"><strong>Download and Install Apache Pulsar<\/strong><\/h2>\n\n\n\n<p>Go to the Apache Pulsar Downloads page to get the latest version. Or, use wget to download it directly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/downloads.apache.org\/pulsar\/pulsar-4.0.1\/apache-pulsar-4.0.1-bin.tar.gz<\/code><\/pre>\n\n\n\n<p>Extract the Pulsar tarball:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xvzf apache-pulsar-4.0.1-bin.tar.gz\ncd apache-pulsar-4.0.1<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-start-pulsar-in-standalone-mode\" style=\"font-size:18px\"><strong>Start Pulsar in Standalone Mode<\/strong><\/h3>\n\n\n\n<p>Start Pulsar in standalone mode:<\/p>\n\n\n\n<p>Apache Pulsar can be run in &#8220;standalone&#8221; mode for development and testing. This mode runs both Pulsar brokers and a ZooKeeper instance locally. To start Pulsar, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bin\/pulsar-daemon start standalone<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-pulsar-s-cli-for-topic-management\" style=\"font-size:18px\"><strong>Use Pulsar&#8217;s CLI for Topic Management<\/strong><\/h3>\n\n\n\n<p>Now that Pulsar is running, you can interact with it using the Pulsar Admin CLI.<\/p>\n\n\n\n<p>Create a topic:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bin\/pulsar-admin topics create persistent:\/\/public\/default\/my-topic<\/code><\/pre>\n\n\n\n<p>Publish a message to the topic:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bin\/pulsar-client produce my-topic --messages \"Hello, Pulsar!\"<\/code><\/pre>\n\n\n\n<p>Consume the message from the topic:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/bin\/pulsar-client consume my-topic -s \"my-subscription\" -n 1<\/code><\/pre>\n\n\n\n<p>This will consume a single message from the topic my-topic.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-pulsar-as-a-service\" style=\"font-size:18px\"><strong>Pulsar as a service<\/strong><\/h4>\n\n\n\n<p>You can create a systemd service to manage the Pulsar process.&nbsp;<\/p>\n\n\n\n<p>Create a new file in \/etc\/systemd\/system\/pulsar.service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/systemd\/system\/pulsar.service<\/code><\/pre>\n\n\n\n<p>Add the following content to the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=Apache Pulsar Service\nAfter=network.target\n\n&#91;Service]\nType=forking\nExecStart=\/path\/to\/apache-pulsar-4.0.1\/bin\/pulsar-daemon start standalone\nExecStop=\/path\/to\/apache-pulsar-4.0.1\/bin\/pulsar-daemon stop\nRestart=always\nUser=your-user\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>Reload systemd and enable the Pulsar service to start on boot:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl daemon-reload\nsudo systemctl enable pulsar\nsudo systemctl start pulsar<\/code><\/pre>\n\n\n\n<p>In just a few steps, you can have Apache Pulsar up and running on your Ubuntu 24 system. Pulsar\u2019s powerful messaging system with high throughput, scalability, and low latency makes it ideal for real-time event streaming and distributed applications.<\/p>\n\n\n\n<p>This installation guide sets up a standalone Pulsar instance, which is suitable for local development and testing. If you&#8217;re planning to deploy Pulsar in a production environment, you will need to configure it for multi-broker clusters, and consider factors like security, high availability, and replication.<\/p>\n\n\n\n<p>Let us know if you encounter any issues. To guarantee a seamless Apache Pulsar installation and configuration for all of your requirements, our <a href=\"https:\/\/www.skynats.com\/server-management\/\">server management services<\/a> offer professional help.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Pulsar is a powerful distributed messaging and event streaming platform that supports multi-tenancy, high availability, and scalability. It\u2019s often used for building modern messaging systems, stream processing applications, and event-driven microservices. This blog will walk you through the steps of installing Apache Pulsar on Ubuntu 24. Prerequisites Before installing Apache Pulsar, you will need [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[987],"class_list":["post-14424","post","type-post","status-publish","format-standard","hentry","category-blog","tag-installing-apache-pulsar"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Installing Apache Pulsar on Ubuntu 24 | Skynats<\/title>\n<meta name=\"description\" content=\"Ready to power up your data processing? Install Apache Pulsar on Ubuntu 24 with our quick and detailed tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Apache Pulsar on Ubuntu 24\" \/>\n<meta property=\"og:description\" content=\"Ready to power up your data processing? Install Apache Pulsar on Ubuntu 24 with our quick and detailed tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-18T10:51:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-18T10:51:30+00:00\" \/>\n<meta name=\"author\" content=\"Sajna VM\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sajna VM\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/\"},\"author\":{\"name\":\"Sajna VM\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/670799cac44dade2781ac6c4973426be\"},\"headline\":\"Installing Apache Pulsar on Ubuntu 24\",\"datePublished\":\"2025-03-18T10:51:26+00:00\",\"dateModified\":\"2025-03-18T10:51:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/\"},\"wordCount\":369,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"Installing Apache Pulsar\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/\",\"name\":\"Installing Apache Pulsar on Ubuntu 24 | Skynats\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2025-03-18T10:51:26+00:00\",\"dateModified\":\"2025-03-18T10:51:30+00:00\",\"description\":\"Ready to power up your data processing? Install Apache Pulsar on Ubuntu 24 with our quick and detailed tutorial.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/installing-apache-pulsar-on-ubuntu-24\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Apache Pulsar on Ubuntu 24\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/670799cac44dade2781ac6c4973426be\",\"name\":\"Sajna VM\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be4874edc2bd263b9580e37403a031ea2867817157fdfb16709303982f093c44?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be4874edc2bd263b9580e37403a031ea2867817157fdfb16709303982f093c44?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be4874edc2bd263b9580e37403a031ea2867817157fdfb16709303982f093c44?s=96&d=mm&r=g\",\"caption\":\"Sajna VM\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Installing Apache Pulsar on Ubuntu 24 | Skynats","description":"Ready to power up your data processing? Install Apache Pulsar on Ubuntu 24 with our quick and detailed tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/","og_locale":"en_US","og_type":"article","og_title":"Installing Apache Pulsar on Ubuntu 24","og_description":"Ready to power up your data processing? Install Apache Pulsar on Ubuntu 24 with our quick and detailed tutorial.","og_url":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2025-03-18T10:51:26+00:00","article_modified_time":"2025-03-18T10:51:30+00:00","author":"Sajna VM","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Sajna VM","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/"},"author":{"name":"Sajna VM","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/670799cac44dade2781ac6c4973426be"},"headline":"Installing Apache Pulsar on Ubuntu 24","datePublished":"2025-03-18T10:51:26+00:00","dateModified":"2025-03-18T10:51:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/"},"wordCount":369,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["Installing Apache Pulsar"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/","url":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/","name":"Installing Apache Pulsar on Ubuntu 24 | Skynats","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2025-03-18T10:51:26+00:00","dateModified":"2025-03-18T10:51:30+00:00","description":"Ready to power up your data processing? Install Apache Pulsar on Ubuntu 24 with our quick and detailed tutorial.","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/installing-apache-pulsar-on-ubuntu-24\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Installing Apache Pulsar on Ubuntu 24"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/670799cac44dade2781ac6c4973426be","name":"Sajna VM","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/be4874edc2bd263b9580e37403a031ea2867817157fdfb16709303982f093c44?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/be4874edc2bd263b9580e37403a031ea2867817157fdfb16709303982f093c44?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/be4874edc2bd263b9580e37403a031ea2867817157fdfb16709303982f093c44?s=96&d=mm&r=g","caption":"Sajna VM"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=14424"}],"version-history":[{"count":2,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14424\/revisions"}],"predecessor-version":[{"id":14443,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14424\/revisions\/14443"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=14424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=14424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=14424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}