Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Handle LZO support in HadoopBase (if available) #14

Merged
merged 1 commit into from
Nov 3, 2015
Merged

Conversation

kwmonroe
Copy link
Contributor

@kwmonroe kwmonroe commented Nov 3, 2015

LZO is distributed as a separate resource (due to licensing). If the resource is defined in a resources.yaml, fetch it along with our main hadoop resource and try to install it during HadoopBase.install_hadoop().

This is a bit hackey, as it lets jujuresources.resource_path throw a keyerror if hadoop-lzo-$arch is not defined in resources.yaml. It would be better if jujuresources had a "resource_exists" method so we didn't have to overload resource_path. Alas, if it is a valid resource key, we proceed with fetch/verify and ultimately install.

@kwmonroe
Copy link
Contributor Author

kwmonroe commented Nov 3, 2015

I should mention this builds off of PR9, but that incorrectly assumed jujuresources.install would verify/fetch hadoop-lzo-$arch for me. Since jr.install doesn't do that, the resource would never be installed. This commit handles verify/fetch hadoop-lzo-$arch in HadoopBase.init just like we do with the hadoop-$arch resource.

johnsca added a commit that referenced this pull request Nov 3, 2015
Handle LZO support in HadoopBase (if available)
@johnsca johnsca merged commit f85810a into master Nov 3, 2015
@kwmonroe kwmonroe deleted the lzo-support branch April 5, 2016 14:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants