Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.3, 2.0.0-alpha
-
None
-
None
-
Reviewed
Description
When the -text command is run on a file and the file ends in the default extension for a codec (e.g. snappy or gz), but is a compressed sequence file, the command will fail.
The issue is that it assumes that if it matches the extension, then it's plain compressed file. It might be more helpful to check if it's a sequence file first, and then check the file extension second.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-8833 fs -text should make sure to call inputstream.seek(0) before using input stream
- Closed
- supercedes
-
HDFS-2444 A bug in unit test: TestDFSShell.testText()
- Resolved