not setting version, just display

This commit is contained in:
Colin Surprenant 2012-06-28 13:20:01 -04:00
parent a988abd1b9
commit ad52311395
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ module RedStorm
module Examples
class VersionSpout < RedStorm::SimpleSpout
output_fields :dummy
on_init {log.info("****** JRuby version #{RUBY_VERSION}")}
on_init {log.info("***************** RUBY_VERSION=#{RUBY_VERSION}")}
on_send {}
end
@ -16,14 +16,14 @@ module RedStorm
configure do |env|
debug true
# set the JRuby version property for this topology. this will only affect remote cluster execution
# force the JRuby version property for this topology. this will only affect remote cluster execution
# for local execution use the --1.8|--1.9 switch when launching
set "topology.worker.childopts", "-Djruby.compat.version=RUBY1_9"
# set "topology.worker.childopts", "-Djruby.compat.version=RUBY1_9"
end
on_submit do |env|
if env == :local
sleep(1)
sleep(5)
cluster.shutdown
end
end