You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is not returning the namenode port as desired, rather NoneType, which leads to the error:
"TypeError: %d format: a number is required, not NoneType"
I suspect this is caused by python 3.8 (and above) throwing an invalid escape sequence error when encountering "\d"
I suspect the solution is to pass the regular expression as a raw string, i.e.:
m = re.match(r".Started MiniDFSCluster -- namenode on port (\d+).", line)
The text was updated successfully, but these errors were encountered:
This regular expression:
m = re.match(".Started MiniDFSCluster -- namenode on port (\d+).", line)
found here:
https://github.com/internetarchive/snakebite-py3/blob/master/snakebite/minicluster.py#L204
is not returning the namenode port as desired, rather NoneType, which leads to the error:
"TypeError: %d format: a number is required, not NoneType"
I suspect this is caused by python 3.8 (and above) throwing an invalid escape sequence error when encountering "\d"
I suspect the solution is to pass the regular expression as a raw string, i.e.:
m = re.match(r".Started MiniDFSCluster -- namenode on port (\d+).", line)
The text was updated successfully, but these errors were encountered: