Google News
logo
Hadoop - Quiz(MCQ)
Inline DoFn that splits a line up into words is an inner class ______
A)
Pipeline
B)
WritePipe
C)
MyPipeline
D)
ReadPipeline

Correct Answer :   MyPipeline


Explanation : Inner classes contain references to their parent outer classes, so unless MyPipeline implements the Serializable interface, the NotSerializableException will be thrown when Crunch tries to serialize the inner DoFn.

Advertisement