How to get and set a job configuration

14 views
Skip to first unread message

Emad Mohammed

unread,
Jan 18, 2015, 11:15:03 PM1/18/15
to rha...@googlegroups.com
Hi
I would like to know hoe to get and set a job configuration. I want to read the data chunck offset in the map phase
Regards
Emad

Antonio Piccolboni

unread,
Jan 21, 2015, 11:28:54 PM1/21/15
to RHadoop Google Group
Some of the job conf information is available as environment variables, e.g. with sys.getenv

I run a job  like this one to get a list

hadoop jar $HADOOP_STREAMING -input small-text-file -mapper env -output /tmp/env


Then get the output to local do a sort output | uniq and you will get a list of variables. The one you want may be in there. I don't think setting them has any effect, but I may be wrong.

I found two variables that may be of interest

mapreduce_map_input_length

mapreduce_map_input_start

The related properties should have the same names but with dots instead of underscores.


--
post: rha...@googlegroups.com ||
unsubscribe: rhadoop+u...@googlegroups.com ||
web: https://groups.google.com/d/forum/rhadoop?hl=en-US
---
You received this message because you are subscribed to the Google Groups "RHadoop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhadoop+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emad Mohammed

unread,
Feb 2, 2015, 6:07:33 AM2/2/15
to rha...@googlegroups.com, ant...@piccolboni.info
Thanks Antonio
Reply all
Reply to author
Forward
0 new messages