Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA3BA19216 for ; Thu, 14 Apr 2016 02:03:26 +0000 (UTC) Received: (qmail 29703 invoked by uid 500); 14 Apr 2016 02:03:26 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 29533 invoked by uid 500); 14 Apr 2016 02:03:26 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 29059 invoked by uid 99); 14 Apr 2016 02:03:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 02:03:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AEFB72C1F79 for ; Thu, 14 Apr 2016 02:03:25 +0000 (UTC) Date: Thu, 14 Apr 2016 02:03:25 +0000 (UTC) From: "Takashi Ohnishi (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10216) distcp -diff relative path exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-10216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Takashi Ohnishi updated HDFS-10216: ----------------------------------- Status: Patch Available (was: Open) > distcp -diff relative path exception > ------------------------------------ > > Key: HDFS-10216 > URL: https://issues.apache.org/jira/browse/HDFS-10216 > Project: Hadoop HDFS > Issue Type: Bug > Components: distcp > Affects Versions: 2.6.0 > Reporter: John Zhuge > Assignee: Takashi Ohnishi > Priority: Critical > Attachments: HDFS-10216.1.patch, HDFS-10216.2.patch, HDFS-10216.3.patch > > > Got this exception when running {{distcp -diff}} with relative paths: > {code} > $ hadoop distcp -update -diff s1 s2 d1 d2 > 16/03/25 09:45:40 INFO tools.DistCp: Input Options: DistCpOptions{atomicCommit=false, syncFolder=true, deleteMissing=false, ignoreFailures=false, maxMaps=20, sslConfigurationFile='null', copyStrategy='uniformsize', sourceFileListing=null, sourcePaths=[d1], targetPath=d2, targetPathExists=true, preserveRawXattrs=false, filtersFile='null'} > 16/03/25 09:45:40 INFO client.RMProxy: Connecting to ResourceManager at jzhuge-balancer-1.vpc.cloudera.com/172.26.21.70:8032 > 16/03/25 09:45:41 ERROR tools.DistCp: Exception encountered > java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: hdfs://jzhuge-balancer-1.vpc.cloudera.com:8020./d1/.snapshot/s2 > at org.apache.hadoop.fs.Path.initialize(Path.java:206) > at org.apache.hadoop.fs.Path.(Path.java:197) > at org.apache.hadoop.tools.SimpleCopyListing.getPathWithSchemeAndAuthority(SimpleCopyListing.java:193) > at org.apache.hadoop.tools.SimpleCopyListing.addToFileListing(SimpleCopyListing.java:202) > at org.apache.hadoop.tools.SimpleCopyListing.doBuildListingWithSnapshotDiff(SimpleCopyListing.java:243) > at org.apache.hadoop.tools.SimpleCopyListing.doBuildListing(SimpleCopyListing.java:172) > at org.apache.hadoop.tools.CopyListing.buildListing(CopyListing.java:86) > at org.apache.hadoop.tools.DistCp.createInputFileListingWithDiff(DistCp.java:388) > at org.apache.hadoop.tools.DistCp.execute(DistCp.java:164) > at org.apache.hadoop.tools.DistCp.run(DistCp.java:123) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > at org.apache.hadoop.tools.DistCp.main(DistCp.java:436) > Caused by: java.net.URISyntaxException: Relative path in absolute URI: hdfs://jzhuge-balancer-1.vpc.cloudera.com:8020./d1/.snapshot/s2 > at java.net.URI.checkPath(URI.java:1804) > at java.net.URI.(URI.java:752) > at org.apache.hadoop.fs.Path.initialize(Path.java:203) > ... 11 more > {code} > But theses commands worked: > * Absolute path: {{hadoop distcp -update -diff s1 s2 /user/systest/d1 /user/systest/d2}} > * No {{-diff}}: {{hadoop distcp -update d1 d2}} > However, everything was fine when I ran {{hadoop distcp -update -diff s1 s2 d1 d2}} again. I am not sure the problem only exists with option {{-diff}}. Trying to reproduce. -- This message was sent by Atlassian JIRA (v6.3.4#6332)