2019-02-09 11:15:38 UTC - Vincent Ngan: @Sijie Guo, thank you for your advice. 
I finally figured out the dependencies needed to run PulsarStandaloneStarter by 
trial and error. It needs the 
“org.apache.pulsar:pulsar-server-distribution:2.2.1” package. Also, the 
dependency on “org.eclipse.jetty:jetty-servlet” has to be explicitly specified 
as version “9.3.11.v20160721” because a newer version is incorrectly brought in 
by the dependency on bookkeeper which is incompatible with the one used by the 
broker. The standalone server can then be started from my test cases using:
`PulsarStandaloneStarter.main(arrayOf("-nfw", "-c", "conf/standalone.conf"))`
Also thanks to @Ali Ahmed for his suggestion using the example in 
streamlio/pulsar-embedded-tutorial, which I haven’t tried yet.
100 : Sijie Guo, Karthik Ramasamy
ok_hand : Sijie Guo
----
2019-02-09 12:48:12 UTC - Vincent Ngan: I’ve just tried @Ali Ahmed’s 
suggestion. The problem with it is that the start() method of PulsarStandalone 
is package protected. I cannot simply call it to start the server, but I can 
all it using reflection.
The advantage of this one is that I can tidily shutdown the server by calling 
the PulsarStandalone.close() method.
----
2019-02-09 12:49:00 UTC - Sijie Guo: :+1: yes there was one PR in master 
changed start to public
----
2019-02-09 12:49:16 UTC - Sijie Guo: so you can use it without reflection in 
2.3.0 release
----
2019-02-09 12:49:48 UTC - Vincent Ngan: Great:+1:
----
2019-02-09 18:22:22 UTC - Matan Shalit: i can, just don't know where haha.

please point me to the right direction :slightly_smiling_face:
----

Reply via email to