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 Alejandro Abdelnur <tu...@gmail.com> on 2007/01/10 03:23:23 UTC

getting "No FileSystem for scheme" error

I'm running from the trunk.

I'm getting the following error in both local and server mode (in this case
the scheme is hdfs) when trying to access DFS:

Exception in thread "main" java.lang.RuntimeException: java.io.IOException:
No FileSystem for scheme: file
    at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java
:247)
    at org.apache.hadoop.mapred.JobConf.setInputPath(JobConf.java:150)
    at org.apache.hadoop.examples.WordCount.main(WordCount.java:137)
Caused by: java.io.IOException: No FileSystem for scheme: file
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:157)
    at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:119)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:91)
    at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java
:243)
    ... 2 more


I've tracked to Line 155 of the FileSystem class is looking for "
fs.SCHEME.sdk" property to get the class but that property is not defined.

Any setting I have missing?

Thxs.

Tucu

RE: getting "No FileSystem for scheme" error

Posted by Devaraj Das <dd...@yahoo-inc.com>.
I think you are somehow not using the latest hadoop-default.xml which has a
value for the property fs.file.impl. Please use the hadoop-default.xml from
the trunk for all the hadoop daemons/apps and check whether you still get
the same errors/exceptions.

> -----Original Message-----
> From: Alejandro Abdelnur [mailto:tucu00@gmail.com]
> Sent: Wednesday, January 10, 2007 7:53 AM
> To: hadoop-user@lucene.apache.org
> Subject: getting "No FileSystem for scheme" error
> 
> I'm running from the trunk.
> 
> I'm getting the following error in both local and server mode (in this
> case
> the scheme is hdfs) when trying to access DFS:
> 
> Exception in thread "main" java.lang.RuntimeException:
> java.io.IOException:
> No FileSystem for scheme: file
>     at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java
> :247)
>     at org.apache.hadoop.mapred.JobConf.setInputPath(JobConf.java:150)
>     at org.apache.hadoop.examples.WordCount.main(WordCount.java:137)
> Caused by: java.io.IOException: No FileSystem for scheme: file
>     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:157)
>     at org.apache.hadoop.fs.FileSystem.getNamed(FileSystem.java:119)
>     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:91)
>     at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java
> :243)
>     ... 2 more
> 
> 
> I've tracked to Line 155 of the FileSystem class is looking for "
> fs.SCHEME.sdk" property to get the class but that property is not defined.
> 
> Any setting I have missing?
> 
> Thxs.
> 
> Tucu