I’ve got MultipleOutputs configured to generate 2 named outputs. I’d like to send one to s3n:// and one to hdfs://
Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not currently possible to do with the available API.
The
MultipleOutputsclass if Hadoop MapReduce currently works only for sub-directory (of the configured output directory) output names, which lets it take care of the side-effects caused by speculative execution.However, you could re-implement the class (or derive from it), to support this as its not impossible to achieve. You may need a more complex OutputCommitter implementation as well, if you plan on making your implementation support speculative execution.