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

Xi Fang commented on HIVE-4558:
-------------------------------

The testcase on Windows prints out one new line and one sentence "groups found 
for user Administrators". The current method used in QTestUtil.java (i.e. 
maskPatterns(String[] patterns, String fname)) can't make an appropriate mask 
pattern for this case. I added another method called maskPatternsForWindows(), 
specifically for Windows. We can specify a pattern, which may include  one line 
or multiple lines. For example, in this case, the pattern is composed of one 
empty line and one sentence "groups found for user Administrators". Once such a 
pattern is found in the *.q.out.orig file, we directly skip this part. This 
ensures that "diff" will skip checking the content in output that matches this 
pattern.
                
> mapreduce_stack_trace_hadoop20 in TestNegativeMinimrCliDriver fails on Windows
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-4558
>                 URL: https://issues.apache.org/jira/browse/HIVE-4558
>             Project: Hive
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.11.0
>         Environment: Windows
>            Reporter: Xi Fang
>         Attachments: HIVE-4558.1.patch
>
>
> testNegativeCliDriver_mapreduce_stack_trace_hadoop20 fails because group 
> information is printed out on Windows. Here is the example of 
> mapreduce_stack_trace_hadoop20.q.out.orig:
> --------------------------------------------------------------------------
> PREHOOK: query: FROM src SELECT TRANSFORM(key, value) USING 
> 'script_does_not_exist' AS (key, value)
> PREHOOK: type: QUERY
> PREHOOK: Input: default@src
> PREHOOK: Output: 
> hdfs://127.0.0.1:25477/code/HWX/hive-monarch/build/ql/scratchdir/hive_2013-05-14_15-21-00_075_593034964465269090/-mr-10000
> Ended Job = job_20130514152027587_0001 with errors
> FATAL ExecMapper: org.apache.hadoop.hive.ql.metadata.HiveException: Hive 
> Runtime Error while processing row {"key":"238","value":"val_238"}
> groups found for user Administrators
> Hive Runtime Error while processing row {"key":"238","value":"val_238"}
> --------------------------------------------------------------------------
> However, it is supposed to look like:
> --------------------------------------------------------------------------
> PREHOOK: query: FROM src SELECT TRANSFORM(key, value) USING 
> 'script_does_not_exist' AS (key, value)
> PREHOOK: type: QUERY
> PREHOOK: Input: default@src
> \#### A masked pattern was here ####
> FATAL ExecMapper: org.apache.hadoop.hive.ql.metadata.HiveException: Hive 
> Runtime Error while processing row {"key":"238","value":"val_238"}
> Hive Runtime Error while processing row {"key":"238","value":"val_238"}
> --------------------------------------------------------------------------

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

Reply via email to