You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2014/10/29 21:29:35 UTC
[jira] [Updated] (HADOOP-9740) FsShell's Text command does not read
avro data files stored on HDFS
[ https://issues.apache.org/jira/browse/HADOOP-9740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Lowe updated HADOOP-9740:
-------------------------------
Fix Version/s: 2.6.0
Hadoop Flags: Reviewed
Since this is a fix to a feature that shipped in 2.0.3-alpha I committed this to branch-2 and branch-2.6 as well. Thanks again, Allan!
> FsShell's Text command does not read avro data files stored on HDFS
> -------------------------------------------------------------------
>
> Key: HADOOP-9740
> URL: https://issues.apache.org/jira/browse/HADOOP-9740
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.0.5-alpha
> Reporter: Allan Yan
> Assignee: Allan Yan
> Labels: patch
> Fix For: 2.6.0
>
> Attachments: HADOOP-9740.patch, HADOOP-9740.patch, maven_unit_test_error.log
>
>
> HADOOP-8597 added support for reading avro data files from FsShell Text command. However, it does not work with files stored on HDFS. Here is the error message:
> {code}
> $hadoop fs -text hdfs://localhost:8020/test.avro
> -text: URI scheme is not "file"
> Usage: hadoop fs [generic options] -text [-ignoreCrc] <src> ...
> {code}
> The problem is because the File constructor complains not able to recognize hdfs:// scheme in during AvroFileInputStream initialization.
> There is a unit TestTextCommand.java under hadoop-common project. However it only tested files in local file system. I created a similar one under hadoop-hdfs project using MiniDFSCluster. Please see attached maven unit test error message with full stack trace for more details.
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)