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 3B8C2104EC for ; Tue, 5 May 2015 14:12:55 +0000 (UTC) Received: (qmail 1650 invoked by uid 500); 5 May 2015 14:12:54 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 1579 invoked by uid 500); 5 May 2015 14:12:54 -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 1567 invoked by uid 99); 5 May 2015 14:12:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2015 14:12:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for dev@hive.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2015 14:12:27 +0000 Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 24FE924CA0 for ; Tue, 5 May 2015 14:12:26 +0000 (UTC) Received: by oign205 with SMTP id n205so148255712oig.2 for ; Tue, 05 May 2015 07:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GSLdle+On0SLYZiMFgDoFt6s41786zj8yo458bSlgVM=; b=snIGBbnlr8s0hwYe045UkrhaZZzReu2u6miDhJaWIvLfecIWXQCadyjYK+ae8s0aE/ fml8/xxsa3lbubthEIxAGjCpikAcz8pT1fk6TQvTNkWxSAXj6ed5uDPn1gr+afnJycJ5 2kmpTjV6V5rLd3mhKI63lfDUE5VXmzudc+lirHK8ZDewqb2GkQHlh1AQcUHSpF7IwVNK kvRTVbw5ojELsl8rHhoZpEcCo/S2mxPdFsQqEWlqlpo5Fp6zYMMoST/wmFt+r4btlCQb eQVwbCQsMkp3CfW/7pnTCwosyd3dU4P/Q4gtLusG9s/exLsAPE1oEQ33Glq3eBxg/YOq CQXQ== MIME-Version: 1.0 X-Received: by 10.202.49.77 with SMTP id x74mr21887043oix.86.1430835139278; Tue, 05 May 2015 07:12:19 -0700 (PDT) Received: by 10.76.62.47 with HTTP; Tue, 5 May 2015 07:12:19 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 May 2015 16:12:19 +0200 Message-ID: Subject: Fwd: Can't access file in Distributed Cache in Hive 1.1.0 From: =?UTF-8?Q?Zsolt_T=C3=B3th?= To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=001a113cb374357da405155644d4 X-Virus-Checked: Checked by ClamAV on apache.org --001a113cb374357da405155644d4 Content-Type: text/plain; charset=UTF-8 Hi, I've just upgraded to Hive 1.1.0 and it looks like there is a problem with the distributed cache. I use ADD FILE, then an UDF that wants to read the file. The following syntax works in Hive 1.0.0 but Hive can't find the file in 1.1.0 (testfile exists on hdfs, the built-in udf in_file is just an example): add file hdfs:///tmp/testfile; select in_file('a', './testfile') from a; However, it works with the local path: select in_file('a', '/tmp/462e6854-10f3-4a68-a290-615e6e9d60ff_resources/testfile') from a; When I try to list the files in the directory "./" in Hive 1.1.0, it lists the cluster's root directory. It looks like the working directory changed in Hive 1.1.0. Is this intended? If so, how can I access the files in the distributed cache added with ADD FILE? Regards, Zsolt --001a113cb374357da405155644d4--