Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2B290200BEC for ; Thu, 29 Dec 2016 11:04:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 29CC5160B2D; Thu, 29 Dec 2016 10:04:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 769F1160B15 for ; Thu, 29 Dec 2016 11:03:59 +0100 (CET) Received: (qmail 31749 invoked by uid 500); 29 Dec 2016 10:03:58 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 31737 invoked by uid 500); 29 Dec 2016 10:03:58 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 31731 invoked by uid 99); 29 Dec 2016 10:03:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2016 10:03:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5F3C62C2A66 for ; Thu, 29 Dec 2016 10:03:58 +0000 (UTC) Date: Thu, 29 Dec 2016 10:03:58 +0000 (UTC) From: "Asma Dhaouadi (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PIG-3046) An empty file name in -Dpig.additional.jars throws an error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 29 Dec 2016 10:04:00 -0000 [ https://issues.apache.org/jira/browse/PIG-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785005#comment-15785005 ] Asma Dhaouadi commented on PIG-3046: ------------------------------------ Hi, I have the same problem. And i hope find your help. I'm blocked here. I use the Talend Open Studion for Big Data 6.3.0 with the Cloudera CDH 5.8. What i must do in my case? Thank you > An empty file name in -Dpig.additional.jars throws an error > ----------------------------------------------------------- > > Key: PIG-3046 > URL: https://issues.apache.org/jira/browse/PIG-3046 > Project: Pig > Issue Type: Bug > Affects Versions: 0.10.0, 0.11 > Reporter: Cheolsoo Park > Assignee: Prashant Kommireddi > Labels: newbie > Fix For: 0.12.0 > > Attachments: PIG-3046.patch, PIG-3046_1.patch, PIG-3046_2.patch, PIG-3046_3.patch > > > This issue was raised on the user mailing list. To reproduce it, please run the following command in MR mode: > {code} > pig -Dpig.additional.jars=:: > {code} > As can be seen, I put {{::}} in the middle of {{-Dpig.additional.jars}}, and this causes the following error: > {code} > Caused by: java.lang.IllegalArgumentException: Can not create a Path from > an empty string at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82) > at org.apache.hadoop.fs.Path.(Path.java:90) > at org.apache.hadoop.fs.Path.(Path.java:45) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.shipToHDFS(JobControlCompiler.java:1455) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.putJarOnClassPathThroughDistributedCache(JobControlCompiler.java:1432) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:508) > {code} > Although it's not too hard to see what's wrong, it's not always easy to track down where an empty file name is from. In particular if various environment variables are set in another start-up script, it's time-consuming to identify the root cause. > In fact, Pig should just skip an empty file name instead attempts to convert it to a path and throws an exception like this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)