not setting version, just display
This commit is contained in:
parent
a988abd1b9
commit
ad52311395
|
@ -6,7 +6,7 @@ module RedStorm
|
||||||
module Examples
|
module Examples
|
||||||
class VersionSpout < RedStorm::SimpleSpout
|
class VersionSpout < RedStorm::SimpleSpout
|
||||||
output_fields :dummy
|
output_fields :dummy
|
||||||
on_init {log.info("****** JRuby version #{RUBY_VERSION}")}
|
on_init {log.info("***************** RUBY_VERSION=#{RUBY_VERSION}")}
|
||||||
on_send {}
|
on_send {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -16,14 +16,14 @@ module RedStorm
|
||||||
configure do |env|
|
configure do |env|
|
||||||
debug true
|
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
|
# 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
|
end
|
||||||
|
|
||||||
on_submit do |env|
|
on_submit do |env|
|
||||||
if env == :local
|
if env == :local
|
||||||
sleep(1)
|
sleep(5)
|
||||||
cluster.shutdown
|
cluster.shutdown
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue