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

CDAP-14562 fixed a classloading issue with output formats #10832

Conversation

albertshau
Copy link
Contributor

Instead of just using the output format's classloader as the
context classloading when creating the RecordWriter, use a
CombineClassLoader of the output format's classload and the current
context classloader. This prevents issues where classes in the
Hadoop classpath are not visible when creating the RecordWriter.

More specifically, this fixes issues with XML parsers required
by the S3 filesystem. If the program/plugin does not have xml
dependencies packaged (they shouldn't need to), it should not
result in ClassNotFound exceptions.

Instead of just using the output format's classloader as the
context classloading when creating the RecordWriter, use a
CombineClassLoader of the output format's classload and the current
context classloader. This prevents issues where classes in the
Hadoop classpath are not visible when creating the RecordWriter.

More specifically, this fixes issues with XML parsers required
by the S3 filesystem. If the program/plugin does not have xml
dependencies packaged (they shouldn't need to), it should not
result in ClassNotFound exceptions.
@albertshau
Copy link
Contributor Author

@rohitsinha54
Copy link
Contributor

Build green. Merging.

@rohitsinha54 rohitsinha54 merged commit 1d03226 into release/5.1 Nov 9, 2018
@rohitsinha54 rohitsinha54 deleted the bugfix_release/CDAP-14562-fix-classloading-output-issue branch November 9, 2018 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants