Skip to content

Commit

Permalink
No longer hard-coding HDFS replication factor.
Browse files Browse the repository at this point in the history
	HDFS replication factor was set equal to Voldemort
	replication factor. This doesn't bring benefit (you can't
	ensure the HDFS fetcher jobs use distinct data nodes), could
	cause potential issues, can be done done without hard-coding
	(by setting it as a parameter when running the M/R job).
  • Loading branch information
Eric Tschetter authored and afeinberg committed Mar 22, 2010
1 parent d96839b commit 368f2c4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -120,8 +120,8 @@ public void configure(JobConf job) {
logger.info("Opening " + this.taskIndexFileName + " and " + this.taskValueFileName
+ " for writing.");
FileSystem fs = this.taskIndexFileName.getFileSystem(job);
this.indexFileStream = fs.create(this.taskIndexFileName, (short) replicationFactor);
this.valueFileStream = fs.create(this.taskValueFileName, (short) replicationFactor);
this.indexFileStream = fs.create(this.taskIndexFileName);
this.valueFileStream = fs.create(this.taskValueFileName);
} catch(IOException e) {
throw new RuntimeException("Failed to open Input/OutputStream", e);
}
Expand Down

0 comments on commit 368f2c4

Please sign in to comment.