Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6DB2100B8 for ; Fri, 16 Jan 2015 22:13:34 +0000 (UTC) Received: (qmail 67010 invoked by uid 500); 16 Jan 2015 22:13:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 66917 invoked by uid 500); 16 Jan 2015 22:13:35 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 66765 invoked by uid 500); 16 Jan 2015 22:13:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 66744 invoked by uid 99); 16 Jan 2015 22:13:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 22:13:35 +0000 Date: Fri, 16 Jan 2015 22:13:35 +0000 (UTC) From: "Mithun Radhakrishnan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9386) FileNotFoundException when using in_file() 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/HIVE-9386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mithun Radhakrishnan updated HIVE-9386: --------------------------------------- Attachment: HIVE-9386.2.patch Hey, [~ashutoshc]. Thanks for the review. Good idea. Is the following acceptable? (On a tangential note, I've removed the superfluous boxing around the return-value in {{evaluate()}}). > FileNotFoundException when using in_file() > ------------------------------------------ > > Key: HIVE-9386 > URL: https://issues.apache.org/jira/browse/HIVE-9386 > Project: Hive > Issue Type: Bug > Components: UDF > Reporter: Mithun Radhakrishnan > Assignee: Mithun Radhakrishnan > Attachments: HIVE-9386.1.patch, HIVE-9386.2.patch > > > When a full file-path is specified in {{in_file()}}, and the query runs as a local-job (i.e. without MR/Tez), one sees the following FNFE: > {quote} > java.io.IOException: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.FileNotFoundException: int_list.txt (No such file or directory) > at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:152) > at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1651) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:227) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:305) > at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:702) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > ... > {quote} > It looks like {{GenericUDFInFile}} trims the file-path to just the file-name, perhaps under the assumption that the file would be in DistributedCache. In case the job runs locally, the file ought to be read using the full path. -- This message was sent by Atlassian JIRA (v6.3.4#6332)