Re: ClassNotFoundException org.apache.spark.Logging
Thanks Marcelo. Problem solved. Best, Carlo Hi Marcelo, Thanks you for your help. Problem solved as you suggested. Best Regards, Carlo > On 5 Aug 2016, at 18:34, Marcelo Vanzinwrote: > > On Fri, Aug 5, 2016 at 9:53 AM, Carlo.Allocca > wrote: >> >>org.apache.spark >>spark-core_2.10 >>2.0.0 >>jar >> >> >>org.apache.spark >>spark-sql_2.10 >>2.0.0 >>jar >> >> >>org.apache.spark >>spark-mllib_2.10 >>1.3.0 >>jar >> >> >> > > One of these is not like the others... > > -- > Marcelo -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority. - To unsubscribe e-mail: user-unsubscr...@spark.apache.org
Re: ClassNotFoundException org.apache.spark.Logging
I have also executed: mvn dependency:tree |grep log [INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:compile [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.16:compile [INFO] | | +- commons-logging:commons-logging:jar:1.1.3:compile and the POM reports the above libraries. Many Thanks for your help. Carlo On 5 Aug 2016, at 18:17, Carlo.Allocca> wrote: Please Sean, could you detail the version mismatch? Many thanks, Carlo On 5 Aug 2016, at 18:11, Sean Owen > wrote: You also seem to have a version mismatch here. -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
Re: ClassNotFoundException org.apache.spark.Logging
On Fri, Aug 5, 2016 at 9:53 AM, Carlo.Alloccawrote: > > org.apache.spark > spark-core_2.10 > 2.0.0 > jar > > > org.apache.spark > spark-sql_2.10 > 2.0.0 > jar > > > org.apache.spark > spark-mllib_2.10 > 1.3.0 > jar > > > One of these is not like the others... -- Marcelo - To unsubscribe e-mail: user-unsubscr...@spark.apache.org
Re: ClassNotFoundException org.apache.spark.Logging
Please Sean, could you detail the version mismatch? Many thanks, Carlo On 5 Aug 2016, at 18:11, Sean Owen> wrote: You also seem to have a version mismatch here. -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
Re: ClassNotFoundException org.apache.spark.Logging
One option is to clone the class in your own project. Experts may have better solution. Cheers On Fri, Aug 5, 2016 at 10:10 AM, Carlo.Alloccawrote: > Hi Ted, > > Thanks for the promptly answer. > It is not yet clear to me what I should do. > > How to fix it? > > Many thanks, > Carlo > > On 5 Aug 2016, at 17:58, Ted Yu wrote: > > private[spark] trait Logging { > > > -- The Open University is incorporated by Royal Charter (RC 000391), an > exempt charity in England & Wales and a charity registered in Scotland (SC > 038302). The Open University is authorised and regulated by the Financial > Conduct Authority. >
Re: ClassNotFoundException org.apache.spark.Logging
Hi Ted, Thanks for the promptly answer. It is not yet clear to me what I should do. How to fix it? Many thanks, Carlo On 5 Aug 2016, at 17:58, Ted Yu> wrote: private[spark] trait Logging { -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
Re: ClassNotFoundException org.apache.spark.Logging
In 2.0, Logging became private: private[spark] trait Logging { FYI On Fri, Aug 5, 2016 at 9:53 AM, Carlo.Alloccawrote: > Dear All, > > I would like to ask for your help about the following issue: > java.lang.ClassNotFoundException: > org.apache.spark.Logging > > I checked and the class Logging is not present. > Moreover, the line of code where the exception is thrown > > final org.apache.spark.mllib.regression.LinearRegressionModel lrModel > = LinearRegressionWithSGD.train(a, numIterations, > stepSize); > > > My POM is as reported below. > > > What am I doing wrong or missing? How I can fix it? > > Many Thanks in advice for your support. > > Best, > Carlo > > > > POM > > > > > org.apache.spark > spark-core_2.10 > 2.0.0 > jar > > > > > org.apache.spark > spark-sql_2.10 > 2.0.0 > jar > > > > log4j > log4j > 1.2.17 > test > > > > > org.slf4j > slf4j-log4j12 > 1.7.16 > test > > > > > org.apache.hadoop > hadoop-client > 2.7.2 > > > > junit > junit > 4.12 > > > > org.hamcrest > hamcrest-core > 1.3 > > > org.apache.spark > spark-mllib_2.10 > 1.3.0 > jar > > > > > -- The Open University is incorporated by Royal Charter (RC 000391), an > exempt charity in England & Wales and a charity registered in Scotland (SC > 038302). The Open University is authorised and regulated by the Financial > Conduct Authority. > > - > To unsubscribe e-mail: user-unsubscr...@spark.apache.org > >
ClassNotFoundException org.apache.spark.Logging
Dear All, I would like to ask for your help about the following issue: java.lang.ClassNotFoundException: org.apache.spark.Logging I checked and the class Logging is not present. Moreover, the line of code where the exception is thrown final org.apache.spark.mllib.regression.LinearRegressionModel lrModel = LinearRegressionWithSGD.train(a, numIterations, stepSize); My POM is as reported below. What am I doing wrong or missing? How I can fix it? Many Thanks in advice for your support. Best, Carlo POM org.apache.spark spark-core_2.10 2.0.0 jar org.apache.spark spark-sql_2.10 2.0.0 jar log4j log4j 1.2.17 test org.slf4j slf4j-log4j12 1.7.16 test org.apache.hadoop hadoop-client 2.7.2 junit junit 4.12 org.hamcrest hamcrest-core 1.3 org.apache.spark spark-mllib_2.10 1.3.0 jar -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority. - To unsubscribe e-mail: user-unsubscr...@spark.apache.org