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

Added Java Conditional check #20

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Conversation

darkedges
Copy link

I had already deployed Java and so added a conditional check on the meta\main.yml to allow me to override the installation of Java. By default it will install and the variable spark_install_java must be overridden to stop the installation.

DarkEdges added 8 commits February 11, 2017 08:19
Check to see if we need to install java.
Added `spark_install_java: True` to allow java to be conditionally installed
Add spark commands to path
Variable to see if the path should be added.
Check to see if the bin directory needs to be added to the path
Copy link

@tnation14 tnation14 left a comment

Choose a reason for hiding this comment

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

This looks good to me; thank you and congrats on your first contribution! 🎉 @darkedges would you mind rebasing this into 2 commits: one to add the JAVA check, and one for creating /etc/profile.d/spark.sh? Thanks!

@@ -13,4 +13,4 @@ galaxy_info:
categories:
- system
dependencies:
- { role: "azavea.java" }
- { role: "azavea.java", when: spark_install_java }
Copy link
Contributor

Choose a reason for hiding this comment

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

awesome 👍 ( somehow didn't come to this idea, that when works here!)
This fix could also allow us to re-align our fork (in which I just removed the whole dependency)

Copy link
Contributor

@lhoss lhoss Mar 9, 2018

Choose a reason for hiding this comment

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

@tnation14 I'm motivated to get half of this PR with the spark_install_java part merged (essentially the first 3 commits), or the full changes ok too.
As I don't have committer perms here... I've done #26

@lhoss
Copy link
Contributor

lhoss commented Mar 8, 2018

very much useful also for us 👍
( to the merger I'ld suggest using 'squash merge' to reduce the commits)

@lhoss
Copy link
Contributor

lhoss commented Mar 20, 2018

Since #26 has been merged this PR needs to be rebased, keeping only the profile/spark.sh related changes.. and if those aren't required anymore, PR can be closed

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.

3 participants