You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jameszhouyi <gi...@git.apache.org> on 2014/09/11 13:50:37 UTC

[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

GitHub user jameszhouyi opened a pull request:

    https://github.com/apache/spark/pull/2359

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

    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'..


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jameszhouyi/spark branch-1.1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2359.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2359
    
----
commit c7d41ec666cf68f44cf362a3c05ac4d4dc9e74ab
Author: jameszhouyi <ja...@126.com>
Date:   2014-09-11T07:40:17Z

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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by jameszhouyi <gi...@git.apache.org>.
Github user jameszhouyi commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55473168
  
    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]           ^



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55438791
  
    Oh I see, this is against branch-1.1. Let me verify.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55459536
  
    Hi @jameszhouyi I just `dev/scalastyle` against the latest branch-1.1 and there were no issues. Can you confirm?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55253158
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by jameszhouyi <gi...@git.apache.org>.
Github user jameszhouyi commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55368800
  
    The issue found in apache/spark branch-1.1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by jameszhouyi <gi...@git.apache.org>.
Github user jameszhouyi commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55369150
  
    Hi andrewor14,
    I also tested this on apache/spark master, there is no errors as like yours. I am not sure why causes this inconsistent behavior on master v.s. branch-1.1. Could you please confirm this ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-55349699
  
    I am not able to reproduce this on the latest master. Would you mind closing this @jameszhouyi ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by jameszhouyi <gi...@git.apache.org>.
Github user jameszhouyi closed the pull request at:

    https://github.com/apache/spark/pull/2359


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by jameszhouyi <gi...@git.apache.org>.
GitHub user jameszhouyi reopened a pull request:

    https://github.com/apache/spark/pull/2359

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

    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'..


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jameszhouyi/spark branch-1.1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2359.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2359
    
----
commit c7d41ec666cf68f44cf362a3c05ac4d4dc9e74ab
Author: jameszhouyi <ja...@126.com>
Date:   2014-09-11T07:40:17Z

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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/2359


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: SPARK-3480 - Throws out Not a valid command 'y...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/2359#issuecomment-58916961
  
    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?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org