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

Sushanth Sowmyan commented on HIVE-10272:
-----------------------------------------

Since I have Thejas' and Hari's +1 on this issue, and have had only a minimal 
change from the previous patch, and this patch is minor and affects only 
windows tests for HCat, I'm going to go ahead and commit it.

> Some HCat tests fail under windows
> ----------------------------------
>
>                 Key: HIVE-10272
>                 URL: https://issues.apache.org/jira/browse/HIVE-10272
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sushanth Sowmyan
>            Assignee: Sushanth Sowmyan
>            Priority: Minor
>         Attachments: HIVE-10272.2.patch, HIVE-10272.patch
>
>
> Some HCat tests fail under windows with errors like this:
> {noformat}
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Pathname 
> /D:/w/hv/hcatalog/hcatalog-pig-adapter/target/tmp/scratchdir from 
> D:/w/hv/hcatalog/hcatalog-pig-adapter/target/tmp/scratchdir is not a valid 
> DFS filename.
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:197)
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem.access$000(DistributedFileSystem.java:106)
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
>       at 
> org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
>       at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
>       at 
> org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:594)
>       at 
> org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:552)
>       at 
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:504)
>       at 
> org.apache.hive.hcatalog.pig.TestHCatLoaderEncryption.setup(TestHCatLoaderEncryption.java:185)
> {noformat}
> We need to sanitize HiveConf objects with 
> WindowsPathUtil.convertPathsFromWindowsToHdfs if running under windows before 
> we use them to instantiate a SessionState/Driver



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to