scala - java.lang.SecurityException:class "javax.servlet.FilterRegistration" information does not match signer information of other classes in same package -


i new programming in spark scala. trying run following program:

import org.apache.spark.sparkcontext import org.apache.spark.sparkconf  object testmain {         def main(args: array[string]) {         val logfile = "spark-1.4.1/readme.md" // should file on system          val conf = new sparkconf().setappname("simple application")   .setmaster("spark://myhost:7077")         val sc = new sparkcontext(conf)         val logdata = sc.textfile(logfile, 2).cache()         val numas = logdata.filter(line => line.contains("a")).count()         val numbs = logdata.filter(line => line.contains("b")).count()         println("lines a: %s, lines b: %s".format(numas, numbs))     } } 

my build.sbt follows:

name := "testspark"  version := "1.0"  scalaversion := "2.10.4"  librarydependencies += "org.apache.spark" %% "spark-core" % "1.4.1" % "provided"  librarydependencies += "org.apache.hadoop" % "hadoop-client" % "2.4.0" % "provided" 

i have tried advised on various forums still not able eliminate error

java.lang.securityexception: class "javax.servlet.filterregistration"'s signer information not match signer information of other classes in same package 

any advice? there doing wrong?


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -