Jarosław Czarniak created BIGTOP-4436:
-----------------------------------------
Summary: protobuf version mismatch between hadoop and tez
Key: BIGTOP-4436
URL: https://issues.apache.org/jira/browse/BIGTOP-4436
Project: Bigtop
Issue Type: Bug
Components: hadoop, tez
Affects Versions: 3.4.0, 3.3.0
Reporter: Jarosław Czarniak
Hi.
On 3.4.0 I'm suffering the same (?) issue like I had on 3.3.0. When I run any
app on tez it fails with error similar to the one shown below.
The solution to this problem was (and is) to replace the following:
{code:java}
- "/usr/lib/hadoop/client/protobuf-java-2.5.0.jar"
- "/usr/lib/hadoop/client/protobuf-java.jar" (symlink)
- "/usr/lib/hadoop-hdfs/lib/protobuf-2.5.0.jar"
- "/usr/lib/hadoop/lib/protobuf-java-2.5.0.jar"{code}
with
{code:java}
protobuf-java-3.24.4.jar{code}
provided by tez package (tez-0.10.4-1.el9.noarch.rpm).
Is this known issue? If so, will it be fixed on the next release or it is there
for a reason?
Am I doing something wrong? Is there a better way to fix this?
The error:
{code:java}
root@xxxx-tst0004 ~# yarn jar /usr/lib/tez/tez-examples-0.10.4.jar
orderedwordcount -Dmapreduce.framework.name=yarn-tez
-Dmapreduce.job.queuename=root.default /user/hadoop_test_user/input
/user/hadoop_test_user/output2
java.lang.IllegalAccessError: class
org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto tried to access
private field com.google.protobuf.AbstractMessage.memoizedSize
(org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto and
com.google.protobuf.AbstractMessage are in unnamed module of loader 'app')
at
org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto.getSerializedSize(DAGProtos.java:21080)
at
com.google.protobuf.AbstractMessageLite.writeTo(AbstractMessageLite.java:75)
at org.apache.tez.common.TezUtils.writeConfInPB(TezUtils.java:162)
at
org.apache.tez.common.TezUtils.createByteStringFromConf(TezUtils.java:82)
at
org.apache.tez.mapreduce.hadoop.MRInputHelpers.createMRInputPayload(MRInputHelpers.java:717)
at
org.apache.tez.mapreduce.input.MRInput$MRInputHelpersInternal.createMRInputPayload(MRInput.java:712)
at
org.apache.tez.mapreduce.input.MRInput$MRInputConfigBuilder.createGeneratorDataSource(MRInput.java:336)
at
org.apache.tez.mapreduce.input.MRInput$MRInputConfigBuilder.build(MRInput.java:266)
at
org.apache.tez.examples.OrderedWordCount.createDAG(OrderedWordCount.java:130)
at
org.apache.tez.examples.OrderedWordCount.runJob(OrderedWordCount.java:200)
at
org.apache.tez.examples.TezExampleBase._execute(TezExampleBase.java:245)
at org.apache.tez.examples.TezExampleBase.run(TezExampleBase.java:126)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)
at
org.apache.tez.examples.OrderedWordCount.main(OrderedWordCount.java:208)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
at org.apache.tez.examples.ExampleDriver.main(ExampleDriver.java:51)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.hadoop.util.RunJar.run(RunJar.java:328)
at org.apache.hadoop.util.RunJar.main(RunJar.java:241)
root@xxxxtst0004 ~#{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)