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

Jason Dere commented on HIVE-8737:
----------------------------------

Correction, it builds, but the test fails with error:

{noformat}
Running org.apache.hadoop.hive.cli.TestCliDriverMethods
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.752 sec <<< 
FAILURE! - in org.apache.hadoop.hive.cli.TestCliDriverMethods
testprocessInitFiles(org.apache.hadoop.hive.cli.TestCliDriverMethods)  Time 
elapsed: 0.012 sec  <<< ERROR!
java.lang.NoSuchFieldException: theCaseInsensitiveEnvironment
        at java.lang.Class.getDeclaredField(Class.java:1948)
        at 
org.apache.hadoop.hive.cli.TestCliDriverMethods.setEnv(TestCliDriverMethods.java:390)
        at 
org.apache.hadoop.hive.cli.TestCliDriverMethods.testprocessInitFiles(TestCliDriverMethods.java:326)
{noformat}

> setEnv is not portable, which fails TestCliDriverMethods#testprocessInitFiles 
> on Windows
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-8737
>                 URL: https://issues.apache.org/jira/browse/HIVE-8737
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>         Environment: Windows
>            Reporter: Xiaobing Zhou
>            Assignee: Xiaobing Zhou
>         Attachments: HIVE-8737.1.patch, HIVE-8737.2.patch
>
>
> repro:
> {noformat}
> mvn test -Phadoop-2 -Dmaven.surefire.debug 
> -Dtest=TestCliDriverMethods#testprocessInitFiles
> {noformat}
> setEnv tries to do JVM wide system variables changes, previous approach is 
> not portable.



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

Reply via email to