1.

Inline DoFn that splits a line up into words is an inner class ____________(a) Pipeline(b) MyPipeline(c) ReadPipeline(d) WritePipeThe question was posed to me in an interview.My doubt is from Crunch with Hadoop topic in division Apache Spark, Flume, Lucene, Hama, HCatalog, Mahout, Drill, Crunch and Thrift of Hadoop

Answer»

Correct option is (b) MyPipeline

For explanation I would say: 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.



Discussion

No Comment Found

Related InterviewSolutions