hdfs ls or du
mgentile-bit opened this issue · comments
mgentile-bit commented
Using hdfs ls or du command i receive this error message:
a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "xxxxxxxxxxx/esutil/hdfs.py", line 139, in du
lines = stdo.split("\n")
TypeError: a bytes-like object is required, not 'str'
mgentile-bit commented
A fix should be:
lines = stdo.split(b"\n")
Erin Sheldon commented
thanks for the report. Would you like to submit a pull request?