Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Getting Started

Updated on 2024-06-27 GMT+08:00

This section describes how to use Pulsar. For details, see Pulsar Overview.

By default, all service ports involved in this solution are accessible within the same subnet. You can modify the security group rules if needed. The service ports are as follows:
  • 9527 for the Pulsar manager node
  • 2181, 2888, and 3888 for Pulsar ZooKeeper nodes
  • 8000, 3181, 4181 for Pulsar bookie nodes
  • 6650, 6651, 8080, 8443 for Pulsar broker nodes

NOTE:
  • By default, this solution uses Pulsar 3.1.0 and deploys Java JDK-21 and Pulsar Manager 0.4.0.
  • A cluster named pulsar-cluster has been created in Pulsar by default.

(Optional) Modifying Security Group Rules

A security group is a collection of access control rules for traffic to and from cloud resources, such as cloud servers, containers, and databases. Cloud resources associated with the same security group have the same security requirements and are mutually trusted within a given VPC.

You can modify security group rules, for example, by adding, modifying, or deleting a TCP port, as follows:

  • Adding a security group rule: Add an inbound rule and enable a TCP port if needed.
  • Modifying a security group rule: Inappropriate security group settings may introduce serious security risks. You can modify security group rules to ensure the network security of your ECSs.
  • Deleting a security group rule: If the source or destination IP address of an inbound or outbound security group rule changes, or a port needs to be disabled, you can delete the security group rule.

Procedure

  1. Log in to the ECS console to check whether the ECSs have been successfully created and check the EIP of the manager node.

    Figure 1 Checking ECSs and the EIP (marked as Manager-ip) of the Pulsar manager node

  2. Log in to the Pulsar Manager.

    After ECSs are created, the environment starts to be deployed in the background. About 20 minutes later, the Pulsar cluster is created. Then, you can log in to the Pulsar Manager at http://manager-ip:9527.

    CAUTION:
    • Before logging in, ensure that port 9527 has been enabled on the Pulsar manager node for the client. If it is not enabled, modify security group rules.
    • By default, admin is configured as the administrative user of the Pulsar cluster, and JSON Web Token (JWT) authentication is enabled.
    • The default username and password are used for login.
      • Default username: admin
      • Default password: password used for creating ECSs
    Figure 2 Pulsar Manager login page

  3. (Optional) Check whether the Pulsar cluster has been deployed.

    Figure 3 Logging in to any ZooKeeper node and connecting to the ZooKeeper server

    Figure 4 Checking whether the active ZooKeeper node is the same as the existing ZooKeeper node

    Figure 5 Checking whether the active bookie node is the same as the existing bookie node

    Figure 6 Checking whether the active broker node is the same as the existing broker node

  4. Add the new environment to Pulsar Manager.

    Figure 7 Adding the new environment with any broker or bookie node

  5. View Pulsar details.

    Figure 8 Viewing Pulsar details (built-in cluster name: pulsar-cluster)

  6. Add a new tenant.

    Figure 9 Adding a new tenant

  7. Create a namespace.

    Figure 10 Creating a namespace

  8. Add a topic.

    Figure 11 Adding a topic

  9. Generate a token.

    Figure 12 Generating a token

    The Pulsar cluster has been deployed. You can now integrate the Pulsar applications into your applications.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback