Complete the code to specify the Snappy compression codec in Hadoop configuration.
conf.set("mapreduce.output.fileoutputformat.compress.codec", [1])
Snappy codec class is org.apache.hadoop.io.compress.SnappyCodec.
Complete the code to enable compression for MapReduce output.
conf.setBoolean("mapreduce.output.fileoutputformat.compress", [1])
Use boolean true (not string) to enable compression.
Fix the error in setting the LZO codec class name for compression.
conf.set("mapreduce.output.fileoutputformat.compress.codec", [1])
The correct LZO codec class is com.hadoop.compression.lzo.LzoCodec.
Fill both blanks to create a configuration snippet that enables Gzip compression and sets the codec.
conf.setBoolean("mapreduce.output.fileoutputformat.compress", [1]) conf.set("mapreduce.output.fileoutputformat.compress.codec", [2])
Enable compression with true and set codec to Gzip class.
Fill all three blanks to create a dictionary that maps codec names to their class names for Snappy, LZO, and Gzip.
codecs = {"Snappy": [1], "LZO": [2], "Gzip": [3]Each codec name maps to its correct class name string.
