apache / bookkeeper

Apache BookKeeper - a scalable, fault tolerant and low latency storage service optimized for append-only workloads
https://bookkeeper.apache.org/
Apache License 2.0
1.9k stars 903 forks source link

bin/bookkeeper failed on windows11 #4356

Open paressuex11 opened 4 months ago

paressuex11 commented 4 months ago

BUG REPORT

Describe the bug

I tried using git bash to run bin/bookkeeper on windows. But it failed.

error msg is like

$ bin/bookkeeper localbookie 1
[0.003s][error][logging] Error opening log file '/c/Users/user/Desktop/bookkeeper-all-4.18.0-SNAPSHOT-bin/bookkeeper-all-4.18.0-SNAPSHOT/logs/gc_10280.log': No such file or directory
[0.003s][error][logging] Initialization of output 'file=/c/Users/user/Desktop/bookkeeper-all-4.18.0-SNAPSHOT-bin/bookkeeper-all-4.18.0-SNAPSHOT/logs/gc_%p.log' using options 'filecount=5,filesize=64m' failed.
Invalid -Xlog option '-Xlog:gc=info:file=/c/Users/user/Desktop/bookkeeper-all-4.18.0-SNAPSHOT-bin/bookkeeper-all-4.18.0-SNAPSHOT/logs/gc_%p.log::filecount=5,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

To Reproduce

Steps to reproduce the behavior:

  1. run mvn package on windows11
  2. untar bookkeeper-all-VersionNum.tar.gz
  3. open git bash terminal
  4. run bin/bookkeeper localbookie 1

Additional context

it might be related to jvm or other differences between windows and linux.

zhengxiongxie commented 4 months ago

same