From mapreduce-issues-return-91255-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Feb 27 09:28:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1D2AA180651 for ; Tue, 27 Feb 2018 09:28:05 +0100 (CET) Received: (qmail 81745 invoked by uid 500); 27 Feb 2018 08:28:04 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 81733 invoked by uid 99); 27 Feb 2018 08:28:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2018 08:28:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6AC6F180295 for ; Tue, 27 Feb 2018 08:28:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id P3LOKOCywFk5 for ; Tue, 27 Feb 2018 08:28:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id F3F9D5F398 for ; Tue, 27 Feb 2018 08:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 03BD1E0296 for ; Tue, 27 Feb 2018 08:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6302924090 for ; Tue, 27 Feb 2018 08:28:00 +0000 (UTC) Date: Tue, 27 Feb 2018 08:28:00 +0000 (UTC) From: "Jiandan Yang (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-7059) Compatibility issue: job submission fails with RpcNoSuchMethodException when submitting to 2.x cluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-7059?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jiandan Yang updated MAPREDUCE-7059: ------------------------------------- Attachment: MAPREDUCE-7059.003.patch > Compatibility issue: job submission fails with RpcNoSuchMethodException w= hen submitting to 2.x cluster > -------------------------------------------------------------------------= ----------------------------- > > Key: MAPREDUCE-7059 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-7059 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: job submission > Affects Versions: 3.0.0 > Reporter: Jiandan Yang=20 > Priority: Critical > Attachments: MAPREDUCE-7059.001.patch, MAPREDUCE-7059.002.patch, = MAPREDUCE-7059.003.patch > > > Running teragen failed in the version of hadoop-3.1, and hdfs server is 2= .8. > {code:java} > bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.0-SNA= PSHOT.jar =C2=A0teragen =C2=A0100000 /teragen > {code} > The reason of failing is 2.8 HDFS does not have setErasureCodingPolicy. > one solution is parsing RemoteException in JobResourceUploader#disableEr= asure like this: > {code:java} > private void disableErasureCodingForPath(FileSystem fs, Path path) > throws IOException { > try { > if (jtFs instanceof DistributedFileSystem) { > LOG.info("Disabling Erasure Coding for path: " + path); > DistributedFileSystem dfs =3D (DistributedFileSystem) jtFs; > dfs.setErasureCodingPolicy(path, > SystemErasureCodingPolicies.getReplicationPolicy().getName())= ; > } > } catch (RemoteException e) { > if (!e.getClassName().equals(RpcNoSuchMethodException.class.getName= ())) { > throw e; > } else { > LOG.warn( > "hdfs server does not have method disableErasureCodingForPath= ,"=20 > + " and skip disableErasureCodingForPath", e); > } > } > } > {code} > Does anyone have better solution? > The detailed exception trace is: > {code:java} > 2018-02-26 11:22:53,178 INFO mapreduce.JobSubmitter: Cleaning up the stag= ing area /tmp/hadoop-yarn/staging/hadoop/.staging/job_1518615699369_0006 > org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.RpcNoSuchMeth= odException): Unknown method setErasureCodingPolicy called on org.apache.ha= doop.hdfs.protocol.ClientProtocol protocol. > =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.c= all(ProtobufRpcEngine.java:436) > =09at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:989) > =09at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:846) > =09at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:789) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:422) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1804) > =09at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2457) > =09at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1491) > =09at org.apache.hadoop.ipc.Client.call(Client.java:1437) > =09at org.apache.hadoop.ipc.Client.call(Client.java:1347) > =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcE= ngine.java:228) > =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcE= ngine.java:116) > =09at com.sun.proxy.$Proxy11.setErasureCodingPolicy(Unknown Source) > =09at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorP= B.setErasureCodingPolicy(ClientNamenodeProtocolTranslatorPB.java:1583) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:62) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:498) > =09at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(Retr= yInvocationHandler.java:422) > =09at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod= (RetryInvocationHandler.java:165) > =09at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(Retry= InvocationHandler.java:157) > =09at org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(R= etryInvocationHandler.java:95) > =09at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvoc= ationHandler.java:359) > =09at com.sun.proxy.$Proxy12.setErasureCodingPolicy(Unknown Source) > =09at org.apache.hadoop.hdfs.DFSClient.setErasureCodingPolicy(DFSClient.j= ava:2678) > =09at org.apache.hadoop.hdfs.DistributedFileSystem$63.doCall(DistributedF= ileSystem.java:2665) > =09at org.apache.hadoop.hdfs.DistributedFileSystem$63.doCall(DistributedF= ileSystem.java:2662) > =09at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkR= esolver.java:81) > =09at org.apache.hadoop.hdfs.DistributedFileSystem.setErasureCodingPolicy= (DistributedFileSystem.java:2680) > =09at org.apache.hadoop.mapreduce.JobResourceUploader.disableErasureCodin= gForPath(JobResourceUploader.java:882) > =09at org.apache.hadoop.mapreduce.JobResourceUploader.uploadResourcesInte= rnal(JobResourceUploader.java:174) > =09at org.apache.hadoop.mapreduce.JobResourceUploader.uploadResources(Job= ResourceUploader.java:131) > =09at org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobS= ubmitter.java:102) > =09at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmi= tter.java:197) > =09at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570) > =09at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:422) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1965) > =09at org.apache.hadoop.mapreduce.Job.submit(Job.java:1567) > =09at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1588) > =09at org.apache.hadoop.examples.terasort.TeraGen.run(TeraGen.java:304) > =09at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) > =09at org.apache.hadoop.examples.terasort.TeraGen.main(TeraGen.java:308) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:62) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:498) > =09at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(Prog= ramDriver.java:71) > =09at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144) > =09at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74= ) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:62) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:498) > =09at org.apache.hadoop.util.RunJar.run(RunJar.java:304) > =09at org.apache.hadoop.util.RunJar.main(RunJar.java:218) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org