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

Steve Loughran commented on HDFS-5088:
--------------------------------------

There's not that much that can be done here other than restrict the concat 
operation to HDFS, because localfs doesn't support merging of files this way 
-which is a fairly low-level operation, more than just a {{cat}} operation.
                
> 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

Reply via email to