Created
November 27, 2012 15:14
-
-
Save AndyCross/4154736 to your computer and use it in GitHub Desktop.
Hadoop Compression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-D "io.compression.codecs=org.apache.hadoop.io.compress.GzipCodec" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//public override HadoopJobConfiguration Configure(ExecutorContext context) | |
HadoopJobConfiguration config = new HadoopJobConfiguration(); | |
config.InputPath = "/input/data.log.gz"; | |
config.OutputFolder = "/output/output" + DateTime.Now.ToString("yyyyMMddhhmmss"); | |
config.AdditionalGenericArguments.Add("-D \"io.compression.codecs=org.apache.hadoop.io.compress.GzipCodec\""); | |
return config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment