(catch-args
[:num-instances "How many MapReduce instances to launch." nil])
(add-validators
(val-opts :required :numeric [:num-instances]))
but it fails regardless of whether I actually pass --num-instances:
Exception in thread "main" java.lang.IllegalStateException: Command spec contains duplicates: ([snip] "num-instances" "num-instances" [snip]) at lemur.command_line$add_command_spec_STAR_$fn__912$fn__913.invoke(command_line.clj:237)
I also tried to only use val-ops without catch-args, but this lets every job pass, since :num-instances is defined by default to "1".
Thank you!
Jeffrey
Jeffrey
--
You received this message because you are subscribed to the Google Groups "Lemur User" group.
To post to this group, send email to lemur...@googlegroups.com.
To unsubscribe from this group, send email to lemur-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/lemur-user/-/juQ1cdcATSsJ.
For more options, visit https://groups.google.com/groups/opt_out.
Jobflow Options:slave-type: c1.xlargenum-instances: 0[snip]
Don't put it in catch-args, because it is a standard argument for lemur... it is automatically included in catch-args. Hence the error that it's a duplicate.val-opts alone won't work, though because the standard lemur num-instances arg has a default.What should work is:1. put it in val-opts as you have it, and2. in you defcluster remove the default value:(defcluster xyz:num-instances nil...)Let me know how that works.Marc
--
You received this message because you are subscribed to the Google Groups "Lemur User" group.
To post to this group, send email to lemur...@googlegroups.com.
To unsubscribe from this group, send email to lemur-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/lemur-user/-/GmrKpsOmZggJ.