異常:
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
解決:java
在pom文件裏增長:
<dependency>apache
<groupId>org.apache.hadoop</groupId>ide
<artifactId>hadoop-hdfs</artifactId>oop
<version>2.2.0</version>spa
</dependency>xml
固然,假設你的pom中已經有有了hadoop-client,則無需再引入hadoop-hdfs。ip
在core-site.xml中增長:
- <property>
- <name>fs.hdfs.impl</name>
- <value>org.apache.hadoop.hdfs.DistributedFileSystem</value>
- <description>The FileSystem for hdfs: uris.</description>
- </property>