From user-return-60211-apmail-spark-user-archive=spark.apache.org@spark.apache.org Tue Jul 26 20:19:25 2016 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 573C2199F0 for ; Tue, 26 Jul 2016 20:19:25 +0000 (UTC) Received: (qmail 40823 invoked by uid 500); 26 Jul 2016 20:19:17 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 40694 invoked by uid 500); 26 Jul 2016 20:19:17 -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 40684 invoked by uid 99); 26 Jul 2016 20:19:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 20:19:17 +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 B5723180040 for ; Tue, 26 Jul 2016 20:19:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.529 X-Spam-Level: * X-Spam-Status: No, score=1.529 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_LOW=-0.7, 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=databricks-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id E6TyIdn4Mxr3 for ; Tue, 26 Jul 2016 20:19:14 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2C5655F369 for ; Tue, 26 Jul 2016 20:19:14 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id g62so12964440lfe.3 for ; Tue, 26 Jul 2016 13:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=databricks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WGSCQjvnkS8o4sMRVMgEsiyJ+Epq5zghmkmSBSn9vZY=; b=enyP3FReYP0YNF7b+R5TrOKpalpnw0a1107N8oWODYaqppBMtfWMLQ0rdj2Q4RlPOh gs+BnaVTF86YCciDX90FsPOvXoIVCBwDwdGBn6QgLyIiI6fN4vWIX6U5JzYVRRtK8Azk 4o/JcwSXp2kb4Sy0mhhAWIrD2KoEzd182K04GjXNUK+9S1a1uudauHSMQAHaERsD8D3D 97yZO82PC1ppV3DifsDUA6tzaE5IMoU3nH+wGZlYMBFRiraPy+69wxHx/foNdQWKBhN1 jsFLl8isVlMiC0m8p8GnD/c5ZL4yMjwKXn4wkdVZFsHUmCijwdnPb2V1HEii73MDwZpf 0DNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WGSCQjvnkS8o4sMRVMgEsiyJ+Epq5zghmkmSBSn9vZY=; b=j2qeSlnGlYpL7qB4/zemERi6fh3x+HuUeRahm7BxUnX0rGh6yY5l2U523FnWOz5qqP +Y31ZhqrOAeQIzV3vremdQvdwB08muSjnsvrdiQoJw2vzIwQX/tylTFnBKeIZ2KQaNBH Z7gZBuzsI5mx2N1nJy/K/fbRFnzVUBpFAPCVb0kLZoZ6YOTjjiQEufpZ1AdyygdH+16E DfwbeWZ2gRgkaEnfNTnI658pIbLeot8Ci7zDXZeowNsdsGcoxj2lWM4qPtbjgt4r4Dp1 uzTm7iXkE0P3Lkw+pu+b5oXhdTsbILMNJi57PScftlrEiLRd2HGkL9Qj80XnXf5Cs+ps w2PQ== X-Gm-Message-State: AEkooutQJVIX1CYDetJZqpADfl/pUtDE5OO6/aeJK7hPBgCeEWKD5pGHNMXpZ5/Ilvd+HOXwgLA8GGMcNcNZoDiB X-Received: by 10.25.155.145 with SMTP id d139mr10341869lfe.120.1469564352989; Tue, 26 Jul 2016 13:19:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.216.129 with HTTP; Tue, 26 Jul 2016 13:18:53 -0700 (PDT) In-Reply-To: References: From: Michael Armbrust Date: Tue, 26 Jul 2016 13:18:53 -0700 Message-ID: Subject: Re: libraryDependencies To: Martin Somers Cc: user Content-Type: multipart/alternative; boundary=001a114022983c182005388f9d43 --001a114022983c182005388f9d43 Content-Type: text/plain; charset=UTF-8 libraryDependencies ++= Seq( // other dependencies here "org.apache.spark" %% "spark-core" % "1.6.2" % "provided", "org.apache.spark" %% "spark-mllib" % "1.6.2" % "provided", "org.scalanlp" %% "breeze" % "0.12", // native libraries are not included by default. add this if you want them (as of 0.7) // native libraries greatly improve performance, but increase jar sizes. "org.scalanlp" %% "breeze-natives" % "0.12", ) On Tue, Jul 26, 2016 at 12:49 PM, Martin Somers wrote: > cheers - I updated > > libraryDependencies ++= Seq( > // other dependencies here > "org.apache.spark" %% "spark-core" % "1.6.2" % "provided", > "org.apache.spark" %% "spark-mllib_2.10" % "1.6.2", > "org.scalanlp" %% "breeze" % "0.12", > // native libraries are not included by default. add this if > you want them (as of 0.7) > // native libraries greatly improve performance, but > increase jar sizes. > "org.scalanlp" %% "breeze-natives" % "0.12", > ) > > and getting similar error > > Compiling 1 Scala source to > /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/target/scala-2.11/classes... > [error] > /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:2: > object mllib is not a member of package org.apache.spark > [error] import org.apache.spark.mllib.linalg.distributed.RowMatrix > [error] ^ > [error] > /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:3: > object mllib is not a member of package org.apache.spark > [error] import org.apache.spark.mllib.linalg.SingularValueDecomposition > [error] ^ > [error] > /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:5: > object mllib is not a member of package org.apache.spark > [error] import org.apache.spark.mllib.linalg.{Vector, Vectors} > [error] ^ > [error] > /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:8: > not found: object breeze > > On Tue, Jul 26, 2016 at 8:36 PM, Michael Armbrust > wrote: > >> Also, you'll want all of the various spark versions to be the same. >> >> On Tue, Jul 26, 2016 at 12:34 PM, Michael Armbrust < >> michael@databricks.com> wrote: >> >>> If you are using %% (double) then you do not need _2.11. >>> >>> On Tue, Jul 26, 2016 at 12:18 PM, Martin Somers >>> wrote: >>> >>>> >>>> my build file looks like >>>> >>>> libraryDependencies ++= Seq( >>>> // other dependencies here >>>> "org.apache.spark" %% "spark-core" % "1.6.2" % "provided", >>>> "org.apache.spark" %% "spark-mllib_2.11" % "1.6.0", >>>> "org.scalanlp" % "breeze_2.11" % "0.7", >>>> // native libraries are not included by default. add this >>>> if you want them (as of 0.7) >>>> // native libraries greatly improve performance, but >>>> increase jar sizes. >>>> "org.scalanlp" % "breeze-natives_2.11" % "0.7", >>>> ) >>>> >>>> not 100% sure on the version numbers if they are indeed correct >>>> getting an error of >>>> >>>> [info] Resolving jline#jline;2.12.1 ... >>>> [info] Done updating. >>>> [info] Compiling 1 Scala source to >>>> /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/target/scala-2.11/classes... >>>> [error] >>>> /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:2: >>>> object mllib is not a member of package org.apache.spark >>>> [error] import org.apache.spark.mllib.linalg.distributed.RowMatrix >>>> .... >>>> ... >>>> >>>> >>>> Im trying to import in >>>> >>>> import org.apache.spark.mllib.linalg.distributed.RowMatrix >>>> import org.apache.spark.mllib.linalg.SingularValueDecomposition >>>> >>>> import org.apache.spark.mllib.linalg.{Vector, Vectors} >>>> >>>> >>>> import breeze.linalg._ >>>> import breeze.linalg.{ Matrix => B_Matrix } >>>> import breeze.linalg.{ Vector => B_Matrix } >>>> import breeze.linalg.DenseMatrix >>>> >>>> object MyApp { >>>> def main(args: Array[String]): Unit = { >>>> //code here >>>> } >>>> >>>> >>>> It might not be the correct way of doing this >>>> >>>> Anyone got any suggestion >>>> tks >>>> M >>>> >>>> >>>> >>>> >>> >> > > > -- > M > --001a114022983c182005388f9d43 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
library= Dependencies =C2=A0++=3D Seq(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 // other dependencies here
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 "org.apache.spark" %% "spark-core&q= uot; % "1.6.2" % "provided",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "or= g.apache.spark" %% "spark-mllib" % "1.6.2"=C2=A0% "provided",
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "org.scalanlp" %% "= ;breeze" % "0.12",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // native l= ibraries are not included by default. add this if you want them (as of 0.7)=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // native libra= ries greatly improve performance, but increase jar sizes.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= "org.scalanlp" %% "breeze-natives" % "0.12",=
)

On Tue, Jul 26, 2016 at 12:49 PM, Martin = Somers <sononix@gmail.com> wrote:
cheers - I updated=C2=A0

libraryDependencies =C2=A0++=3D Seq(
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // other dependencies here
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "org.apache.spark&qu= ot; %% "spark-core" % "1.6.2" % "provided",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "org.= apache.spark" %% "spark-mllib_2.10" % "1.6.2",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "org.scalanlp&= quot; %% "breeze" % "0.12",
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // native libraries are no= t included by default. add this if you want them (as of 0.7)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // native libraries greatly i= mprove performance, but increase jar sizes.
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "org.scalanlp" %% "breeze= -natives" % "0.12",
)

and getting similar error=C2=A0

Compiling 1 Scala source to /Users/studio/.sbt/0.13/staging/42f93875= 138543b4e1d3/sparksample/target/scala-2.11/classes...
[error] /Us= ers/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample/src/main/scal= a/MyApp.scala:2: object mllib is not a member of package org.apache.spark
[error] import org.apache.spark.mllib.linalg.distributed.RowMatrix=
[error] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
[error] /Users/studio/.sbt/0= .13/staging/42f93875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:3: = object mllib is not a member of package org.apache.spark
[error] = import org.apache.spark.mllib.linalg.SingularValueDecomposition
[= error] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^
[error] /Users/studio/.sbt/0.13/staging/42f93= 875138543b4e1d3/sparksample/src/main/scala/MyApp.scala:5: object mllib is n= ot a member of package org.apache.spark
[error] import org.apache= .spark.mllib.linalg.{Vector, Vectors}
[error] =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
<= div>[error] /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksampl= e/src/main/scala/MyApp.scala:8: not found: object breeze
<= div class=3D"gmail_extra">

On Tue, Jul 26, 2016 at 8:36 PM, Michael Armbrust &l= t;michael@datab= ricks.com> wrote:
Also, you'll want all of the various spark versions to be the = same.

On Tue, Jul 26, 2016 at 12:34 PM, Michael Armbrust &l= t;michael@datab= ricks.com> wrote:
If you are using %% (double) then you do not need _2.11.

On Tue, Jul= 26, 2016 at 12:18 PM, Martin Somers <sononix@gmail.com> wro= te:

my bu= ild file looks like=C2=A0

libraryDependenci= es =C2=A0++=3D Seq(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 // other dependencies here
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 "org.apache.spark" %% "spark-core" % &qu= ot;1.6.2" % "provided",
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 "org.apache.spark" %% "spark-mllib_= 2.11" % "1.6.0",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 "org.scalanlp" % "breeze_2.11" % &quo= t;0.7",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // = native libraries are not included by default. add this if you want them (as= of 0.7)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // nati= ve libraries greatly improve performance, but increase jar sizes.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "org.scalanlp" = % "breeze-natives_2.11" % "0.7",
)

not 100% sure on the version numbers if they are indee= d correct=C2=A0
getting an error of=C2=A0

[info] Resolving jline#jline;2.12.1 ...
[info] Done updati= ng.
[info] Compiling 1 Scala source to /Users/studio/.sbt/0.13/st= aging/42f93875138543b4e1d3/sparksample/target/scala-2.11/classes...
[error] /Users/studio/.sbt/0.13/staging/42f93875138543b4e1d3/sparksample= /src/main/scala/MyApp.scala:2: object mllib is not a member of package org.= apache.spark
[error] import org.apache.spark.mllib.linalg.distrib= uted.RowMatrix
....
...

=
Im trying to import in=C2=A0

i= mport org.apache.spark.mllib.linalg.distributed.RowMatrix
import = org.apache.spark.mllib.linalg.SingularValueDecomposition

import org.apache.spark.mllib.linalg.{Vector, Vectors}

import breeze.linalg._
import breeze.l= inalg.{ Matrix =3D> B_Matrix }
import breeze.linalg.{ Vector = =3D> B_Matrix }
import breeze.linalg.DenseMatrix
object MyApp {
=C2=A0 def main(args: Array[String]): = Unit =3D {
//code here=C2=A0
}


It might not be the correct way of doing this=C2=A0

Anyone got any suggestion=C2=A0
tks
=
M








<= /div>--
M

--001a114022983c182005388f9d43--