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

Hari Sankar Sivarama Subramaniyan commented on HIVE-10367:
----------------------------------------------------------

Either [~sushanth] or [~thejas] can review this minor change.

Thanks
Hari

> org.apache.hive.hcatalog.pig.TestHCatLoaderEncryption.* fails in Windows
> ------------------------------------------------------------------------
>
>                 Key: HIVE-10367
>                 URL: https://issues.apache.org/jira/browse/HIVE-10367
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Hari Sankar Sivarama Subramaniyan
>            Assignee: Hari Sankar Sivarama Subramaniyan
>         Attachments: HIVE-10367.1.patch
>
>
> {code}
> java.io.IOException: Failed to execute "create table encrypted_table(a int, b 
> string) location 
> 'D:/w/hv/hcatalog/hcatalog-pig-adapter/target/tmp/org.apache.hive.hcatalog.pig.TestHCatLoader-1429172673960/warehouse/encryptedTable'".
>  Driver returned 1 Error: FAILED: Execution Error, return code 1 from 
> org.apache.hadoop.hive.ql.exec.DDLTask. 
> MetaException(message:java.lang.IllegalArgumentException: Pathname 
> /D:/w/hv/hcatalog/hcatalog-pig-adapter/target/tmp/org.apache.hive.hcatalog.pig.TestHCatLoader-1429172673960/warehouse/encryptedTable
>  from 
> hdfs://127.0.0.1:64735/D:/w/hv/hcatalog/hcatalog-pig-adapter/target/tmp/org.apache.hive.hcatalog.pig.TestHCatLoader-1429172673960/warehouse/encryptedTable
>  is not a valid DFS filename.)
>       at 
> org.apache.hive.hcatalog.pig.TestHCatLoaderEncryption.executeStatementOnDriver(TestHCatLoaderEncryption.java:163)
>       at 
> org.apache.hive.hcatalog.pig.TestHCatLoaderEncryption.createTableInSpecifiedPath(TestHCatLoaderEncryption.java:423)
>       at 
> org.apache.hive.hcatalog.pig.TestHCatLoaderEncryption.setup(TestHCatLoaderEncryption.java:197)
> {code}
> It looks like the error is happening because of the below query:
> create table encrypted_table(a int, b string) location 
> 'D:/w/hv/hcatalog/hcatalog-pig-adapter/target/tmp/org.apache.hive.hcatalog.pig.TestHCatLoader-1429056939184/warehouse/encryptedTable'
> This gets called from createTableInSpecifiedPath() in 
> TestHCatLoaderEncryption. I think  an invalid HDFS path is passed here when 
> we are running the tests on Windows OS, so in line 197, changing
> {code}
> createTableInSpecifiedPath(ENCRYPTED_TABLE, "a int, b string", 
> encryptedTablePath, driver);
> {code}
> to the below line might resolve the issue.
> {code}
> createTableInSpecifiedPath(ENCRYPTED_TABLE, "a int, b string", 
> WindowsPathUtil.getHdfsUriString(encryptedTablePath), driver);
> {code}



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

Reply via email to