-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][cli] Pulsar shell, Pulsar admin, Pulsar client and Pulsar perf: support for Windows #17243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve][cli] Pulsar shell, Pulsar admin, Pulsar client and Pulsar perf: support for Windows #17243
Conversation
pulsar-client-tools/src/main/java/org/apache/pulsar/shell/PulsarShell.java
Show resolved
Hide resolved
eolivelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#16688 refers also to pulsar-admin.
this patch does not completely fixes that issue.
Also we should do this also for pulsar-admin, pulsar-client, pulsar-perf and pulsar standalone
eolivelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
great work !
|
@eolivelli license check is failing |
7c6929a to
c77668a
Compare
tisonkun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a Windows environment to verify these scripts, though.
59d6b5b to
7fb69fa
Compare
…erf: support for Windows (apache#17243)
…erf: support for Windows (#17243)
| set "OPTS=%OPTS% -Dpulsar.routing.appender.default=%PULSAR_ROUTING_APPENDER_DEFAULT%" | ||
|
|
||
| :error | ||
| exit /b 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add this line? I cannot use pulsar-shell on Windows unless I removed this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a leftover, we can drop it
Fixes #16688
TL; DR - now Pulsar shell works on Windows

Motivation
Currently pulsar shell is only runnable on Unix system because the entry point script is written in bash.
Modifications
pulsar-shell.cmd,pulsar-admin.cmd,pulsar-client.cmdandpulsar-perf.cmdfiles (written in Windows Command Prompt language) that starts their processesIt implements the exact same configurations from the current pulsar-shell, even the java8 detection. The only thing not implemented is the on-the-fly compile. Actually, the batch script only work if you unzip the distro tarball. Running it from the codebase (so without the
libdir) is not supported (and it's okay since currently it's not even possible develop Pulsar on a Win machine)Added the jna lib to make the jline command prompt display colors correctly - will need to upgrade to the latest JNA version to fix some current issues
Added zip distribution to pulsar-shell (distribution/shell). The idea is to distribute both and suggest to download the .zip for Windows user
doc-not-needed