|
From: Leif M. <lei...@ta...> - 2015-05-07 02:40:34
|
Colin, The arguments passed to the Wrapper need to be broken up. You have registered them as pairs of arguments (name and value) with a space. Those are passed as a single argument to the JVM on UNIX. Please try it as follows and let me know if this fixes your problem. wrapper.app.parameter.1=com.quantifind.kafka.offsetapp.OffsetGetterWeb wrapper.app.parameter.2=--zk wrapper.app.parameter.3=myzk1:2181,myzk2:2181,myzk3:2181/kafka1 wrapper.app.parameter.4=--port wrapper.app.parameter.5=8080 wrapper.app.parameter.6=--refresh wrapper.app.parameter.7=10.seconds wrapper.app.parameter.8=--retain wrapper.app.parameter.9=7.days Problems like this can be easily debugged by setting the following property to show the generated command line in the log file (You have it commented out): wrapper.java.command.loglevel=INFO Cheers, Leif On Thu, May 7, 2015 at 8:32 AM, Colin Kincaid Williams <di...@uw...> wrote: > >java -cp KafkaOffsetMonitor-assembly-0.2.1.jar > com.quantifind.kafka.offsetapp.OffsetGetterWeb --zk > myzk1:2181,myzk2:2181,myzk3:2181/kafka1 --port 8080 --refresh 10.seconds > --retain 2.days > > serving resources from: > jar:file:/opt/kafka-offset-monitor/KafkaOffsetMonitor-assembly-0.2.1.jar!/offsetapp > ... > > starting the application via the command line as I showed above works. > Then I'm trying to adapt it to the wrapper. I will look at the wrapper > again. > |