esheldon / esutil

A variety of python utilities focusing on numerical, scientific, and astrophysical computing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hdfs ls or du

mgentile-bit opened this issue · comments

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'

A fix should be:
lines = stdo.split(b"\n")

thanks for the report. Would you like to submit a pull request?