GithubHelp home page GithubHelp logo

edwardt / pulsarctl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from streamnative/pulsarctl

0.0 2.0 0.0 4.75 MB

a CLI for Apache Pulsar written in Go

License: Apache License 2.0

Go 98.60% Makefile 0.06% Shell 1.32% Dockerfile 0.02%

pulsarctl's Introduction

Language LICENSE GoDoc

Pulsarctl

A CLI tool for the Apache Pulsar project.

Available Releases

Version Reference
0.5.0 Command Reference
0.4.1 Command Reference
0.4.0 Command Reference
0.3.0 Command Reference
0.2.0 Command Reference
0.1.0 Command Reference

Install

Mac

You can install pulsarctl using homebrew on Mac.

brew tap streamnative/streamnative
brew install pulsarctl

Linux

sh -c "$(curl -fsSL https://raw.githubusercontent.com/streamnative/pulsarctl/master/install.sh)"

Windows

  1. Download the executable from https://github.com/streamnative/pulsarctl/releases.
  2. Add the pulsarctl directory to your system PATH.
  3. Type pulsarctl -h at CMD to test pulsarctl is work.

Build from code

Prerequisite

  • Go 1.11 +

If you have not installed Go, install it according to the installation instruction.

Since the go mod package management tool is used in this project, Go 1.11 or higher version is required.

Download Code

  1. Clone the project from GitHub to your local.
git clone https://github.com/streamnative/pulsarctl.git
  1. Use go mod to get the dependencies needed for the project.
go mod download

After entering the go mod download command, if some libs can not be downloaded, then you can download them by referring to the proxy provided by GOPROXY.io.

Build

export GO111MODULE=on

go build -o pulsarctl main.go

Enable Auto-Completion

If you want to enable autocompletion in shell, see enable_completion.

Project Status

The following is an incomplete list of features that are not yet implemented:

Functions

  • localrun

Sources

  • localrun
  • available-sources
  • reload

Sinks

  • localrun
  • available-sources
  • reload

Schemas

  • extract

Namespaces

  • delete-bookie-affinity-group
  • get-bookie-affinity-group
  • set-bookie-affinity-group

Bookies

  • racks-placement
  • get-bookie-rack
  • delete-bookie-rack
  • set-bookie-rack

Different With Java Pulsar Admin

We move the subscription commands from the Topics to the Subscriptions in pulsarctl.

pulsar-admin pulsarctl
bin/pulsar-admin topics create-subscription pulsarctl subscription create
bin/pulsar-admin topics unsubscribe pulsarctl subscription delete
bin/pulsar-admin topics skip pulsarctl subscription skip
bin/pulsar-admin topics expire-messages pulsarctl subscription expire
bin/pulsar-admin topics peek-messages pulsarctl subscription peek
bin/pulsar-admin topics reset-cursor pulsarctl subscription seek
bin/pulsar-admin topics subscriptions pulsarctl subscription list

Contribute

Contributions are welcomed and greatly appreciated. For more information about how to submit a patch and the contribution workflow, see CONTRIBUTING.md.

License

Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

pulsarctl's People

Contributors

zymap avatar wolfstudy avatar sijie avatar eronwright avatar rivernate avatar milos-matijasevic avatar flowchartsman avatar austince avatar evanbattaglia avatar liangyuanpeng avatar streamnativebot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.