spark-core's dependency on commons-math3 is @ test scope (core/pom.xml): <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-math3</artifactId> <version>3.3</version> <scope>test</scope> </dependency>
Adjusting the scope should solve the problem below. On Fri, Sep 26, 2014 at 8:42 AM, Jaonary Rabarisoa <jaon...@gmail.com> wrote: > Hi all, > > I'm using some functions from Breeze in a spark job but I get the > following build error : > > *Error:scalac: bad symbolic reference. A signature in RandBasis.class > refers to term math3* > *in package org.apache.commons which is not available.* > *It may be completely missing from the current classpath, or the version > on* > *the classpath might be incompatible with the version used when compiling > RandBasis.class.* > > In my case, I just declare a new Gaussian distribution > > *val g = new Gaussian(0d,1d)* > > I'm using spark 1.1 > > > Any ideas to fix this ? > > > Best regards, > > > Jao >