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 Re: one line patch to fix warning about deprecated method
Date Thu, 07 Oct 2010 12:44:50 GMT
Oh yes, definitely better.
Didn't notice that one :)

On Thu, Oct 7, 2010 at 2:17 AM, Edward J. Yoon <edwardyoon@apache.org> wrote:
> Thanks. It's filed on HAMA-296.
>
> BTW, getLocal() method seem better.
>
> On Thu, Oct 7, 2010 at 6:41 AM, Filipe David Manana <fdmanana@apache.org> wrote:
>> 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."
>>
>
>
>
> --
> Best Regards, Edward J. Yoon
> edwardyoon@apache.org
> http://blog.udanax.org
>



-- 
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