Skip to content

SPARK-1658: Correctly identify if maven is installed and working #580

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

Closed
wants to merge 2 commits into from

Conversation

rahulsinghaliitd
Copy link

The current test is checking the exit code of "tail" rather than "mvn".
This new check will make sure that mvn is installed and was able to
execute the "version command".

The current test is checking the exit code of "tail" rather than "mvn".
This new check will make sure that mvn is installed and was able to
execute the "version command".
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@rahulsinghaliitd
Copy link
Author

Seems to be a unit test failure but that should be not be related to this change.

VERSION=$(mvn help:evaluate -Dexpression=project.version | grep -v "INFO" | tail -n 1)
if [ $? == -1 ] ;then
VERSION_TEXT=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null)
if [ $? != 0 ] ;then
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mind fixing the semi-colon spacing (realize it's not related to your change):

if [ $? != 0 ]; then

@pwendell
Copy link
Contributor

pwendell commented May 3, 2014

Good catch! Made some small comments.

@pwendell
Copy link
Contributor

pwendell commented May 3, 2014

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14633/

Use "set -o pipefail" to catch all pipeline failures and
avoid creating an intermidiate variable.
@pwendell
Copy link
Contributor

pwendell commented May 4, 2014

Thanks - I've merged this!

@asfgit asfgit closed this in e97a2e6 May 4, 2014
asfgit pushed a commit that referenced this pull request May 4, 2014
The current test is checking the exit code of "tail" rather than "mvn".
This new check will make sure that mvn is installed and was able to
execute the "version command".

Author: Rahul Singhal <[email protected]>

Closes #580 from rahulsinghaliitd/SPARK-1658 and squashes the following commits:

83c0313 [Rahul Singhal] SPARK-1658: Correctly identify if maven is installed and working
bf821b9 [Rahul Singhal] SPARK-1658: Correctly identify if maven is installed and working
(cherry picked from commit e97a2e6)

Signed-off-by: Patrick Wendell <[email protected]>
@rahulsinghaliitd rahulsinghaliitd deleted the SPARK-1658 branch May 4, 2014 19:11
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
The current test is checking the exit code of "tail" rather than "mvn".
This new check will make sure that mvn is installed and was able to
execute the "version command".

Author: Rahul Singhal <[email protected]>

Closes apache#580 from rahulsinghaliitd/SPARK-1658 and squashes the following commits:

83c0313 [Rahul Singhal] SPARK-1658: Correctly identify if maven is installed and working
bf821b9 [Rahul Singhal] SPARK-1658: Correctly identify if maven is installed and working
helenyugithub pushed a commit to helenyugithub/spark that referenced this pull request Aug 20, 2019
…ble in Java 9+ (apache#580)

## Upstream SPARK-26963 apache#23866
## What changes were proposed in this pull request?

Don't use inaccessible fields in SizeEstimator, which comes up in Java 9+

## How was this patch tested?

Manually ran tests with Java 11; it causes these tests that failed before to pass.
This ought to pass on Java 8 as there's effectively no change for Java 8.

Closes apache#23866 from srowen/SPARK-26963.

Authored-by: Sean Owen <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
* Fix install-docker role

1. systemctl is not available on Ubuntu 14.04, so using
   "service docker restart" as a workaround.
2. change option "--r" position in spark-inegration-test-minikube-k8s
   job to avoid "--r" is bypassed to mvn.

Related-Bug: theopenlab/openlab#308
Related-Bug: theopenlab/openlab#310

* Do not install docker when config docker machine

Co-authored-by: liu-sheng <[email protected]>

* Do not need to clean iptables rules when installing docker

I did not found any docs say that need to clean iptables when installing
docker, only found in[1]. So I may prefer we do not clean iptables rules
unless we really need, and that should be done in where use docker that
in docker installation.

[1] https://github.com/kubernetes/cloud-provider-openstack/blob/master/devstack/plugin.sh#L98-L107

* Change the order of roles in docker-machine job
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