You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by chesterxgchen <gi...@git.apache.org> on 2014/08/25 03:03:57 UTC

[GitHub] spark pull request: SPARK-3177 : Yarn-alpha ClientBaseSuite Unit t...

GitHub user chesterxgchen opened a pull request:

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

    SPARK-3177 : Yarn-alpha ClientBaseSuite Unit test failed

    This second try to fix the Yarn-Alpha unit test failure due to Yarn API changes. 
    
    I have to include SPARK-3175 (pom.xml) changes in order to run the test. Otherwise, the SBT won't be able to start the project. 

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

    $ git pull https://github.com/AlpineNow/spark SPARK-3177

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

    https://github.com/apache/spark/pull/2111.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 #2111
    
----
commit c594232b98bbe9214e27b0a9d15e64aad7641c83
Author: chesterxgchen <ch...@alpinenow.com>
Date:   2014-08-21T20:45:45Z

    SPARK-3175 : Branch-1.1 SBT build failed for Yarn-Alpha
    
    The issue is that the yarn/alpha/pom.xml using 1.1.0 instead of 1.1.1-SNAPSHOT version.
    
    update the pom.xml to 1.1.1-SNAPSHOT (same as yarn/stable/pom.xml)

commit 30a0ac910808556f1e3477fd077b144eb6f8d9f1
Author: chesterxgchen <ch...@alpinenow.com>
Date:   2014-08-21T21:31:14Z

    SPARK-3177 : Yarn-alpha ClientBaseSuite Unit test failed
    
     The Issue is yarn-alpha and yarn has different APIs for certain class field. In this particular case, we can directly use ClientBase method (which use reflection )
    
    Add a new method
    
      def getFieldValue2[A: ClassTag, A1: ClassTag, B](clazz: Class[_], field: String,
                                                          defaults: => B)
                                  (mapTo:  A => B)(mapTo1: A1 => B) : B =
        Try(clazz.getField(field)).map(_.get(null)).map {
          case v: A => mapTo(v)
          case v1: A1 => mapTo1(v1)
          case _ => defaults
        }.toOption.getOrElse(defaults)
    
    to handle the cases where the field type can be either type A or A1. In this new method the type A or A1 is pattern matched and corresponding mapTo function (mapTo or mapTo1) is used.

----


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53462912
  
    We should check to see if i changed in any of the other minor versions before hadoop2.2. Otherwise it will work for you but not others.


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53264010
  
    QA tests have started for PR 2111. This patch merges cleanly. <br>View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/19138/consoleFull


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53274969
  
    QA results for PR 2111:<br>- This patch PASSES unit tests.<br>- This patch merges cleanly<br>- This patch adds no public classes<br><br>For more information see test ouptut:<br>https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/19138/consoleFull


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53883407
  
    can you separate these 2 changes. The test change would need to go into master and branch-1.1.  The other is just for 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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53887249
  
    sure, will do
    
    
    On Fri, Aug 29, 2014 at 7:43 AM, Tom Graves <no...@github.com>
    wrote:
    
    > Yes please close this one. Open just one new one with SPARK-3177 against
    > master branch and I'll pull back into branch-1.1 also. Leave the pom.xml
    > change out since Patrick said he doesn't want it.
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/spark/pull/2111#issuecomment-53884847>.
    >


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53218717
  
    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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53455378
  
    I am using 2.0.5-alpha. This is our internal setup we use. 


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53884847
  
    Yes please close this one.  Open just one new one with SPARK-3177 against master branch and I'll pull back into branch-1.1 also.  Leave the pom.xml change out since Patrick said he doesn't want it.


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53915017
  
    Close based on tgravescs sugegstions


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53474088
  
    I just checked against 2.0.6-alpha, the test passed as well. 
    
    Notice that 2.0.6-alpha is released in Aug. 2013,  after 0.23.9 in July, 2013
    http://hadoop.apache.org/releases.html
    
    
    ᚛ |SPARK-3177|$ sbt/sbt -Pyarn-alpha -Dhadoop.version=2.0.6-alpha 
    Using /Library/Java/JavaVirtualMachines/1.6.0_51-b11-457.jdk/Contents/Home as default JAVA_HOME.
    Note, this will be overridden by -java-home if it is set.
    [info] Loading project definition from /Users/chester/projects/alpine/spark/project/project
    [info] Loading project definition from /Users/chester/.sbt/0.13/staging/ec3aa8f39111944cc5f2/sbt-pom-reader/project
    [warn] Multiple resolvers having different access mechanism configured with same name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`).
    [info] Loading project definition from /Users/chester/projects/alpine/spark/project
    [info] Set current project to spark-parent (in build file:/Users/chester/projects/alpine/spark/)
    > yarn-alpha/test
    [info] Compiling 15 Scala sources to /Users/chester/projects/alpine/spark/yarn/alpha/target/scala-2.10/classes...
    [info] ClientBaseSuite:
    Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
    [info] - default Yarn application classpath
    [info] - default MR application classpath
    [info] - resultant classpath for an application that defines a classpath for YARN
    [info] - resultant classpath for an application that defines a classpath for MR
    [info] - resultant classpath for an application that defines both classpaths, YARN and MR
    [info] - Local jar URIs
    2014-08-26 12:14:21.761 java[77357:e203] Unable to load realm info from SCDynamicStore
    14/08/26 12:14:21 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    14/08/26 12:14:22 INFO ClientBaseSuite$DummyClient$$EnhancerByMockitoWithCGLIB$$96b82aa8: Preparing Local resources
    14/08/26 12:14:22 INFO ClientBaseSuite$DummyClient$$EnhancerByMockitoWithCGLIB$$96b82aa8: Prepared Local resources Map(addJar3 -> resource {, port: -1, file: "/", }, size: 1224, timestamp: 1403824330000, type: FILE, visibility: PUBLIC, )
    [info] - Jar path propagation through SparkConf
    [info] - check access nns empty
    [info] - check access nns unset
    [info] - check access nns
    [info] - check access nns space
    [info] - check access two nns
    [info] - check token renewer
    14/08/26 12:14:22 ERROR ClientBase: Can't get Master Kerberos principal for use as renewer
    [info] - check token renewer default
    [info] ClientDistributedCacheManagerSuite:
    [info] - test getFileStatus empty
    [info] - test getFileStatus cached
    [info] - test addResource
    [info] - test addResource link null
    [info] - test addResource appmaster only
    [info] - test addResource archive
    [info] YarnSparkHadoopUtilSuite:
    [info] - shell script escaping
    [info] ScalaTest
    [info] Run completed in 2 seconds, 368 milliseconds.
    [info] Total number of tests run: 21
    [info] Suites: completed 3, aborted 0
    [info] Tests: succeeded 21, failed 0, canceled 0, ignored 0, pending 0
    [info] All tests passed.
    [info] Passed: Total 21, Failed 0, Errors 0, Passed 21
    [success] Total time: 17 s, completed Aug 26, 2014 12:14:22 PM
    
    



---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53436623
  
    Which versions of hadoop are you using when you say yarn-alpha vs yarn?  hadoop 0.23 doesn't even contain DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH so I assume you are talking an early version of 2.x?


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

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


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53456331
  
    To be clarify, this is the version we use internally to support our customer


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53916084
  
    new PR is created at
    https://github.com/apache/spark/pull/2204
    
    
    On Fri, Aug 29, 2014 at 7:58 AM, Chester Chen <ch...@alpinenow.com> wrote:
    
    > sure, will do
    >
    >
    > On Fri, Aug 29, 2014 at 7:43 AM, Tom Graves <no...@github.com>
    > wrote:
    >
    >> Yes please close this one. Open just one new one with SPARK-3177 against
    >> master branch and I'll pull back into branch-1.1 also. Leave the pom.xml
    >> change out since Patrick said he doesn't want it.
    >>
    >> —
    >> Reply to this email directly or view it on GitHub
    >> <https://github.com/apache/spark/pull/2111#issuecomment-53884847>.
    >>
    >
    >


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53884482
  
    Just to clear, so you mean I need to
    
    1) close the current PR
    2) open two PRs, one for pom.xml changes and another one for test changes ?
    
    Patrick already mentioned in JIRA that for branch-1.1, pom.xml won't fix.
    It's leave as it intentionally due to some unexplained build reason.
    
    The second PR for SPARK-3177 won't pass the Jenkins test without the
    pom.xml changes
    
    Please advice how do I approach this.
    
    Chester
    
    
    On Fri, Aug 29, 2014 at 7:35 AM, Chester Chen <ch...@alpinenow.com> wrote:
    
    > sure, but SPARK-3177 can't run without pom.xml changes.
    >
    >
    > On Fri, Aug 29, 2014 at 7:32 AM, Tom Graves <no...@github.com>
    > wrote:
    >
    >> can you separate these 2 changes. The test change would need to go into
    >> master and branch-1.1. The other is just for branch-1.1
    >>
    >> —
    >> Reply to this email directly or view it on GitHub
    >> <https://github.com/apache/spark/pull/2111#issuecomment-53883407>.
    >>
    >
    >


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53478704
  
    Ok it looks like it was an array up until the 2.2 release so this is safe.


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53883744
  
    sure, but SPARK-3177 can't run without pom.xml changes.
    
    
    On Fri, Aug 29, 2014 at 7:32 AM, Tom Graves <no...@github.com>
    wrote:
    
    > can you separate these 2 changes. The test change would need to go into
    > master and branch-1.1. The other is just for branch-1.1
    >
    > —
    > Reply to this email directly or view it on GitHub
    > <https://github.com/apache/spark/pull/2111#issuecomment-53883407>.
    >


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53475232
  
    thanks for looking at 2.0.6.  The 0.23 branch and the 2.x branch are not comparable as far as the timelines.  I'll take a look at a few others.


---
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-3177 : Yarn-alpha ClientBaseSuite Unit t...

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

    https://github.com/apache/spark/pull/2111#issuecomment-53263503
  
    Jenkins, test this please


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