Return-Path: Delivered-To: apmail-hadoop-hive-user-archive@minotaur.apache.org Received: (qmail 85486 invoked from network); 10 Aug 2009 16:22:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 16:22:03 -0000 Received: (qmail 6591 invoked by uid 500); 10 Aug 2009 16:22:10 -0000 Delivered-To: apmail-hadoop-hive-user-archive@hadoop.apache.org Received: (qmail 6566 invoked by uid 500); 10 Aug 2009 16:22:10 -0000 Mailing-List: contact hive-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-user@hadoop.apache.org Delivered-To: mailing list hive-user@hadoop.apache.org Received: (qmail 6552 invoked by uid 99); 10 Aug 2009 16:22:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 16:22:10 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rmurthy@facebook.com designates 69.63.179.25 as permitted sender) Received: from [69.63.179.25] (HELO mailout-snc1.facebook.com) (69.63.179.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 16:22:02 +0000 Received: from mail.thefacebook.com (intlb01.snat.snc1.facebook.com [10.128.203.18] (may be forged)) by pp01.snc1.tfbnw.net (8.14.1/8.14.1) with ESMTP id n7AGLaqS002031 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 10 Aug 2009 09:21:37 -0700 Received: from SC-MBXC1.TheFacebook.com ([192.168.18.100]) by sc-hub01.TheFacebook.com ([192.168.18.104]) with mapi; Mon, 10 Aug 2009 09:21:35 -0700 From: Raghu Murthy To: "hive-user@hadoop.apache.org" Date: Mon, 10 Aug 2009 09:21:32 -0700 Subject: Re: ADD FILE using JDBC Thread-Topic: ADD FILE using JDBC Thread-Index: AcoZmMqdsDSc1rMBQcGPFMT/gASm/QAPdSxF Message-ID: In-Reply-To: <794f042d0908100158s2cc7760ftf39eee53dedd300f@mail.gmail.com> Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2009-08-10_10:2009-07-24,2009-08-10,2009-08-10 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0907200000 definitions=main-0908100110 X-Virus-Checked: Checked by ClamAV on apache.org I mean, don't use the 'ADD' statement. Just directly specify the path in your SELECT statement. SELECT TRANSFORM(a,b) USING '/path/to/script' AS c,d FROM table On 8/10/09 1:58 AM, "Saurabh Nanda" wrote: >=20 >> As a work around, can you copy the file locally on the server and use th= e >> complete path (local to the server) in the query? >=20 > The file is available locally to the machine running=A0 "./bin/hive --ser= vice > hiveserver" Do you want me to try using the full file path? However, the = error > message doesn't say "file not found". It says "cannot recognize input 'ad= d'" >=20 > Saurabh.