Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
267 views
in Technique[技术] by (71.8m points)

java - I am standalone spark cluster , can we use map reduce compress related properties and if used those really works?

I am standalone spark cluster , can we use map reduce compress related properties and if used those really works ? i mean in standalone environment map reduce related compress related really works ?

config.setProperty("mapreduce.map.output.compress", "true");
        config.setProperty("mapreduce.map.output.compress.codec", "snappy");

        config.setProperty("mapreduce.output.fileoutputformat.compress", "true");
        config.setProperty("mapreduce.output.fileoutputformat.compress.codec", "snappy");
        config.setProperty("mapreduce.output.fileoutputformat.compress.type", "org.apache.hadoop.fs.s3a.commit.S3ACommitterFactory");

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Compression properties are not related with cluster properties. You can use any compression type.

If you are going to write it to S3, last property also works but it will not be effective if you use it in local/hdfs storage.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...