You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/06/01 11:09:10 UTC

[GitHub] [bookkeeper] 10fish opened a new issue #2726: Run failed with JAVA_HOME env containing space(s)

10fish opened a new issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726


   **BUG REPORT**
   
   ***Describe the bug***
   
   ran locally with `$ ./bin/bookkeeper localbookie 10` on my mac, failed.
   
   ***To Reproduce***
   
   Steps to reproduce the behavior:
   1. run `mvn clean install` with a success.
   2. run `./bin/bookkeeper localbookie 10` just under the root of the project 
   
   ***Expected behavior***
   
   output looks like:
   ```text
   $ ./bin/bookkeeper localbookie 10                                        
   ./bin/bookkeeper: line 166: /Library/Internet: No such file or directory
   
   ```
   
   ***Additional context***
   
   after printing variables before the line where error occurs, I find out JAVA_HOME variable on my mac as following:
   
   ```text
   $ echo $JAVA_HOME
   /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Ghatage closed issue #2726: Run failed with JAVA_HOME env containing space(s)

Posted by GitBox <gi...@apache.org>.
Ghatage closed issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] 10fish commented on issue #2726: Run failed with JAVA_HOME env containing space(s)

Posted by GitBox <gi...@apache.org>.
10fish commented on issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726#issuecomment-852649818


   Yeah, I just did that, and it worked. I just wonder whether there should be a fix. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Sunny-Island commented on issue #2726: Run failed with JAVA_HOME env containing space(s)

Posted by GitBox <gi...@apache.org>.
Sunny-Island commented on issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726#issuecomment-852150752


   I think adding double quotation can also works.
   open bin/bookkeeper in vim or other editor, change 166 line:
   `  exec ${JAVA} ${OPTS} ${JMX_ARGS} -Dzookeeper.4lw.commands.whitelist='*' org.apache.bookkeeper.util.LocalBookKeeper ${NUMBER} ${BOOKIE_CONF} $@`
   to
   `  exec "${JAVA}" ${OPTS} ${JMX_ARGS} -Dzookeeper.4lw.commands.whitelist='*' org.apache.bookkeeper.util.LocalBookKeeper ${NUMBER} ${BOOKIE_CONF} $@`
   
   just add double quotation around `${JAVA}`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Sunny-Island commented on issue #2726: Run failed with JAVA_HOME env containing space(s)

Posted by GitBox <gi...@apache.org>.
Sunny-Island commented on issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726#issuecomment-852130414


   I have reproduced this error.
   It seems caused by the space in `JAVA_HOME`.
   Try to install new java in MacOS and change `JAVA_HOME` path.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Sunny-Island commented on issue #2726: Run failed with JAVA_HOME env containing space(s)

Posted by GitBox <gi...@apache.org>.
Sunny-Island commented on issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726#issuecomment-853601523


   [#2727](https://github.com/apache/bookkeeper/pull/2727)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] Sunny-Island commented on issue #2726: Run failed with JAVA_HOME env containing space(s)

Posted by GitBox <gi...@apache.org>.
Sunny-Island commented on issue #2726:
URL: https://github.com/apache/bookkeeper/issues/2726#issuecomment-853601523


   [#2727](https://github.com/apache/bookkeeper/pull/2727)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org