hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5088) Exception in thread "main" java.lang.ClassCastException:occurs when running java org.apache.hadoop.hdfs.tools.HDFSConcat
Date Tue, 13 Aug 2013 01:54:47 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737706#comment-13737706
] 

Leo commented on HDFS-5088:
---------------------------

Now, the problem is that it always uses the default fs even I specify hdfs paths as follows

java org.apache.hadoop.hdfs.tools.HDFSConcat hdfs:///a hdfs:///b
                
> Exception in thread "main" java.lang.ClassCastException:occurs when running java org.apache.hadoop.hdfs.tools.HDFSConcat

> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5088
>                 URL: https://issues.apache.org/jira/browse/HDFS-5088
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>         Environment: Fedora 19, 16 bit
>            Reporter: Leo
>
> When I run this command, 
> java org.apache.hadoop.hdfs.tools.HDFSConcat 
> I get the following exception
> Exception in thread "main" java.lang.ClassCastException: org.apache.hadoop.fs.LocalFileSystem
cannot be cast to org.apache.hadoop.hdfs.DistributedFileSystem 
> 	at org.apache.hadoop.hdfs.tools.HDFSConcat.main(HDFSConcat.java:46) 
> It's because that the default fs is localfs instead of hdfs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message