kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Martynov <mr.xk...@gmail.com>
Subject Kudu CLI tool JSON format
Date Tue, 11 Jun 2019 13:08:25 GMT
Hi, guys!

We trying to use an output of "kudu cluster ksck master -ksck_format
json_compact" for integration with our monitoring system and hit a little
strange. Some part of output can't be read as UTF-8 with Python 3:
$ kudu cluster ksck master -ksck_format json_compact > kudu.json
$ python
with open(' kudu.json', mode='rb') as file:
  bs = file.read()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position
705196: invalid start byte

There how SublimeText shows this block of text:
As you can see kudu tool encodes zeros as \u0000, but don't encode some
other non-text bytes.

What do you think about it?

with best regards, Pavel Martynov

View raw message