Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Higher verbosity when parsing Hadoop conf files #222

Open
simleo opened this issue Nov 23, 2016 · 0 comments
Open

Higher verbosity when parsing Hadoop conf files #222

simleo opened this issue Nov 23, 2016 · 0 comments

Comments

@simleo
Copy link
Member

simleo commented Nov 23, 2016

hadoop_utils.PathFinder.hadoop_params could be a bit more verbose about failed parsing attempts (which file could not be parsed and why). Something like:

                 try:
                     params.update(parse_hadoop_conf_file(fn))
-                except (IOError, HadoopXMLError):
+                except (IOError, HadoopXMLError) as e:
+                    print("could not parse %s: %r" % (fn, e))
                     pass  # silently ignore, as in Hadoop

But done properly, i.e., via a warning or log message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant