Spark- ERROR Shell: Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.

 

报错

复制代码
G:\APP\JDK\bin\java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=G:\APP\IntelliJ IDEA\bin" -Dfile.encoding=UTF-8 -classpath "G:\APP\JDK\jre\lib\charsets.jar;G:\APP\JDK\jre\lib\deploy.jar;G:\APP\JDK\jre\lib\javaws.jar;G:\APP\JDK\jre\lib\jce.jar;G:\APP\JDK\jre\lib\jfr.jar;G:\APP\JDK\jre\lib\jfxswt.jar;G:\APP\JDK\jre\lib\jsse.jar;G:\APP\JDK\jre\lib\management-agent.jar;G:\APP\JDK\jre\lib\plugin.jar;G:\APP\JDK\jre\lib\resources.jar;G:\APP\JDK\jre\lib\rt.jar;G:\APP\JDK\jre\lib\ext\access-bridge-64.jar;G:\APP\JDK\jre\lib\ext\cldrdata.jar;G:\APP\JDK\jre\lib\ext\dnsns.jar;G:\APP\JDK\jre\lib\ext\jaccess.jar;G:\APP\JDK\jre\lib\ext\jfxrt.jar;G:\APP\JDK\jre\lib\ext\localedata.jar;G:\APP\JDK\jre\lib\ext\nashorn.jar;G:\APP\JDK\jre\lib\ext\sunec.jar;G:\APP\JDK\jre\lib\ext\sunjce_provider.jar;G:\APP\JDK\jre\lib\ext\sunmscapi.jar;G:\APP\JDK\jre\lib\ext\sunpkcs11.jar;G:\APP\JDK\jre\lib\ext\zipfs.jar;D:\Demo\learnhadoop\target\classes;G:\APP\Scala\lib\scala-actors-migration.jar;G:\APP\Scala\lib\scala-actors.jar;G:\APP\Scala\lib\scala-library.jar;G:\APP\Scala\lib\scala-reflect.jar;G:\APP\Scala\lib\scala-swing.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-client\2.6.1\hadoop-client-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-common\2.6.1\hadoop-common-2.6.1.jar;C:\Users\166\.m2\repository\com\google\guava\guava\11.0.2\guava-11.0.2.jar;C:\Users\166\.m2\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;C:\Users\166\.m2\repository\xmlenc\xmlenc\0.52\xmlenc-0.52.jar;C:\Users\166\.m2\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;C:\Users\166\.m2\repository\commons-codec\commons-codec\1.4\commons-codec-1.4.jar;C:\Users\166\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\166\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\166\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\166\.m2\repository\commons-configuration\commons-configuration\1.6\commons-configuration-1.6.jar;C:\Users\166\.m2\repository\commons-digester\commons-digester\1.8\commons-digester-1.8.jar;C:\Users\166\.m2\repository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar;C:\Users\166\.m2\repository\commons-beanutils\commons-beanutils-core\1.8.0\commons-beanutils-core-1.8.0.jar;C:\Users\166\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;C:\Users\166\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;C:\Users\166\.m2\repository\org\apache\avro\avro\1.7.4\avro-1.7.4.jar;C:\Users\166\.m2\repository\com\google\protobuf\protobuf-java\2.5.0\protobuf-java-2.5.0.jar;C:\Users\166\.m2\repository\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-auth\2.6.1\hadoop-auth-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\httpcomponents\httpclient\4.2.5\httpclient-4.2.5.jar;C:\Users\166\.m2\repository\org\apache\httpcomponents\httpcore\4.2.4\httpcore-4.2.4.jar;C:\Users\166\.m2\repository\org\apache\directory\server\apacheds-kerberos-codec\2.0.0-M15\apacheds-kerberos-codec-2.0.0-M15.jar;C:\Users\166\.m2\repository\org\apache\directory\server\apacheds-i18n\2.0.0-M15\apacheds-i18n-2.0.0-M15.jar;C:\Users\166\.m2\repository\org\apache\directory\api\api-asn1-api\1.0.0-M20\api-asn1-api-1.0.0-M20.jar;C:\Users\166\.m2\repository\org\apache\directory\api\api-util\1.0.0-M20\api-util-1.0.0-M20.jar;C:\Users\166\.m2\repository\org\apache\curator\curator-client\2.6.0\curator-client-2.6.0.jar;C:\Users\166\.m2\repository\org\htrace\htrace-core\3.0.4\htrace-core-3.0.4.jar;C:\Users\166\.m2\repository\org\apache\commons\commons-compress\1.4.1\commons-compress-1.4.1.jar;C:\Users\166\.m2\repository\org\tukaani\xz\1.0\xz-1.0.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-hdfs\2.6.1\hadoop-hdfs-2.6.1.jar;C:\Users\166\.m2\repository\org\mortbay\jetty\jetty-util\6.1.26\jetty-util-6.1.26.jar;C:\Users\166\.m2\repository\xerces\xercesImpl\2.9.1\xercesImpl-2.9.1.jar;C:\Users\166\.m2\repository\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-mapreduce-client-app\2.6.1\hadoop-mapreduce-client-app-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-mapreduce-client-common\2.6.1\hadoop-mapreduce-client-common-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-yarn-client\2.6.1\hadoop-yarn-client-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-yarn-server-common\2.6.1\hadoop-yarn-server-common-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-mapreduce-client-shuffle\2.6.1\hadoop-mapreduce-client-shuffle-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-yarn-api\2.6.1\hadoop-yarn-api-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-mapreduce-client-core\2.6.1\hadoop-mapreduce-client-core-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-yarn-common\2.6.1\hadoop-yarn-common-2.6.1.jar;C:\Users\166\.m2\repository\javax\xml\bind\jaxb-api\2.2.2\jaxb-api-2.2.2.jar;C:\Users\166\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;C:\Users\166\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\Users\166\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Users\166\.m2\repository\com\sun\jersey\jersey-client\1.9\jersey-client-1.9.jar;C:\Users\166\.m2\repository\org\codehaus\jackson\jackson-jaxrs\1.9.13\jackson-jaxrs-1.9.13.jar;C:\Users\166\.m2\repository\org\codehaus\jackson\jackson-xc\1.9.13\jackson-xc-1.9.13.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-mapreduce-client-jobclient\2.6.1\hadoop-mapreduce-client-jobclient-2.6.1.jar;C:\Users\166\.m2\repository\org\apache\hadoop\hadoop-annotations\2.6.1\hadoop-annotations-2.6.1.jar;C:\Users\166\.m2\repository\com\alibaba\fastjson\1.2.36\fastjson-1.2.36.jar;C:\Users\166\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\166\.m2\repository\org\apache\zookeeper\zookeeper\3.4.8\zookeeper-3.4.8.jar;C:\Users\166\.m2\repository\org\slf4j\slf4j-api\1.6.1\slf4j-api-1.6.1.jar;C:\Users\166\.m2\repository\org\slf4j\slf4j-log4j12\1.6.1\slf4j-log4j12-1.6.1.jar;C:\Users\166\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\166\.m2\repository\io\netty\netty\3.7.0.Final\netty-3.7.0.Final.jar;C:\Users\166\.m2\repository\c3p0\c3p0\0.9.1.2\c3p0-0.9.1.2.jar;C:\Users\166\.m2\repository\mysql\mysql-connector-java\5.1.27\mysql-connector-java-5.1.27.jar;C:\Users\166\.m2\repository\org\springframework\spring-jdbc\4.2.0.RELEASE\spring-jdbc-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\org\springframework\spring-beans\4.2.0.RELEASE\spring-beans-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\org\springframework\spring-tx\4.2.0.RELEASE\spring-tx-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\org\springframework\spring-core\4.2.0.RELEASE\spring-core-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\166\.m2\repository\org\springframework\spring-context\4.2.0.RELEASE\spring-context-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\org\springframework\spring-aop\4.2.0.RELEASE\spring-aop-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\166\.m2\repository\org\springframework\spring-expression\4.2.0.RELEASE\spring-expression-4.2.0.RELEASE.jar;C:\Users\166\.m2\repository\org\scala-lang\scala-library\2.10.6\scala-library-2.10.6.jar;C:\Users\166\.m2\repository\org\apache\\spark-core_2.10\1.6.1\-core_2.10-1.6.1.jar;C:\Users\166\.m2\repository\org\apache\avro\avro-mapred\1.7.7\avro-mapred-1.7.7-hadoop2.jar;C:\Users\166\.m2\repository\org\apache\avro\avro-ipc\1.7.7\avro-ipc-1.7.7.jar;C:\Users\166\.m2\repository\org\apache\avro\avro-ipc\1.7.7\avro-ipc-1.7.7-tests.jar;C:\Users\166\.m2\repository\com\twitter\chill_2.10\0.5.0\chill_2.10-0.5.0.jar;C:\Users\166\.m2\repository\com\esotericsoftware\kryo\kryo\2.21\kryo-2.21.jar;C:\Users\166\.m2\repository\com\esotericsoftware\reflectasm\reflectasm\1.07\reflectasm-1.07-shaded.jar;C:\Users\166\.m2\repository\com\esotericsoftware\minlog\minlog\1.2\minlog-1.2.jar;C:\Users\166\.m2\repository\org\objenesis\objenesis\1.2\objenesis-1.2.jar;C:\Users\166\.m2\repository\com\twitter\chill-java\0.5.0\chill-java-0.5.0.jar;C:\Users\166\.m2\repository\org\apache\xbean\xbean-asm5-shaded\4.4\xbean-asm5-shaded-4.4.jar;C:\Users\166\.m2\repository\org\apache\\spark-launcher_2.10\1.6.1\-launcher_2.10-1.6.1.jar;C:\Users\166\.m2\repository\org\apache\\spark-network-common_2.10\1.6.1\-network-common_2.10-1.6.1.jar;C:\Users\166\.m2\repository\org\apache\\spark-network-shuffle_2.10\1.6.1\-network-shuffle_2.10-1.6.1.jar;C:\Users\166\.m2\repository\org\fusesource\leveldbjni\leveldbjni-all\1.8\leveldbjni-all-1.8.jar;C:\Users\166\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.4.4\jackson-annotations-2.4.4.jar;C:\Users\166\.m2\repository\org\apache\\spark-unsafe_2.10\1.6.1\-unsafe_2.10-1.6.1.jar;C:\Users\166\.m2\repository\net\java\dev\jets3t\jets3t\0.7.1\jets3t-0.7.1.jar;C:\Users\166\.m2\repository\org\apache\curator\curator-recipes\2.4.0\curator-recipes-2.4.0.jar;C:\Users\166\.m2\repository\org\apache\curator\curator-framework\2.4.0\curator-framework-2.4.0.jar;C:\Users\166\.m2\repository\org\eclipse\jetty\orbit\javax.servlet\3.0.0.v201112011016\javax.servlet-3.0.0.v201112011016.jar;C:\Users\166\.m2\repository\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;C:\Users\166\.m2\repository\org\apache\commons\commons-math3\3.4.1\commons-math3-3.4.1.jar;C:\Users\166\.m2\repository\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;C:\Users\166\.m2\repository\org\slf4j\jul-to-slf4j\1.7.10\jul-to-slf4j-1.7.10.jar;C:\Users\166\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.10\jcl-over-slf4j-1.7.10.jar;C:\Users\166\.m2\repository\com\ning\compress-lzf\1.0.3\compress-lzf-1.0.3.jar;C:\Users\166\.m2\repository\org\xerial\snappy\snappy-java\1.1.2\snappy-java-1.1.2.jar;C:\Users\166\.m2\repository\net\jpountz\lz4\lz4\1.3.0\lz4-1.3.0.jar;C:\Users\166\.m2\repository\org\roaringbitmap\RoaringBitmap\0.5.11\RoaringBitmap-0.5.11.jar;C:\Users\166\.m2\repository\commons-net\commons-net\2.2\commons-net-2.2.jar;C:\Users\166\.m2\repository\com\typesafe\akka\akka-remote_2.10\2.3.11\akka-remote_2.10-2.3.11.jar;C:\Users\166\.m2\repository\com\typesafe\akka\akka-actor_2.10\2.3.11\akka-actor_2.10-2.3.11.jar;C:\Users\166\.m2\repository\com\typesafe\config\1.2.1\config-1.2.1.jar;C:\Users\166\.m2\repository\org\uncommons\maths\uncommons-maths\1.2.2a\uncommons-maths-1.2.2a.jar;C:\Users\166\.m2\repository\com\typesafe\akka\akka-slf4j_2.10\2.3.11\akka-slf4j_2.10-2.3.11.jar;C:\Users\166\.m2\repository\org\json4s\json4s-jackson_2.10\3.2.10\json4s-jackson_2.10-3.2.10.jar;C:\Users\166\.m2\repository\org\json4s\json4s-core_2.10\3.2.10\json4s-core_2.10-3.2.10.jar;C:\Users\166\.m2\repository\org\json4s\json4s-ast_2.10\3.2.10\json4s-ast_2.10-3.2.10.jar;C:\Users\166\.m2\repository\org\scala-lang\scalap\2.10.0\scalap-2.10.0.jar;C:\Users\166\.m2\repository\org\scala-lang\scala-compiler\2.10.0\scala-compiler-2.10.0.jar;C:\Users\166\.m2\repository\com\sun\jersey\jersey-server\1.9\jersey-server-1.9.jar;C:\Users\166\.m2\repository\asm\asm\3.1\asm-3.1.jar;C:\Users\166\.m2\repository\com\sun\jersey\jersey-core\1.9\jersey-core-1.9.jar;C:\Users\166\.m2\repository\org\apache\mesos\mesos\0.21.1\mesos-0.21.1-shaded-protobuf.jar;C:\Users\166\.m2\repository\io\netty\netty-all\4.0.29.Final\netty-all-4.0.29.Final.jar;C:\Users\166\.m2\repository\com\clearspring\analytics\stream\2.7.0\stream-2.7.0.jar;C:\Users\166\.m2\repository\io\dropwizard\metrics\metrics-core\3.1.2\metrics-core-3.1.2.jar;C:\Users\166\.m2\repository\io\dropwizard\metrics\metrics-jvm\3.1.2\metrics-jvm-3.1.2.jar;C:\Users\166\.m2\repository\io\dropwizard\metrics\metrics-json\3.1.2\metrics-json-3.1.2.jar;C:\Users\166\.m2\repository\io\dropwizard\metrics\metrics-graphite\3.1.2\metrics-graphite-3.1.2.jar;C:\Users\166\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.4.4\jackson-databind-2.4.4.jar;C:\Users\166\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.4.4\jackson-core-2.4.4.jar;C:\Users\166\.m2\repository\com\fasterxml\jackson\module\jackson-module-scala_2.10\2.4.4\jackson-module-scala_2.10-2.4.4.jar;C:\Users\166\.m2\repository\org\scala-lang\scala-reflect\2.10.4\scala-reflect-2.10.4.jar;C:\Users\166\.m2\repository\com\thoughtworks\paranamer\paranamer\2.6\paranamer-2.6.jar;C:\Users\166\.m2\repository\org\apache\ivy\ivy\2.4.0\ivy-2.4.0.jar;C:\Users\166\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar;C:\Users\166\.m2\repository\org\tachyonproject\tachyon-client\0.8.2\tachyon-client-0.8.2.jar;C:\Users\166\.m2\repository\org\tachyonproject\tachyon-underfs-hdfs\0.8.2\tachyon-underfs-hdfs-0.8.2.jar;C:\Users\166\.m2\repository\org\tachyonproject\tachyon-underfs-s3\0.8.2\tachyon-underfs-s3-0.8.2.jar;C:\Users\166\.m2\repository\org\tachyonproject\tachyon-underfs-local\0.8.2\tachyon-underfs-local-0.8.2.jar;C:\Users\166\.m2\repository\net\razorvine\pyrolite\4.9\pyrolite-4.9.jar;C:\Users\166\.m2\repository\net\sf\py4j\py4j\0.9\py4j-0.9.jar;C:\Users\166\.m2\repository\org\-project\\unused\1.0.0\unused-1.0.0.jar;G:\APP\IntelliJ IDEA\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain zx.SparkDemo
Using 's default log4j profile: org/apache//log4j-defaults.properties
17/08/31 11:00:42 INFO SparkContext: Running  version 1.6.1
17/08/31 11:00:43 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
17/08/31 11:00:43  : Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
    at org.apache.hadoop.util..getQualifiedBinPath(.java:355)
    at org.apache.hadoop.util..getWinUtilsPath(.java:370)
    at org.apache.hadoop.util..<clinit>(.java:363)
    at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:79)
    at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:116)
    at org.apache.hadoop.security.Groups.<init>(Groups.java:93)
    at org.apache.hadoop.security.Groups.<init>(Groups.java:73)
    at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:293)
    at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:283)
    at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:260)
    at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:789)
    at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:774)
    at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:647)
    at org.apache..util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2160)
    at org.apache..util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2160)
    at scala.Option.getOrElse(Option.scala:120)
    at org.apache..util.Utils$.getCurrentUserName(Utils.scala:2160)
    at org.apache..SparkContext.<init>(SparkContext.scala:322)
    at zx.SparkDemo$.main(SparkDemo.scala:11)
    at zx.SparkDemo.main(SparkDemo.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
17/08/31 11:00:43 INFO SecurityManager: Changing view acls to: 166
17/08/31 11:00:43 INFO SecurityManager: Changing modify acls to: 166
17/08/31 11:00:43 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(166); users with modify permissions: Set(166)
17/08/31 11:00:44 INFO Utils: Successfully started service 'sparkDriver' on port 50052.
17/08/31 11:00:44 INFO Slf4jLogger: Slf4jLogger started
17/08/31 11:00:44 INFO Remoting: Starting remoting
17/08/31 11:00:44 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://sparkDriverActorSystem@192.168.0.166:50065]
17/08/31 11:00:44 INFO Utils: Successfully started service 'sparkDriverActorSystem' on port 50065.
17/08/31 11:00:44 INFO SparkEnv: Registering MapOutputTracker
17/08/31 11:00:44 INFO SparkEnv: Registering BlockManagerMaster
17/08/31 11:00:44 INFO DiskBlockManager: Created local directory at C:\Users\166\AppData\Local\Temp\blockmgr-5269cfbb-bbec-4ecd-99dc-66512a129cac
17/08/31 11:00:44 INFO MemoryStore: MemoryStore started with capacity 2.4 GB
17/08/31 11:00:44 INFO SparkEnv: Registering OutputCommitCoordinator
17/08/31 11:00:44  SparkContext:  initializing SparkContext.
java.lang.SecurityException: class "javax.servlet.FilterRegistration"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.spark-project.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:136)
    at org.spark-project.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:129)
    at org.spark-project.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:98)
    at org.apache.spark.ui.JettyUtils$.createServletHandler(JettyUtils.scala:126)
    at org.apache.spark.ui.JettyUtils$.createServletHandler(JettyUtils.scala:113)
    at org.apache.spark.ui.WebUI.attachPage(WebUI.scala:78)
    at org.apache.spark.ui.WebUI$$anonfun$attachTab$1.apply(WebUI.scala:62)
    at org.apache.spark.ui.WebUI$$anonfun$attachTab$1.apply(WebUI.scala:62)
    at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
    at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
    at org.apache.spark.ui.WebUI.attachTab(WebUI.scala:62)
    at org.apache.spark.ui.SparkUI.initialize(SparkUI.scala:63)
    at org.apache.spark.ui.SparkUI.<init>(SparkUI.scala:76)
    at org.apache.spark.ui.SparkUI$.create(SparkUI.scala:195)
    at org.apache.spark.ui.SparkUI$.createLiveUI(SparkUI.scala:146)
    at org.apache.spark.SparkContext.<init>(SparkContext.scala:473)
    at zx.SparkDemo$.main(SparkDemo.scala:11)
    at zx.SparkDemo.main(SparkDemo.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
17/08/31 11:00:44 INFO MapOutputTrackerMasterEndpoint: MapOutputTrackerMasterEndpoint stopped!
17/08/31 11:00:44 INFO MemoryStore: MemoryStore cleared
17/08/31 11:00:44 INFO BlockManager: BlockManager stopped
17/08/31 11:00:44 INFO BlockManagerMaster: BlockManagerMaster stopped
17/08/31 11:00:44 WARN MetricsSystem: Stopping a MetricsSystem that is not running
17/08/31 11:00:44 INFO OutputCommitCoordinator$OutputCommitCoordinatorEndpoint: OutputCommitCoordinator stopped!
17/08/31 11:00:44 INFO RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon.
17/08/31 11:00:44 INFO SparkContext: Successfully stopped SparkContext
Exception in thread "main" java.lang.SecurityException: class "javax.servlet.FilterRegistration"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.spark-project.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:136)
    at org.spark-project.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:129)
    at org.spark-project.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:98)
    at org.apache.spark.ui.JettyUtils$.createServletHandler(JettyUtils.scala:126)
    at org.apache.spark.ui.JettyUtils$.createServletHandler(JettyUtils.scala:113)
    at org.apache.spark.ui.WebUI.attachPage(WebUI.scala:78)
    at org.apache.spark.ui.WebUI$$anonfun$attachTab$1.apply(WebUI.scala:62)
    at org.apache.spark.ui.WebUI$$anonfun$attachTab$1.apply(WebUI.scala:62)
    at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
    at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
    at org.apache.spark.ui.WebUI.attachTab(WebUI.scala:62)
    at org.apache.spark.ui.SparkUI.initialize(SparkUI.scala:63)
    at org.apache.spark.ui.SparkUI.<init>(SparkUI.scala:76)
    at org.apache.spark.ui.SparkUI$.create(SparkUI.scala:195)
    at org.apache.spark.ui.SparkUI$.createLiveUI(SparkUI.scala:146)
    at org.apache.spark.SparkContext.<init>(SparkContext.scala:473)
    at zx.SparkDemo$.main(SparkDemo.scala:11)
    at zx.SparkDemo.main(SparkDemo.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
17/08/31 11:00:44 INFO RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports.
17/08/31 11:00:45 INFO ShutdownHookManager: Shutdown hook called
17/08/31 11:00:45 INFO ShutdownHookManager: Deleting directory C:\Users\166\AppData\Local\Temp\spark-823d4cf6-dd1a-4f32-a5f9-5fa72f49ee5e

Process finished with exit code 1
复制代码

纠错:把prom文件中的hadoop依赖删除

 

 

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
0 条回复 A 作者 M 管理员
    所有的伟大,都源于一个勇敢的开始!
欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论