[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708729#comment-13708729 ] Hudson commented on HIVE-3810: -- FAILURE: Integrated in Hive-trunk-hadoop2-ptest #14 (See [https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/14/]) HIVE-3810 : HiveHistory.log need to replace \r with space before writing Entry.value to historyfile (Mark Grover via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1500991) * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Fix For: 0.12.0 > > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch, HIVE-3810.3.patch, > HIVE-3810.4.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703737#comment-13703737 ] Hudson commented on HIVE-3810: -- Integrated in Hive-trunk-h0.21 #2188 (See [https://builds.apache.org/job/Hive-trunk-h0.21/2188/]) HIVE-3810 : HiveHistory.log need to replace \r with space before writing Entry.value to historyfile (Mark Grover via Ashutosh Chauhan) (Revision 1500991) Result = ABORTED hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1500991 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Fix For: 0.12.0 > > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch, HIVE-3810.3.patch, > HIVE-3810.4.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703290#comment-13703290 ] Hudson commented on HIVE-3810: -- Integrated in Hive-trunk-hadoop2 #279 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/279/]) HIVE-3810 : HiveHistory.log need to replace \r with space before writing Entry.value to historyfile (Mark Grover via Ashutosh Chauhan) (Revision 1500991) Result = ABORTED hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1500991 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Fix For: 0.12.0 > > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch, HIVE-3810.3.patch, > HIVE-3810.4.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702789#comment-13702789 ] Hudson commented on HIVE-3810: -- Integrated in Hive-trunk-hadoop1-ptest #47 (See [https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/47/]) HIVE-3810 : HiveHistory.log need to replace \r with space before writing Entry.value to historyfile (Mark Grover via Ashutosh Chauhan) (Revision 1500991) Result = FAILURE hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1500991 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Fix For: 0.12.0 > > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch, HIVE-3810.3.patch, > HIVE-3810.4.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702043#comment-13702043 ] Ashutosh Chauhan commented on HIVE-3810: +1 > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch, HIVE-3810.3.patch, > HIVE-3810.4.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569937#comment-13569937 ] Mark Grover commented on HIVE-3810: --- Thanks, Edward for the review! Your comment made me think about using {{System.getProperty("line.separator")}} instead. Let me post a new patch with that. I am not entirely sure how to test it (apart from running the unit tests). If you have any ideas, please let me know. > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch, HIVE-3810.3.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13568839#comment-13568839 ] Edward Capriolo commented on HIVE-3810: --- Doesn't java.io.File have constants to detect the line terminiator per OS. can we possibly use that? > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564975#comment-13564975 ] Mark Grover commented on HIVE-3810: --- Review at https://reviews.apache.org/r/9129/ > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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
[jira] [Commented] (HIVE-3810) HiveHistory.log need to replace '\r' with space before writing Entry.value to historyfile
[ https://issues.apache.org/jira/browse/HIVE-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551149#comment-13551149 ] Mark Grover commented on HIVE-3810: --- [~wsxy...@gmail.com] I see the status got resolved to fix. Did this get committed? > HiveHistory.log need to replace '\r' with space before writing Entry.value to > historyfile > - > > Key: HIVE-3810 > URL: https://issues.apache.org/jira/browse/HIVE-3810 > Project: Hive > Issue Type: Bug > Components: Logging >Reporter: qiangwang >Assignee: Mark Grover >Priority: Minor > Attachments: HIVE-3810.1.patch, HIVE-3810.2.patch > > > HiveHistory.log will replace '\n' with space before writing Entry.value to > history file: > val = val.replace('\n', ' '); > but HiveHistory.parseHiveHistory use BufferedReader.readLine which takes > '\n', '\r', '\r\n' as line delimiter to parse history file > if val contains '\r', there is a high possibility that HiveHistory.parseLine > will fail, in which case usually RecordTypes.valueOf(recType) will throw > exception 'java.lang.IllegalArgumentException' > HiveHistory.log need to replace '\r' with space as well: > val = val.replace('\n', ' '); > changed to > val = val.replaceAll("\r|\n", " "); > or > val = val.replace('\r', ' ').replace('\n', ' '); -- 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