a little change needed of pulsar cli
See original GitHub issueIs your feature request related to a problem? Please describe. When I tried to use pulsar cli to test my code, send a json string to a topic, like this:
./pulsar-client produce my-topic --messages '{"appId":"test","userId":38,"phone":"13800138000","score":664}'
But the default behavior of pulsar-client produce is use comma as separator to divide messages, so my json divided into several messages which I didn’t want to, like this:
19:06:03.742 [main] INFO org.apache.pulsar.client.cli.PulsarClientTool - 4 messages successfully produced
And I couldn’t find any way to escape the comma(backslash / double backslash did not work). And after that I try to put the json into a file and use -f option, like:
./pulsar-client produce my-topic -f ./test.json
And I got
java.nio.file.NoSuchFileException: ./test.json
So I had to use the full path.
Describe the solution you’d like
- Do not use comma as default separator in cli, or at least tell users how to escape it in the command line help.
- Support relative path in cli as other clis.
Describe alternatives you’ve considered I can’t imagine.
Additional context none.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Pulsar command-line tools
The pulsar tool is used to start Pulsar components, such as bookies and ZooKeeper, in the foreground. These processes can also be started...
Read more >Apache Pulsar Client Application Best Practices - StreamNative
In this blog post, I will provide an in-depth review of the internal details of Apache Pulsar producers and consumers.
Read more >Transform Functions :: DataStax Streaming Docs
A Pulsar transform function is a low-code implementation of Pulsar functions. ... The transform function will initialize and begin processing data changes.
Read more >BUYERS GUIDE: CLIP-ON THERMALS - Pulsar
I don't need to reach for the spotting scope when shooting out to 200m. But even at 3x, the magnification is just a...
Read more >How To Change A Watch Battery - Watch and Learn #43
Today's episode of Watch and Learn helps you with something we can all relate to. You go to put on your battery operated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey @liketic, I’ve got the same issue on the latest (2.5.0) version of Pulsar.
Hi,
This still appears to be broken (using version 2.5.0)