saveAsTextFile method接受一个指定压缩编解码器类的可选参数:
saveAsTextFile
help_data.repartition(5).saveAsTextFile( path="s3://help-test/logs/help", compressionCodecClass="org.apache.hadoop.io.compress.GzipCodec" )