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 2020/06/16 07:41:03 UTC

[GitHub] [bookkeeper] Gray-Fullbuster opened a new issue #2359: When I start up bookie,I found an extra port I don’t know

Gray-Fullbuster opened a new issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359


   ***netstat -anp | grep -i 'tcp\|udp' | grep LISTEN***
    
   (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
   tcp &ensp;    0 &ensp;      0 0.0.0.0:44659  &ensp;          0.0.0.0:*  &ensp;              LISTEN&ensp;   26062/java
   tcp &ensp;       0   &ensp;   0 0.0.0.0:32001        &ensp;   0.0.0.0:*     &ensp;          LISTEN      &ensp;26062/java
   tcp  &ensp;      0  &ensp;    0 0.0.0.0:32002   &ensp;        0.0.0.0:*   &ensp;            LISTEN      &ensp;26062/java
   
   Currently, we have enabled 2 ports,21001 is bookieport,21002 is prometheusport,but to 44659 ,I can't use this port,and when i restart bookie this port will change.I cant't understand where go wrong.
   26002 is bookie's pid
   bookkeeper version = 4.10.0


----------------------------------------------------------------
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] jiazhai commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645096696


   @Gray-Fullbuster Did you enabled HttpServer by set `httpServerEnabled=true`?


----------------------------------------------------------------
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] jiazhai commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645097530


   But it is strange since it will change after a restart. It does not seem like a config issue.
   Does every bookie have the same issue?


----------------------------------------------------------------
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] Gray-Fullbuster closed issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
Gray-Fullbuster closed issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359


   


----------------------------------------------------------------
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] Gray-Fullbuster commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
Gray-Fullbuster commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645187803


   I want to bind 0.0.0.0 to native ip.How should i do?


----------------------------------------------------------------
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] eolivelli commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645192780


   Are you talking about JMX or about the Bookie endpoint ?
   in the case of Bookie Endpoint it is not possible, because the ID of the bookie is made of pubblic-address + bookiePort
   this fact will change in the future (hopefully 4.12) but now this is how it works.
   
   So you can't bind to 0.0.0.0
   
   You could bind to 0.0.0.0 but you have to configure the "advertised address" that is the public DNS name that the bookie advertises on discovery service. This address cannot be easily changed in teh future, because it is written on ledger metadata


----------------------------------------------------------------
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] Gray-Fullbuster commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
Gray-Fullbuster commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645198459


   Sorry,My description is wrong.I want to change 0.0.0.0:32001 to 127.0.0.1:32001


----------------------------------------------------------------
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] eolivelli commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645185065


   There should be a way to configure a fixed port.
   But if you are not going to use JMX at all it is better to have it disabled.


----------------------------------------------------------------
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] Gray-Fullbuster commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
Gray-Fullbuster commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645184426


   Yes,I find this command in _bookkeeper_.
   _exec ${JAVA} ${OPTS} ${JMX_ARGS} org.apache.bookkeeper.server.Main --conf ${BOOKIE_CONF} $@_
   so,i delete _${JMX_ARGS}_,this port disappeared.thank you for the help 


----------------------------------------------------------------
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] eolivelli commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-657426991


   can we close this issue @Gray-Fullbuster  ? did you manage to achieve your goal ?


----------------------------------------------------------------
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] eolivelli commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645153615


   Are you enabling JMX? If so them it can be JMX


----------------------------------------------------------------
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] Gray-Fullbuster commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
Gray-Fullbuster commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645098401


   @jiazhai I set httpServerEnabled=false.Every bookie has its unknown,random port.


----------------------------------------------------------------
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] eolivelli commented on issue #2359: When I start up bookie,I found an extra port I don’t know

Posted by GitBox <gi...@apache.org>.
eolivelli commented on issue #2359:
URL: https://github.com/apache/bookkeeper/issues/2359#issuecomment-645840416


   @Gray-Fullbuster  please check this out
   https://stackoverflow.com/questions/331615/how-to-have-jmx-bind-to-a-specific-interface


----------------------------------------------------------------
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