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

Tapan Oza commented on HIVE-14598:
----------------------------------

I'd like to give this a shot. I think I've got it figured out but I'm still 
learning the hive internals. 

This occurs when:
String jobname = Utilities.abbreviate(queryStr, maxlen - 6); 
is called in execute in org.apache.hadoop.hive.ql.Driver

The solution would be to replace that line with something like:
String jobname = Utilities.abbreviate(queryStr.replace('\n',' 
').replace('\r',''), maxlen - 6); 

If this is right, can I please get it assigned to me so I can write a patch. 
Thank you.

> Disallow newlines in query name
> -------------------------------
>
>                 Key: HIVE-14598
>                 URL: https://issues.apache.org/jira/browse/HIVE-14598
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Siddharth Seth
>
> Hive sets up the query name based on the query text. This is truncated to a 
> certain number of characters, but newlines are allowed.
> This makes logs really ugly - spanning across lines for the same log line.



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

Reply via email to