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 2017/11/28 01:14:35 UTC

[GitHub] jiazhai opened a new issue #780: Update Dockerfile in 4.5.1 to use org.apache.bookkeeper.stats.NullStatsProvider

jiazhai opened a new issue #780: Update Dockerfile in 4.5.1  to use org.apache.bookkeeper.stats.NullStatsProvider
URL: https://github.com/apache/bookkeeper/issues/780
 
 
   In issue #732, we changed Makefile for Docker:
   ```
   BK_statsProviderClass=org.apache.bookkeeper.stats.NullStatsProvider
   ```
   to avoid error:
   ```
   2017-11-28 00:49:50,794 - ERROR - [main:BookieServer@435] - Exception running bookie server : 
   org.apache.commons.configuration.ConfigurationException: org.apache.commons.configuration.ConfigurationException: java.lang.ClassNotFoundException: org.apache.bookkeeper.stats.PrometheusMetricsProvider
   	at org.apache.bookkeeper.util.ReflectionUtils.getClass(ReflectionUtils.java:102)
   	at org.apache.bookkeeper.conf.ServerConfiguration.getStatsProviderClass(ServerConfiguration.java:1971)
   	at org.apache.bookkeeper.proto.BookieServer.main(BookieServer.java:414)
   Caused by: org.apache.commons.configuration.ConfigurationException: java.lang.ClassNotFoundException: org.apache.bookkeeper.stats.PrometheusMetricsProvider
   	at org.apache.bookkeeper.util.ReflectionUtils.getClass(ReflectionUtils.java:63)
   	at org.apache.bookkeeper.util.ReflectionUtils.getClass(ReflectionUtils.java:93)
   	... 2 more
   Caused by: java.lang.ClassNotFoundException: org.apache.bookkeeper.stats.PrometheusMetricsProvider
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   	at java.lang.Class.forName0(Native Method)
   	at java.lang.Class.forName(Class.java:348)
   	at org.apache.bookkeeper.util.ReflectionUtils.getClass(ReflectionUtils.java:61)
   	... 3 more
   ```
   But this is more safe to change the default env in Dockerfile instead of Makefile. So that user use the default 4.5.1 Docker will not meet error.

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