incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@apache.org>
Subject one line patch to fix warning about deprecated method
Date Wed, 06 Oct 2010 21:41:53 GMT
Hi,
Since it's a 1 line patch to fix a warning, here's the patch:


diff --git a/src/java/org/apache/hama/bsp/JobInProgress.java
b/src/java/org/apache/hama/bsp/JobInProgress.java
index e482a81..f799d02 100644
--- a/src/java/org/apache/hama/bsp/JobInProgress.java
+++ b/src/java/org/apache/hama/bsp/JobInProgress.java
@@ -71,7 +71,7 @@ class JobInProgress {
     this.jobId = jobId;

     this.tasks = new ArrayList<TaskInProgress>();
-    this.localFs = (LocalFileSystem) FileSystem.getNamed("local", conf);
+    this.localFs = (LocalFileSystem)
FileSystem.get(java.net.URI.create("file:///"), conf);

     this.master = master;
     this.status = new JobStatus(jobId, 0.0f, 0.0f, JobStatus.PREP);



cheers
-- 
Filipe David Manana,
fdmanana@gmail.com, fdmanana@apache.org

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

Mime
View raw message