【甘道夫】HBase开发环境搭建过程中可能遇到的异常:No FileSystem for scheme: hdfs

异常:
2014-02-24 12:15:48,507 WARN  [Thread-2] util.DynamicClassLoader (DynamicClassLoader.java:<init>(106)) - Failed to identify the fs of dir hdfs://fulonghadoop/hbase/lib, ignored
java.io.IOException: No FileSystem for scheme: hdfs


解决:

在pom文件里增加:

<dependency>

    <groupId>org.apache.hadoop</groupId>

    <artifactId>hadoop-hdfs</artifactId>

    <version>2.2.0</version>

</dependency>

当然,假设你的pom中已经有有了hadoop-client,则无需再引入hadoop-hdfs。


在core-site.xml中增加:

  1. <property>  
  2.     <name>fs.hdfs.impl</name>  
  3.     <value>org.apache.hadoop.hdfs.DistributedFileSystem</value>  
  4.     <description>The FileSystem for hdfs: uris.</description>  
  5. </property>
原文地址:https://www.cnblogs.com/mengfanrong/p/5112560.html