spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Canoe <canoe...@gmail.com>
Subject Exception in thread "main" java.lang.VerifyError: class org.apache.hadoop.yarn.proto.YarnProtos$PriorityProto overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
Date Wed, 25 Mar 2015 08:59:06 GMT
I compile spark-1.3.0 on Hadoop 2.3.0-cdh5.1.0 with protoc 2.5.0. But when I
try to run the examples, it throws: Exception in thread "main"
java.lang.VerifyError: class
org.apache.hadoop.yarn.proto.YarnProtos$PriorityProto overrides final method
getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;	at
java.lang.ClassLoader.defineClass1(Native Method)	at
java.lang.ClassLoader.defineClass(ClassLoader.java:800)	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)	at
java.net.URLClassLoader.defineClass(URLClassLoader.java:449)	at
java.net.URLClassLoader.access$100(URLClassLoader.java:71)	at
java.net.URLClassLoader$1.run(URLClassLoader.java:361)	at
java.net.URLClassLoader$1.run(URLClassLoader.java:355)	at
java.security.AccessController.doPrivileged(Native Method)	at
java.net.URLClassLoader.findClass(URLClassLoader.java:354)	at
java.lang.ClassLoader.loadClass(ClassLoader.java:425)	at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)	at
java.lang.ClassLoader.loadClass(ClassLoader.java:358)	at
java.lang.Class.getDeclaredConstructors0(Native Method)	at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)	at
java.lang.Class.getConstructor0(Class.java:2842)	at
java.lang.Class.getConstructor(Class.java:1718)	at
org.apache.hadoop.yarn.factories.impl.pb.RecordFactoryPBImpl.newRecordInstance(RecordFactoryPBImpl.java:62)
at org.apache.hadoop.yarn.util.Records.newRecord(Records.java:36)	at
org.apache.hadoop.yarn.api.records.Priority.newInstance(Priority.java:39)	at
org.apache.hadoop.yarn.api.records.Priority.(Priority.java:34)	at
org.apache.spark.deploy.yarn.YarnSparkHadoopUtil$.(YarnSparkHadoopUtil.scala:101)
at
org.apache.spark.deploy.yarn.YarnSparkHadoopUtil$.(YarnSparkHadoopUtil.scala)
at org.apache.spark.deploy.yarn.ClientArguments.(ClientArguments.scala:38)
at org.apache.spark.deploy.yarn.Client$.main(Client.scala:646)	at
org.apache.spark.deploy.yarn.Client.main(Client.scala)	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)	at
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)	at
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)	at
org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)Hey, guys.  It
may be caused by the proto version unmatched.  Can anyone tell me what
should I do to avoid this problem? I did not find any information about
this. Thanks.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Exception-in-thread-main-java-lang-VerifyError-class-org-apache-hadoop-yarn-proto-YarnProtos-Priorit-tp22217.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
Mime
View raw message