hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9776) HarFileSystem.listStatus() returns "har://<scheme>-localhost:/..." if port number is empty
Date Wed, 25 Sep 2013 05:03:06 GMT

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

Ivan Mitic commented on HADOOP-9776:
------------------------------------

Thanks Shanyu for the updated patch, looks good, +1. Will commit shortly. 

bq. -1 core tests. The patch failed these unit tests in hadoop-common-project/hadoop-common:
org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl
Failed test is unrelated (patches v2 and v3 differ only in spaces). Also, HADOOP-9990 tracks
TestMetricsSystemImpl test failure.
                
> HarFileSystem.listStatus() returns "har://<scheme>-localhost:/..." if port number
is empty
> ------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9776
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9776
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 3.0.0, 2.1.0-beta
>            Reporter: shanyu zhao
>            Assignee: shanyu zhao
>         Attachments: HADOOP-9776-2.patch, HADOOP-9776-3.patch, HADOOP-9776.patch
>
>
> If the given har URI is "har://<scheme>-localhost/usr/my.har/a", the result of
HarFileSystem.listStatus() will have a ":" appended after localhost, like this: "har://<scheme>-localhost:/usr/my.har/a".
it should return "har://<scheme>-localhost/usr/my.bar/a" instead.
> This creates problem when running a hive unit test TestCliDriver (archive_excludeHadoop20.q),
generating the following error:
> 	java.io.IOException: cannot find dir = har://pfile-localhost:/GitHub/hive-monarch/build/ql/test/data/warehouse/tstsrcpart/ds=2008-04-08/hr=12/data.har/000000_0
in pathToPartitionInfo: [pfile:/GitHub/hive-monarch/build/ql/test/data/warehouse/tstsrcpart/ds=2008-04-08/hr=11,
har://pfile-localhost/GitHub/hive-monarch/build/ql/test/data/warehouse/tstsrcpart/ds=2008-04-08/hr=12/data.har]
> 	    [junit] 	at org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getPartitionDescFromPathRecursively(HiveFileFormatUtils.java:298)
> 	    [junit] 	at org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getPartitionDescFromPathRecursively(HiveFileFormatUtils.java:260)
> 	    [junit] 	at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat$CombineHiveInputSplit.<init>(CombineHiveInputFormat.java:104)

--
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