hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qiang Wang <>
Subject HiveHistory and HiveHistoryViewer
Date Sun, 16 Dec 2012 10:03:38 GMT
Hi All:

As I know, HiveHistory.log will replace '\n' with space before writing
Entry.value to history file:

   * val = val.replace('\n', ' ');*

but HiveHistoryViewer 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 HiveHistoryViewer.parseLine will fail, in which case usually
RecordTypes.valueOf(recType) will throw exception

is this a bug ? Does HiveHistory.log need to replace '\r' with space as

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message