Skip to content

BIGTOP-2483: Add Mahout Charm#123

Closed
ktsakalozos wants to merge 3 commits intoapache:masterfrom
juju-solutions:mahout
Closed

BIGTOP-2483: Add Mahout Charm#123
ktsakalozos wants to merge 3 commits intoapache:masterfrom
juju-solutions:mahout

Conversation

@ktsakalozos
Copy link
Copy Markdown
Contributor

No description provided.

@ktsakalozos ktsakalozos force-pushed the mahout branch 2 times, most recently from 8eee943 to 13ca39e Compare June 17, 2016 16:40
@kwmonroe
Copy link
Copy Markdown
Member

Hey Kostas, this doesn't feel right to me. I've added a hadoop-client -> openjdk relation, followed by a hadoop-client -> mahout relation, but mahout still reports "Waiting for Java". It's only after I explicitly add an openjdk -> mahout relation that the charm deploys.

Is this expected behavior? If it is, I don't like it! The principal (hadoop-client) already has openjdk related to it, so i shouldn't have to add java -> mahout. Since you surely know that already, I'm probably doing something wrong.. Either way, let's figure it out before committing upstream.

hdfs dfs -rm -r -skipTrash output || true
fi

hadoop jar /usr/lib/mahout/mahout-mr-0.11.1-job.jar org.apache.mahout.cf.taste.hadoop.item.RecommenderJob -Dmapred.input.dir=/tmp/input/links-converted.txt -Dmapred.output.dir=output --usersFile /tmp/input/users.txt --booleanData -s SIMILARITY_LOGLIKELIHOOD
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we now have mahout 0.12.2, u may wanna go with that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell Bigtop does not yet package Mahout 0.12.2.

So, I updated the action script and used a wildcard instead of a fixed Mahout version. This was tested against a manual deployment of 0.12.2 Mahout. Unless there are significant changes in either the packaging of Mahout or the internals of the jar, the test should be valid for both the current and future Mahout versions.

Thank you for spotting this and helping improve the quality of the code.

@ktsakalozos
Copy link
Copy Markdown
Contributor Author

Hi Kevin, as per our yesterday's discussion we agreed to favour explicit relations even if they seem redundant. The user is indeed required to add a relation between openjdk and mahout. If we are to remove that requirement charm authors that want their charms to relate to mahout would also need to relate to java and make sure java is available before mahout deployment is triggered.

@pengale
Copy link
Copy Markdown
Contributor

pengale commented Aug 4, 2016

Tests complete successfully, with the latest juju 2.0 beta, against AWS. I am +1 on this.

- update README with juju2 and consistent bigtop charm messaging
- add layer repo key pointing to upstream; inherit tags from bigtop base layer
- update amulet test for xenial and remove openjdk since it's optional
@asfgit asfgit closed this in 0061157 Oct 30, 2016
@kwmonroe kwmonroe deleted the mahout branch October 30, 2016 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants