Skip to content

SPARK-3480 - Throws out Not a valid command 'yarn-alpha/scalastyle' in dev/scalastyle for sbt build tool during 'Running Scala style checks' #2359

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 1 commit into from

Conversation

jameszhouyi
Copy link

Symptom:
Run ./dev/run-tests and dump outputs as following:
....
Running Scala style checks
Scalastyle checks failed at following occurrences:
[error] Expected ID character
[error] Not a valid command: yarn-alpha
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: yarn-alpha
[error] yarn-alpha/scalastyle
[error] ^

Possible Cause:
I checked the dev/scalastyle, found that there are 2 parameters 'yarn-alpha/scalastyle' and 'yarn/scalastyle' separately,like
echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-0.23 -Dhadoop.version=0.23.9 yarn-alpha/scalastyle \

scalastyle.txt

echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 yarn/scalastyle \

scalastyle.txt

From above error message, sbt seems to complain them due to '/' separator. So it can be run through after I manually modified original ones to 'yarn-alpha:scalastyle' and 'yarn:scalastyle'..

…n dev/scalastyle for sbt build tool during 'Running Scala style checks'
@SparkQA
Copy link

SparkQA commented Sep 11, 2014

Can one of the admins verify this patch?

@jameszhouyi jameszhouyi deleted the branch-1.1 branch September 11, 2014 11:53
@jameszhouyi jameszhouyi restored the branch-1.1 branch September 11, 2014 12:13
@jameszhouyi jameszhouyi reopened this Sep 11, 2014
@andrewor14
Copy link
Contributor

I am not able to reproduce this on the latest master. Would you mind closing this @jameszhouyi ?

@jameszhouyi
Copy link
Author

The issue found in apache/spark branch-1.1

@jameszhouyi
Copy link
Author

Hi @andrewor14
I also tested this on apache/spark master, there is no errors as like yours. But the issue exist on branch-1.1. I am not sure why causes this inconsistent behavior on master v.s. branch-1.1. Could you please confirm this ?

@andrewor14
Copy link
Contributor

Oh I see, this is against branch-1.1. Let me verify.

@asfgit asfgit closed this in eae81b0 Sep 12, 2014
@andrewor14
Copy link
Contributor

Hi @jameszhouyi I just dev/scalastyle against the latest branch-1.1 and there were no issues. Can you confirm?

@jameszhouyi
Copy link
Author

Hi @andrewor14 , I just got the the latest branch-1.1 and run again, but still run across the issue like below details, please kindly review below (I ran it on CentOS6.4).

$ git status
On branch branch-1.1
$ ./dev/run-tests
Scalastyle checks failed at following occurrences:
[error] Expected ID character
[error] Not a valid command: yarn-alpha
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: yarn-alpha
[error] yarn-alpha/scalastyle
[error] ^

@srowen
Copy link
Member

srowen commented Oct 13, 2014

I also can't reproduce this on branch-1.1, running scalastyle or run-tests. I tried it on OS X and Debian. Is this likely to be some local change, something already fixed?

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