Can anyone share how can we quickly find out the official reference document during in the exam?


#1

Can anyone share how can we quickly find out the official reference document during in the exam?

For example, I am able to run below to save text data from a rdd in compression format:
textFile.saveAsTextFile(“products_text_compressed”, classOf[org.apache.hadoop.io.compress.BZip2Codec])

But when I run a compression to sequence format:
tf.saveAsSequenceFile(“products_sequence_compressed1”, classOf[org.apache.hadoop.io.compress.BZip2Codec])

I got error below:
:32: error: type mismatch;
** found : Classorg.apache.hadoop.io.compress.BZip2Codec**
** required: Option[Class[_ <: org.apache.hadoop.io.compress.CompressionCodec]]**

I like to check the official document but don’t know where can I find it

Thanks.