Error: java.lang.UnsupportedOperationException: Not implemented by the HftpFileSystem FileSystem imp

Error: java.lang.UnsupportedOperationException: Not implemented by the HftpFileSystem FileSystem implementation
	at org.apache.hadoop.fs.FileSystem.getScheme(FileSystem.java:214)
	at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2365)
	at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2375)
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2392)
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:89)
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2431)
	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2413)
	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:368)
	at org.apache.hadoop.fs.FileSystem.getLocal(FileSystem.java:339)
	at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.confChanged(LocalDirAllocator.java:270)
	at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathToRead(LocalDirAllocator.java:432)
	at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathToRead(LocalDirAllocator.java:164)
	at org.apache.hadoop.mapred.YarnChild.configureLocalDirs(YarnChild.java:232)
	at org.apache.hadoop.mapred.YarnChild.configureTask(YarnChild.java:290)
	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:147)

问题原因:字面意思来看就是FileSystem的一些方法(getScheme等)没有被实现,主要原因是hadoop-hdfs的jar包冲突(调用的hadoop-hdfs的jar包没有找到该方法)

解决办法:Maven的pom.xml文件,选择“Dependency Hierarchy”,输入“hadoop-hdfs”,查看哪些jar包引入了hadoop-hdfs-XXX.jar,以及查看这些hadoop-hdfs-xxx.jar中是否有getScheme等方法,如果没有,说明这个hadoop-hdfs-xxx.jar可能是导致冲突的包,注释之避免引起jar包冲突

PS:解决Maven的jar包冲突参考:http://blog.csdn.net/yeweiouyang/article/details/39319355

时间: 2024-10-14 21:42:39

Error: java.lang.UnsupportedOperationException: Not implemented by the HftpFileSystem FileSystem imp的相关文章

mybatis java.lang.UnsupportedOperationException

mybatis 的mapper配置的select查询语句,报java.lang.UnsupportedOperationException 内容如下: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.UnsupportedOpe

解决错误java.lang.UnsupportedOperationException

遇到错误 Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.Android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Java.util.concurrent.ExecutionException: java.lang.UnsupportedOperatio

java.lang.UnsupportedOperationException: Not supported by BasicDataSource

场景: SpringMVC+Hibernate+Maven 问题: 在src/main/resources 目录中添加hibernate.properties文件, 则如果存在这句hibernate.hbm2ddl.auto=update 启动tomcat就报如下异常, 去掉启动不报错,访问servlet的时候报错,去掉文件中所有属性,访问也不报错hibernate.properties 文件内容:hibernate.connection.driver_class=com.mysql.jdbc.

Hbase delete遇到的常见异常: Exception in thread "main" java.lang.UnsupportedOperationException

hbase 执行批量删除时出现错误: Exception in thread "main" java.lang.UnsupportedOperationException at java.util.AbstractList.remove(AbstractList.java:161) at org.apache.hadoop.hbase.client.HTable.delete(HTable.java:852) 这种异常其实很常见,remove操作不支持,为什么会出现不支持的情况呢?检查

Android -- Canvas java.lang.UnsupportedOperationException

干货 java.lang.UnsupportedOperationException at android.view.GLES20Canvas.clipPath(GLES20Canvas.java:287) at br.com.iba.view.PageCurlView.drawCurl(PageCurlView.java:284) at br.com.iba.view.PageCurlView.onDraw(PageCurlView.java:353) at android.view.View

java.lang.UnsupportedOperationException

在使用Arrays.asList()后调用add,remove这些method时出现java.lang.UnsupportedOperationException异常.这是由于Arrays.asList() 返回java.util.Arrays$ArrayList, 而不是ArrayList.Arrays$ArrayList和ArrayList都是继承AbstractList,remove,add等method在AbstractList中是默认throw UnsupportedOperation

java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1

遇到这个bug: 末尾是解决方法.  E/AndroidRuntime: FATAL EXCEPTION: main                                                                         Process: com.XX.XX.XX, PID: 7055                                                                         java.lang.Runt

java.lang.UnsupportedOperationException:This parser does not support specification "null" version "null"

java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null" at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448) at org.apache.commons.digester.Digester.getFact

keytool error: java.lang.Exception: Certificate not imported, alias already exists

Error Command to import the certificate into the Java keystore fails with the following error: keytool error: java.lang.Exception: Certificate not imported, alias already exists Cause Alias already exist. Needs to removed previous alias before adding