I don’t think it works in stand-alone mode. We have to make changes in
stand-alone to expose a setting to allow configuring the http server.

Thanks,
Sijie

On Fri, Nov 15, 2019 at 7:34 PM Brian Candler <[email protected]> wrote:

> On 15/11/2019 07:33, Sijie Guo wrote:
> > The garbage collection is done lazily via a gc thread.
> >
> > If you enable http server at your bookies (by setting
> > `httpServerEnabled` in your bookie.conf), you can then use http to
> > trigger gc.
> >
> >
> http://bookkeeper.apache.org/docs/latest/admin/http/#endpoint-apiv1bookiegc
>
> Should that work in standalone mode?
>
> I edited apache-pulsar-2.4.1/conf/bookkeeper.conf and set
> httpServerEnable=true.  Underneath that it says it will listen on port
> 8000.  But after restart, nothing is listening on that port.
>
> I also tried adding to the end of conf/standalone.conf:
>
> # The flag enables/disables starting the admin http server. Default
> value is 'false'.
> httpServerEnabled=true
>
> # The http server port to listen on. Default value is 8080.
> # Use `8000` as the port to keep it consistent with prometheus stats
> provider
> httpServerPort=8000
>
> # The http server class
> httpServerClass=org.apache.bookkeeper.http.vertx.VertxHttpServer
>
> But that didn't make it listen on 8000 either.
>
>

Reply via email to