GitHub user vanzin opened a pull request:

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

    [SPARK-2778] [yarn] Add yarn integration tests.

    This patch adds a couple of, currently, very simple integration tests
    to make sure both client and cluster modes are working. The tests don't
    do much yet other than run a simple job, but the plan is to enhance
    them after we get the framework in.
    
    The cluster tests are noisy, so redirect all log output to a file
    like other tests do. Copying the conf around sucks but it's less
    work than messing with maven/sbt and having to clean up other
    projects.
    
    Note the test is only added for yarn-stable. The code compiles
    against yarn-alpha but there are two issues I ran into that I
    could not overcome:
    - and old netty dependency kept creeping into the classpath and
      causing akka to not work, when using sbt; the old netty was
      correctly suppressed under maven.
    - MiniYARNCluster kept failing to execute containers because it
      did not create the NM's local dir itself; this is apparently
      a known behavior, but I'm not sure how to work around it.
    
    None of those issues are present with the stable Yarn.
    
    Also, these tests are a little slow to run. Apparently Spark doesn't
    yet tag tests (so that these could be isolated in a "slow" batch),
    so this is something to keep in mind.

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

    $ git pull https://github.com/vanzin/spark yarn-tests

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

    https://github.com/apache/spark/pull/2257.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 #2257
    
----
commit add84163ea0403d23dbbda540766d58329a27d76
Author: Marcelo Vanzin <[email protected]>
Date:   2014-06-09T23:15:24Z

    [SPARK-2778] [yarn] Add yarn integration tests.
    
    This patch adds a couple of, currently, very simple integration tests
    to make sure both client and cluster modes are working. The tests don't
    do much yet other than run a simple job, but the plan is to enhance
    them after we get the framework in.
    
    The cluster tests are noisy, so redirect all log output to a file
    like other tests do. Copying the conf around sucks but it's less
    work than messing with maven/sbt and having to clean up other
    projects.
    
    Note the test is only added for yarn-stable. The code compiles
    against yarn-alpha but there are two issues I ran into that I
    could not overcome:
    - and old netty dependency kept creeping into the classpath and
      causing akka to not work, when using sbt; the old netty was
      correctly suppressed under maven.
    - MiniYARNCluster kept failing to execute containers because it
      did not create the NM's local dir itself; this is apparently
      a known behavior, but I'm not sure how to work around it.
    
    None of those issues are present with the stable Yarn.
    
    Also, these tests are a little slow to run. Apparently Spark doesn't
    yet tag tests (so that these could be isolated in a "slow" batch),
    so this is something to keep in mind.

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to