Member since
04-08-2016
3
Posts
1
Kudos Received
0
Solutions
04-23-2016
04:08 PM
1 Kudo
I found a similar issue, where /usr/hdp contained a file derby.log The issue is printVersions should filter based on a directory pattern of "(\d+\.{0,1}.*)-(\d+)" 234 if f notin [".", "..", "current", "share", "lost+found"]: 235 result[tuple(map(int, versionRegex.split(f)))] = f
... View more
04-08-2016
12:12 AM
@Peter Bartal Am not a python person so bare with me I think if there was a regex compile ---- filter = regex.compile((\d+\.{0,1}.*)-(\d+)) if filter.match(f) result[tuple(map(int, versionRegex.split(f)))] = f ---- That should solve the problem
... View more
04-08-2016
12:09 AM
I found a similar issue, where /usr/hdp contained a file derby.log The issue is printVersions should filter based on a directory pattern of "(\d+\.{0,1}.*)-(\d+)" 234 if f notin [".", "..", "current", "share", "lost+found"]: 235 result[tuple(map(int, versionRegex.split(f)))] = f
... View more