twitter-archive / kestrel

simple, distributed message queue system (inactive)
http://twitter.github.io/kestrel
Other
2.77k stars 312 forks source link

How to typically start kestrel on windows... in simple steps. #59

Closed nutharsh closed 13 years ago

nutharsh commented 13 years ago

Everyone can see from the below output that, i am inside the kestrel folder. i have tried with below set of commands... no one seems to have worked for me. Please let me know the right way or do we need a different kind of build for kestrel on windows...?

java -Dstage=developement -jar kestrel-2.1.0.jar java -Dstage=developement -cp config -jar kestrel-2.1.0.jar java -Dstage=developement -cp config;kestrel-2.1.0.jar -jar kestrel-2.1.0.jar

C:\Downy\frameworks\kestrel-2.1.0\kestrel-2.1.0>java -Dstage=developement -jar kestrel-2.1.0.jar Exception in thread "main" java.io.FileNotFoundException: \etc\kestrel.conf (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:106) at scala.io.Source$.fromFile(Source.scala:76) at com.twitter.util.Eval$$anonfun$apply$1.apply(Eval.scala:69) at com.twitter.util.Eval$$anonfun$apply$1.apply(Eval.scala:69) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:32) at scala.collection.TraversableLike$class.map(TraversableLike.scala:206) at scala.collection.mutable.WrappedArray.map(WrappedArray.scala:32) at com.twitter.util.Eval$.apply(Eval.scala:69) at com.twitter.ostrich.admin.RuntimeEnvironment.loadConfig(RuntimeEnvironment.scala:162) at com.twitter.ostrich.admin.RuntimeEnvironment.loadRuntimeConfig(RuntimeEnvironment.scala:173) at net.lag.kestrel.Kestrel$.main(Kestrel.scala:203) at net.lag.kestrel.Kestrel.main(Kestrel.scala)

nutharsh commented 13 years ago

I got the right command to start the kestrel server on windows.

It's...

java -jar ./kestrel-.jar

where ./before the jar file name is very important

phillycoder commented 11 years ago

Thanks for the tip, for me i had to include -Dstage param to make it work.

java -Dstage=development -jar ./kestrel_2.9.1-2.2.0.jar

matthiasg commented 10 years ago

apart from obviously changing the paths in the config file also make sure the logger is setup correctly since Policy.SigHup is not supported on windows. I am using Policy.Hourly instead. Policy.Never as in the development.config might not be practical for actual installations.