Skip to content

Instantly share code, notes, and snippets.

@AndyCross
Created November 27, 2012 15:14
Show Gist options
  • Save AndyCross/4154736 to your computer and use it in GitHub Desktop.
Save AndyCross/4154736 to your computer and use it in GitHub Desktop.
Hadoop Compression
-D "io.compression.codecs=org.apache.hadoop.io.compress.GzipCodec"
//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