You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/11/01 02:08:55 UTC

[GitHub] nanguawu edited a comment on issue #2879: Failed to write entry (11, 0): Bookie handle is not available

nanguawu edited a comment on issue #2879: Failed to write entry (11, 0): Bookie handle is not available
URL: https://github.com/apache/pulsar/issues/2879#issuecomment-434906740
 
 
   8000 this port should be the zookeeper port that comes with pulsar。
   I seem to know where the prolem is ,Thank you very much!
   [root@server057 pulsar]# lsof -i:8000
   COMMAND   PID USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
   java    33839 root  215u  IPv4 163379008      0t0  TCP *:irdmi (LISTEN)
   [root@server057 pulsar]# ps -ef |grep  33839
   root      2799  1152  0 09:55 pts/0    00:00:00 grep --color=auto 33839
   root     33839     1  0 Oct29 ?        00:07:12 /opt/jdk1.8.0_191/bin/java -Dzookeeper.4lw.commands.whitelist=* -cp /ssd/pulsar/conf:::/ssd/pulsar/lib/*: -Dlog4j.configurationFile=log4j2.yaml -Djute.maxbuffer=10485760 -Djava.net.preferIPv4Stack=true -Xms2g -Xmx2g -XX:MaxDirectMemorySize=4g -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB -Dio.netty.leakDetectionLevel=disabled -Dio.netty.recycler.maxCapacity.default=1000 -Dio.netty.recycler.linkCapacity=1024 -Dpulsar.log.appender=RollingFile -Dpulsar.log.dir=/ssd/pulsar/logs -Dpulsar.log.level=info -Dpulsar.routing.appender.default=Console -Dpulsar.functions.process.container.log.dir=/ssd/pulsar/logs -Dpulsar.functions.java.instance.jar=/ssd/pulsar/instances/java-instance.jar -Dpulsar.functions.python.instance.file=/ssd/pulsar/instances/python-instance/python_instance_main.py -Dpulsar.log.file=pulsar-zookeeper-server057.opsadmin.com.log org.apache.pulsar.zookeeper.ZooKeeperStarter /ssd/pulsar/conf/zookeeper.conf
   
   
   Solution: modify the monitoring port opened by bookeeper to prometheus。
   
   [root@server057 pulsar]#sed  -i 's/prometheusStatsHttpPort\=8000/prometheusStatsHttpPort\=8900/' conf/bookkeeper.conf 
   [root@server057 pulsar]#./bin/pulsar-daemon  stop bookie 
   [root@server057 pulsar]#./bin/pulsar-daemon  start bookie 
   [root@server057 pulsar]#/ssd/pulsar/bin/bookkeeper shell bookiesanity  
   10:04:28.128 [main] INFO  org.apache.zookeeper.ZooKeeper - Session: 0x3002bd8b1840022 closed
   10:04:28.128 [main-EventThread] INFO  org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x3002bd8b1840022
   10:04:28.128 [main] INFO  org.apache.bookkeeper.bookie.BookieShell - Bookie sanity test succeeded
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services