Closed fitzscott closed 10 years ago
-cmdenv
e.g. -cmdenv EXAMPLE_DIR=/home/example/dictionaries/
-cmdenv varname=value
Inside Python (courtesy Stack Overflow)
print os.getenv('KEY_THAT_MIGHT_EXIST', default_value)
Yup, worked great. Delimiters now passed in to Python scripts.
I'd like to pass in the field delimiter for the fields in the value for the data type MR job in Python. It looks like there's an option called cmdenv - see http://www.litfuel.net/plush/?postid=195. I've also been trying to get to http://wiki.apache.org/hadoop/HadoopStreaming, but it's returning a 503 / Service Unavailable.