Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D5FA18A96 for ; Wed, 28 Oct 2015 02:08:08 +0000 (UTC) Received: (qmail 14599 invoked by uid 500); 28 Oct 2015 02:08:03 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 14503 invoked by uid 500); 28 Oct 2015 02:08:03 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 14493 invoked by uid 99); 28 Oct 2015 02:08:03 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 02:08:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F1DFA1809F8 for ; Wed, 28 Oct 2015 02:08:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.987 X-Spam-Level: ** X-Spam-Status: No, score=2.987 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.008, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bS5vrvmbpFhO for ; Wed, 28 Oct 2015 02:08:01 +0000 (UTC) Received: from mail-vk0-f67.google.com (mail-vk0-f67.google.com [209.85.213.67]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 123222314A for ; Wed, 28 Oct 2015 02:08:00 +0000 (UTC) Received: by vkgs66 with SMTP id s66so6485184vkg.1 for ; Tue, 27 Oct 2015 19:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=UFU5myimOSHXzBuJlCT52Ve6ZWyorL2qrU8UUbTFEaU=; b=jPBi5c8NS0F6lMvvviVl/Zji7xDSKEQWu3HFoqKbLJbcMkMwUXEM18742Z2kyt4/xe RWWGpultQXvVJmB+kMa7bVIjTocstYe1ihsqK4SwRNA8IyS1usXYFDbkA/PvwK6/W3Sf aRj4OEizuGc5o9nQBVahcgomQLWIq1Uc0B38a2KKoCawpLu4pXaseH/ep0mbPZMrljLo dxE8Qx33dZ1WxCznBXXwBx9JOTXZY2tRsuik9pbd1kXpG6DcFF8emJSKcPa8XTeX1ADo Yu27hUroR70jlzhsErNADaTEwgPonM1SK1jKJ2AeRf7wzIPy58pJv6VjeSSqrrsBn7BL 39dA== MIME-Version: 1.0 X-Received: by 10.31.172.6 with SMTP id v6mr21581964vke.97.1445998079010; Tue, 27 Oct 2015 19:07:59 -0700 (PDT) Sender: odeaching@gmail.com Received: by 10.31.221.65 with HTTP; Tue, 27 Oct 2015 19:07:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Oct 2015 10:07:58 +0800 X-Google-Sender-Auth: Ymu52oWL7B5Ax8NB-XHSfWXObrU Message-ID: Subject: Re: Spark Core Transitive Dependencies From: Deng Ching-Mallete To: Furkan KAMACI Cc: user Content-Type: multipart/alternative; boundary=001a11438ea6d86bc5052320a9be --001a11438ea6d86bc5052320a9be Content-Type: text/plain; charset=UTF-8 Hi, The spark assembly jar already includes the spark core libraries plus their transitive dependencies, so you don't need to include them in your jar. I found it easier to use inclusions instead of exclusions when creating an assembly jar of my spark job so I would recommend going with that. HTH, Deng On Wed, Oct 28, 2015 at 6:20 AM, Furkan KAMACI wrote: > Hi, > > I use Spark for for its newAPIHadoopRDD method and map/reduce etc. tasks. > When I include it I see that it has many transitive dependencies. > > Which of them I should exclude? I've included the dependency tree of > spark-core. Is there any documentation that explains why they are needed > (maybe all of them are necessary?) > > Kind Regards, > Furkan KAMACI > > PS: Dependency Tree: > > [INFO] +- org.apache.spark:spark-core_2.10:jar:1.4.1:compile > [INFO] | +- com.twitter:chill_2.10:jar:0.5.0:compile > [INFO] | | \- com.esotericsoftware.kryo:kryo:jar:2.21:compile > [INFO] | | +- > com.esotericsoftware.reflectasm:reflectasm:jar:shaded:1.07:compile > [INFO] | | +- com.esotericsoftware.minlog:minlog:jar:1.2:compile > [INFO] | | \- org.objenesis:objenesis:jar:1.2:compile > [INFO] | +- com.twitter:chill-java:jar:0.5.0:compile > [INFO] | +- org.apache.spark:spark-launcher_2.10:jar:1.4.1:compile > [INFO] | +- org.apache.spark:spark-network-common_2.10:jar:1.4.1:compile > [INFO] | +- org.apache.spark:spark-network-shuffle_2.10:jar:1.4.1:compile > [INFO] | +- org.apache.spark:spark-unsafe_2.10:jar:1.4.1:compile > [INFO] | +- net.java.dev.jets3t:jets3t:jar:0.7.1:compile > [INFO] | +- org.apache.curator:curator-recipes:jar:2.4.0:compile > [INFO] | | \- org.apache.curator:curator-framework:jar:2.4.0:compile > [INFO] | | \- org.apache.curator:curator-client:jar:2.4.0:compile > [INFO] | +- org.apache.commons:commons-lang3:jar:3.3.2:compile > [INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile > [INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile > [INFO] | +- org.slf4j:jul-to-slf4j:jar:1.6.6:compile > [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.6.6:compile > [INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile > [INFO] | +- net.jpountz.lz4:lz4:jar:1.2.0:compile > [INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.4.5:compile > [INFO] | +- commons-net:commons-net:jar:2.2:compile > [INFO] | +- > org.spark-project.akka:akka-remote_2.10:jar:2.3.4-spark:compile > [INFO] | | +- > org.spark-project.akka:akka-actor_2.10:jar:2.3.4-spark:compile > [INFO] | | | \- com.typesafe:config:jar:1.2.1:compile > [INFO] | | +- > org.spark-project.protobuf:protobuf-java:jar:2.5.0-spark:compile > [INFO] | | \- org.uncommons.maths:uncommons-maths:jar:1.2.2a:compile > [INFO] | +- org.spark-project.akka:akka-slf4j_2.10:jar:2.3.4-spark:compile > [INFO] | +- org.scala-lang:scala-library:jar:2.10.4:compile > [INFO] | +- org.json4s:json4s-jackson_2.10:jar:3.2.10:compile > [INFO] | | \- org.json4s:json4s-core_2.10:jar:3.2.10:compile > [INFO] | | +- org.json4s:json4s-ast_2.10:jar:3.2.10:compile > [INFO] | | \- org.scala-lang:scalap:jar:2.10.0:compile > [INFO] | | \- org.scala-lang:scala-compiler:jar:2.10.0:compile > [INFO] | +- com.sun.jersey:jersey-server:jar:1.9:compile > [INFO] | | \- asm:asm:jar:3.1:compile > [INFO] | +- com.sun.jersey:jersey-core:jar:1.9:compile > [INFO] | +- org.apache.mesos:mesos:jar:shaded-protobuf:0.21.1:compile > [INFO] | +- io.netty:netty-all:jar:4.0.23.Final:compile > [INFO] | +- com.clearspring.analytics:stream:jar:2.7.0:compile > [INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.0:compile > [INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.1.0:compile > [INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.1.0:compile > [INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:3.1.0:compile > [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile > [INFO] | | +- > com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:compile > [INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.4.4:compile > [INFO] | +- > com.fasterxml.jackson.module:jackson-module-scala_2.10:jar:2.4.4:compile > [INFO] | | \- org.scala-lang:scala-reflect:jar:2.10.4:compile > [INFO] | +- org.apache.ivy:ivy:jar:2.4.0:compile > [INFO] | +- oro:oro:jar:2.0.8:compile > [INFO] | +- org.tachyonproject:tachyon-client:jar:0.6.4:compile > [INFO] | | \- org.tachyonproject:tachyon:jar:0.6.4:compile > [INFO] | +- net.razorvine:pyrolite:jar:4.4:compile > [INFO] | +- net.sf.py4j:py4j:jar:0.8.2.1:compile > [INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile > --001a11438ea6d86bc5052320a9be Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

The spark assembly jar already incl= udes the spark core libraries plus their transitive dependencies, so you do= n't need to include them in your jar. I found it easier to use inclusio= ns instead of exclusions when creating an assembly jar of my spark job so I= would recommend going with that.

HTH,
D= eng

On Wed, Oc= t 28, 2015 at 6:20 AM, Furkan KAMACI <furkankamaci@gmail.com><= /span> wrote:
Hi,

I use Spark for for its=C2=A0newAPIHadoopRDD method and = map/reduce etc. tasks. When I include it I see that it has many transitive = dependencies.

Which of them I should exclude? I've i= ncluded the dependency tree of spark-core. Is there any documentation that = explains why they are needed (maybe all of them are necessary?)
<= br>
Kind Regards,
Furkan KAMACI

= PS: Dependency Tree:

[INFO] +- org.apache.spa= rk:spark-core_2.10:jar:1.4.1:compile
[INFO] | =C2=A0+- com.twitte= r:chill_2.10:jar:0.5.0:compile
[INFO] | =C2=A0| =C2=A0\- com.esot= ericsoftware.kryo:kryo:jar:2.21:compile
[INFO] | =C2=A0| =C2=A0 = =C2=A0 +- com.esotericsoftware.reflectasm:reflectasm:jar:shaded:1.07:compil= e
[INFO] | =C2=A0| =C2=A0 =C2=A0 +- com.esotericsoftware.minlog:m= inlog:jar:1.2:compile
[INFO] | =C2=A0| =C2=A0 =C2=A0 \- org.objen= esis:objenesis:jar:1.2:compile
[INFO] | =C2=A0+- com.twitter:chil= l-java:jar:0.5.0:compile
[INFO] | =C2=A0+- org.apache.spark:spark= -launcher_2.10:jar:1.4.1:compile
[INFO] | =C2=A0+- org.apache.spa= rk:spark-network-common_2.10:jar:1.4.1:compile
[INFO] | =C2=A0+- = org.apache.spark:spark-network-shuffle_2.10:jar:1.4.1:compile
[IN= FO] | =C2=A0+- org.apache.spark:spark-unsafe_2.10:jar:1.4.1:compile
[INFO] | =C2=A0+- net.java.dev.jets3t:jets3t:jar:0.7.1:compile
[INFO] | =C2=A0+- org.apache.curator:curator-recipes:jar:2.4.0:compile
[INFO] | =C2=A0| =C2=A0\- org.apache.curator:curator-framework:jar:2= .4.0:compile
[INFO] | =C2=A0| =C2=A0 =C2=A0 \- org.apache.curator= :curator-client:jar:2.4.0:compile
[INFO] | =C2=A0+- org.apache.co= mmons:commons-lang3:jar:3.3.2:compile
[INFO] | =C2=A0+- org.apach= e.commons:commons-math3:jar:3.4.1:compile
[INFO] | =C2=A0+- com.g= oogle.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | =C2=A0+- or= g.slf4j:jul-to-slf4j:jar:1.6.6:compile
[INFO] | =C2=A0+- org.slf4= j:jcl-over-slf4j:jar:1.6.6:compile
[INFO] | =C2=A0+- com.ning:com= press-lzf:jar:1.0.3:compile
[INFO] | =C2=A0+- net.jpountz.lz4:lz4= :jar:1.2.0:compile
[INFO] | =C2=A0+- org.roaringbitmap:RoaringBit= map:jar:0.4.5:compile
[INFO] | =C2=A0+- commons-net:commons-net:j= ar:2.2:compile
[INFO] | =C2=A0+- org.spark-project.akka:akka-remo= te_2.10:jar:2.3.4-spark:compile
[INFO] | =C2=A0| =C2=A0+- org.spa= rk-project.akka:akka-actor_2.10:jar:2.3.4-spark:compile
[INFO] | = =C2=A0| =C2=A0| =C2=A0\- com.typesafe:config:jar:1.2.1:compile
[I= NFO] | =C2=A0| =C2=A0+- org.spark-project.protobuf:protobuf-java:jar:2.5.0-= spark:compile
[INFO] | =C2=A0| =C2=A0\- org.uncommons.maths:uncom= mons-maths:jar:1.2.2a:compile
[INFO] | =C2=A0+- org.spark-project= .akka:akka-slf4j_2.10:jar:2.3.4-spark:compile
[INFO] | =C2=A0+- o= rg.scala-lang:scala-library:jar:2.10.4:compile
[INFO] | =C2=A0+- = org.json4s:json4s-jackson_2.10:jar:3.2.10:compile
[INFO] | =C2=A0= | =C2=A0\- org.json4s:json4s-core_2.10:jar:3.2.10:compile
[INFO] = | =C2=A0| =C2=A0 =C2=A0 +- org.json4s:json4s-ast_2.10:jar:3.2.10:compile
[INFO] | =C2=A0| =C2=A0 =C2=A0 \- org.scala-lang:scalap:jar:2.10.0:= compile
[INFO] | =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0\- org.scala-= lang:scala-compiler:jar:2.10.0:compile
[INFO] | =C2=A0+- com.sun.= jersey:jersey-server:jar:1.9:compile
[INFO] | =C2=A0| =C2=A0\- as= m:asm:jar:3.1:compile
[INFO] | =C2=A0+- com.sun.jersey:jersey-cor= e:jar:1.9:compile
[INFO] | =C2=A0+- org.apache.mesos:mesos:jar:sh= aded-protobuf:0.21.1:compile
[INFO] | =C2=A0+- io.netty:netty-all= :jar:4.0.23.Final:compile
[INFO] | =C2=A0+- com.clearspring.analy= tics:stream:jar:2.7.0:compile
[INFO] | =C2=A0+- io.dropwizard.met= rics:metrics-core:jar:3.1.0:compile
[INFO] | =C2=A0+- io.dropwiza= rd.metrics:metrics-jvm:jar:3.1.0:compile
[INFO] | =C2=A0+- io.dro= pwizard.metrics:metrics-json:jar:3.1.0:compile
[INFO] | =C2=A0+- = io.dropwizard.metrics:metrics-graphite:jar:3.1.0:compile
[INFO] |= =C2=A0+- com.fasterxml.jackson.core:jackson-databind:jar:2.4.4:compile
[INFO] | =C2=A0| =C2=A0+- com.fasterxml.jackson.core:jackson-annotat= ions:jar:2.4.0:compile
[INFO] | =C2=A0| =C2=A0\- com.fasterxml.ja= ckson.core:jackson-core:jar:2.4.4:compile
[INFO] | =C2=A0+- com.f= asterxml.jackson.module:jackson-module-scala_2.10:jar:2.4.4:compile
[INFO] | =C2=A0| =C2=A0\- org.scala-lang:scala-reflect:jar:2.10.4:compil= e
[INFO] | =C2=A0+- org.apache.ivy:ivy:jar:2.4.0:compile
[INFO] | =C2=A0+- oro:oro:jar:2.0.8:compile
[INFO] | =C2=A0+- o= rg.tachyonproject:tachyon-client:jar:0.6.4:compile
[INFO] | =C2= =A0| =C2=A0\- org.tachyonproject:tachyon:jar:0.6.4:compile
[INFO]= | =C2=A0+- net.razorvine:pyrolite:jar:4.4:compile
[INFO] | =C2= =A0+- net.sf.py4j:py4j:jar:0.8.2.1:compile
[INFO] | =C2=A0\- org.= spark-project.spark:unused:jar:1.0.0:compile

--001a11438ea6d86bc5052320a9be--