Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # dev >> HiveHistory and HiveHistoryViewer


Copy link to this message
-
HiveHistory and HiveHistoryViewer
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
'java.lang.IllegalArgumentException'

is this a bug ? Does HiveHistory.log need to replace '\r' with space as
well?
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB