[
https://issues.apache.org/jira/browse/HDFS-5088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737601#comment-13737601
]
Steve Loughran commented on HDFS-5088:
--------------------------------------
It's grabbing whatever is in {{"fs.default.name"}}; if that's not an HDFS URL
then you aren't running on HDFS, at least not with the configuration file that
is being picked up.
> 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