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

Updates to shell globbing in run-example and spark-class #449

Closed
wants to merge 10 commits into from

Conversation

kenahoo
Copy link

@kenahoo kenahoo commented Apr 18, 2014

I was running into some shell problems & warnings that I couldn't figure out. It turned out I had a few jars left over from previous builds.

There were a few inconsistencies in how shell globbing was done, and some places where the code assumed only one file could match a glob, with unsightly consequences if more than one file matched. I wrote a couple functions that handle globbing in a more consistent way, and use them in the workhorse scripts. With these changes it should be more obvious to someone like me what the problem is.

I'm not a Bash expert, BTW. Much of Bash's syntax looks screwy to me, if there's some better way to do what I did, by all means modify.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@kenahoo
Copy link
Author

kenahoo commented Apr 21, 2014

Looks like Travis failed by exceeding 50 minutes, is that the norm? I don't see any other error.

pwendell pushed a commit to pwendell/spark that referenced this pull request May 12, 2014
SPARK-1028 : fix "set MASTER automatically fails" bug.

spark-shell intends to set MASTER automatically if we do not provide the option when we start the shell , but there's a problem.
The condition is "if [[ "x" != "x$SPARK_MASTER_IP" && "y" != "y$SPARK_MASTER_PORT" ]];" we sure will set SPARK_MASTER_IP explicitly, the SPARK_MASTER_PORT option, however, we probably do not set just using spark default port 7077. So if we do not set SPARK_MASTER_PORT, the condition will never be true. We should just use default port if users do not set port explicitly I think.
Conflicts:
	bin/run-example
	bin/spark-class
@mateiz
Copy link
Contributor

mateiz commented Jun 3, 2014

Jenkins, test this please

@AmplabJenkins
Copy link

Build triggered.

@AmplabJenkins
Copy link

Build started.

@AmplabJenkins
Copy link

Build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15365/

@mateiz
Copy link
Contributor

mateiz commented Jun 4, 2014

So now the failure is because your branch can't be merged automatically with master -- do you mind rebasing it on top of master? Before that 50 minute timeout was probably an issue with Jenkins.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

gzm55 pushed a commit to MediaV/spark that referenced this pull request Jul 17, 2014
SPARK-1028 : fix "set MASTER automatically fails" bug.

spark-shell intends to set MASTER automatically if we do not provide the option when we start the shell , but there's a problem.
The condition is "if [[ "x" != "x$SPARK_MASTER_IP" && "y" != "y$SPARK_MASTER_PORT" ]];" we sure will set SPARK_MASTER_IP explicitly, the SPARK_MASTER_PORT option, however, we probably do not set just using spark default port 7077. So if we do not set SPARK_MASTER_PORT, the condition will never be true. We should just use default port if users do not set port explicitly I think.
(cherry picked from commit 6b4eed7)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
@andrewor14
Copy link
Contributor

Hi @kenahoo do you mind creating an associated JIRA and adding the number to the title? This will allow us to track what code changes correspond to what issues more easily. Also, could you rebase this on top of master once you have a chance? There have been many changes in these scripts in the recent past.

@SparkQA
Copy link

SparkQA commented Sep 5, 2014

Can one of the admins verify this patch?

export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/spark-examples-*hadoop*.jar`
fi
. $FWDIR/bin/load-spark-env.sh
. $FWDIR/bin/sh-funcs.sh
Copy link
Member

Choose a reason for hiding this comment

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

We generally quote string like above as "$FWDIR"/bin/sh-funcs.sh and so on.

@pwendell
Copy link
Contributor

This is stale so let's close this issue.

@asfgit asfgit closed this in f73b56f Nov 10, 2014
andrewor14 pushed a commit to andrewor14/spark that referenced this pull request Jan 8, 2015
SPARK-1028 : fix "set MASTER automatically fails" bug.

spark-shell intends to set MASTER automatically if we do not provide the option when we start the shell , but there's a problem.
The condition is "if [[ "x" != "x$SPARK_MASTER_IP" && "y" != "y$SPARK_MASTER_PORT" ]];" we sure will set SPARK_MASTER_IP explicitly, the SPARK_MASTER_PORT option, however, we probably do not set just using spark default port 7077. So if we do not set SPARK_MASTER_PORT, the condition will never be true. We should just use default port if users do not set port explicitly I think.
(cherry picked from commit 6b4eed7)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
j-esse pushed a commit to j-esse/spark that referenced this pull request Jan 24, 2019
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-gradle-wrapper-oss check.

{runtimeCheckDesc}
To enable or disable this check, please contact the maintainers of Excavator.
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
Update the pipeline and jobs to add 1.14 K8s
arjunshroff pushed a commit to arjunshroff/spark that referenced this pull request Nov 24, 2020
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Aug 15, 2022
…e's eventlog name (apache#449)

* AL-5705 update pom version

* AL-5705 when taskId is not empty, add taskId subStr(0,8) in local mode's eventlog name

* AL-5705 add UT

Co-authored-by: longfei.jiang <longfei.jiang@kyligence.io>
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.

7 participants