I had checked that solution on Internet and I had already added it to the
Build Path.
I have tried with fs.default.name= file:/// and with fs.default.name=
file:// in the XML, and it doesn't work...



Andrzej Bialecki wrote:
> 
> Pablo Aragón wrote:
>> Hej,
>> 
>> I am developing a project based on Nutch. It works great (in Eclipse) but
>> due to new requirements I have to change the library
>> hadoop-0.12.2-core.jar
>> to the original source code.
>> 
>> I download succesfully that code in:
>> http://archive.apache.org/dist/hadoop/core/hadoop-0.12.2/hadoop-0.12.2.tar.gz.
>>  
>> 
>> After adding it to the project in Eclipse everything seems correct but
>> the
>> execution shows:
>> 
>> Exception in thread "main" 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.nutch.crawl.Crawl.main(Crawl.java:103)
>> 
>> Any idea?
> 
> Yes - when you worked with a pre-built jar it contained an embedded 
> hadoop-default.xml that defines the implementation of the "file://" 
> schema FileSystem. Now you probably forgot to put hadoop-default.xml on 
> your classpath. Go to Build Path and add this file to your classpath, 
> and all should be ok.
> 
> 
> -- 
> Best regards,
> Andrzej Bialecki     <><
>   ___. ___ ___ ___ _ _   __________________________________
> [__ || __|__/|__||\/|  Information Retrieval, Semantic Web
> ___|||__||  \|  ||  |  Embedded Unix, System Integration
> http://www.sigram.com  Contact: info at sigram dot com
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problems-with-Hadoop-source-tp26307608p26308506.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to