You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Gang Luo <lg...@yahoo.com.cn> on 2011/04/15 05:24:23 UTC
why local fs instead of hdfs
Hi all,
a tricky problem here. When we prepare an input path, it should be a path on
HDFS by default, right? In what condition will this become a path on local file
system? I follow a program which worked well and the input path is something
like "hdfs://...". But when I apply the similar driver class to run different
program, the input path become "file:/..." and doesn't work. What is the
problem?
Thanks.
-Gang
Re: why local fs instead of hdfs
Posted by Konstantin Boudnik <co...@apache.org>.
Seems like something is setting fs.default.name programmatically.
Another possibility that $HADOOP_CONF_DIR isn't in the classpath in
the second case.
Hope it helps,
Cos
On Thu, Apr 14, 2011 at 20:24, Gang Luo <lg...@yahoo.com.cn> wrote:
> Hi all,
>
> a tricky problem here. When we prepare an input path, it should be a path on
> HDFS by default, right? In what condition will this become a path on local file
> system? I follow a program which worked well and the input path is something
> like "hdfs://...". But when I apply the similar driver class to run different
> program, the input path become "file:/..." and doesn't work. What is the
> problem?
>
> Thanks.
>
> -Gang
>