You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by gu...@zte.com.cn on 2017/10/27 15:14:38 UTC

SGkgQWxsLCBBcyBhbiBhcHBsaWNhdGlvbiBvdmVyIGhhZG9vcCwgaXMgaXQgcmVjb21tZW5kZWQg
dG8gdXNlICJvcmcuYXBhY2hlLmhhZG9vcC5mc0NsYXNzIEZpbGVDb250ZXh0IiByYXRoZXIgdGhl
biAib3JnLmFwYWNoZS5oYWRvb3AuZnMgQ2xhc3MgRmlsZVN5c3RlbSI/IEFuZCB3aHksIG9yIHdo
eSBub3Q/IEJlc2lkZXMsIG15IHRhcmdldCB2ZXJzaW9uIHdpbGwgYmUgQXBhY2hlIEhhZG9vcCBW
Mi43LjMsIGFuZCB0aGUgYXBwbGljYXRpb24gd2lsbCBiZSBydW5uaW5nIG92ZXIgYm90aCBIREZT
IEhBIGFuZEZlZGVyYXRpb24sIEkgd2lzaCBteSBhcHBsaWNhdGlvbiBjb2RlIGNvdWxkIGJlIG1v
cmUgZmxleGlibGUuVGhhbmtzIGEgbG90IURvcmlz


Re:

Posted by Ravi Prakash <ra...@gmail.com>.
And one of the good things about open-source projects like Hadoop, you can
read all about why :-) : https://issues.apache.org/jira/browse/HADOOP-4952

Enjoy!
Ravi

On Mon, Oct 30, 2017 at 11:54 AM, Ravi Prakash <ra...@gmail.com> wrote:

> Hi Doris!
>
> FileContext was created to overcome some of the limitations that we
> learned FileSystem had after a lot of experience. Unfortunately, a lot of
> code (i'm guessing maybe even the majority) still uses FileSystem.
>
> I suspect FileContext is probably the interface you want to use.
>
> HTH,
> Ravi
>
> On Fri, Oct 27, 2017 at 8:14 AM, <gu...@zte.com.cn> wrote:
>
>> Hi All,
>> As an application over hadoop, is it recommended to use
>> "org.apache.hadoop.fs
>> Class FileContext" rather then "org.apache.hadoop.fs Class FileSystem"?
>> And why, or why not?
>> Besides, my target version will be Apache Hadoop V2.7.3, and the
>> application will be running over both HDFS HA and
>> Federation, I wish my application code could be more flexible.
>> Thanks a lot!
>> Doris
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org
>> For additional commands, e-mail: user-help@hadoop.apache.org
>>
>
>

Re:

Posted by Ravi Prakash <ra...@gmail.com>.
Hi Doris!

FileContext was created to overcome some of the limitations that we learned
FileSystem had after a lot of experience. Unfortunately, a lot of code (i'm
guessing maybe even the majority) still uses FileSystem.

I suspect FileContext is probably the interface you want to use.

HTH,
Ravi

On Fri, Oct 27, 2017 at 8:14 AM, <gu...@zte.com.cn> wrote:

> Hi All,
> As an application over hadoop, is it recommended to use
> "org.apache.hadoop.fs
> Class FileContext" rather then "org.apache.hadoop.fs Class FileSystem"?
> And why, or why not?
> Besides, my target version will be Apache Hadoop V2.7.3, and the
> application will be running over both HDFS HA and
> Federation, I wish my application code could be more flexible.
> Thanks a lot!
> Doris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org
> For additional commands, e-mail: user-help@hadoop.apache.org
>