Skip to content

Instantly share code, notes, and snippets.

@stauntmaster
stauntmaster / HDFSWriting
Last active July 4, 2016 09:35
benchmarking in terms of directly writing to hdfs, appending to an existing file in hdfs, and locally writing the file and uploading it to hdfs.
package org.shiftehfar.reza.benchmark;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataOutputStream;