bin/mandy-hadoop in trafficbroker-mandy-0.2.10 vs bin/mandy-hadoop in trafficbroker-mandy-0.2.11

- old
+ new

@@ -1,10 +1,11 @@ #!/usr/bin/env ruby require "rubygems" require "mandy" require 'optparse' require 'ostruct' +require 'uri' options = OpenStruct.new OptionParser.new do |opts| opts.banner = "USAGE: mandy-hadoop script input output [options]" @@ -20,10 +21,10 @@ opts.on("-v", '--variables name=value', "Pass additional parameters to jobs") do |config| options.cmdenv = config end opts.on("-j", '--json {"key":"1 value"}', "Pass JSON encoded parameters to jobs") do |config| - options.cmdenv = "json=#{config}" + options.cmdenv = "json=#{URI.encode(config)}" end opts.on_tail("-h", "--help", "Show this message") do puts opts exit \ No newline at end of file