Question : In hadoop streaming job, can we use following as mapper
-mapper "cut -f1 | sed s/foo/bar/g" 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: Currently this does not work and gives an "java.io.IOException: Broken pipe" error. This is probably a bug that needs to be investigated.
Question : Is below command valid for Hadoop Streaming Job hadoop jar hadoop-streaming.jar -input '/user/foo/dir1' -input '/user/foo/dir2' 1. Yes 2. No
Correct Answer : Get Lastest Questions and Answer : Explanation: You can specify multiple input directories with multiple '-input' options:
hadoop jar hadoop-streaming.jar -input '/user/foo/dir1' -input '/user/foo/dir2'
Question : Select the correct statement with regards to Hadoop streaming applications A. A streaming process can use the stderr to emit counter information. reporter:counter:,, should be sent to stderr to update the counter. B. A streaming process can use the stderr to emit status information. To set a status, reporter:status: should be sent to stderr. C. You can use the record reader StreamXmlRecordReader to process XML documents. D. During the execution of a streaming job, the names of the "mapred" parameters are transformed. The dots ( . ) become underscores ( _ ). For example, mapred.job.id becomes mapred_job_id and mapred.jar becomes mapred_jar. In your code, use the parameter names with the underscores. 1. A,B,C 2. B,C,D 3. Access Mostly Uused Products by 50000+ Subscribers 4. A,B,D 5. A,B,C,D