Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F186210DBA for ; Mon, 7 Oct 2013 19:30:50 +0000 (UTC) Received: (qmail 70877 invoked by uid 500); 7 Oct 2013 19:30:48 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 70782 invoked by uid 500); 7 Oct 2013 19:30:48 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 70774 invoked by uid 99); 7 Oct 2013 19:30:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Oct 2013 19:30:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vivek.thakre@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Oct 2013 19:30:42 +0000 Received: by mail-wi0-f170.google.com with SMTP id cb5so5856998wib.3 for ; Mon, 07 Oct 2013 12:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=uD5n8JEq3DhnVl9/Jb0+/7utpyMWj93S/XnpMdYkUb8=; b=HE3YGitmwV7eLZKMJKgoxki//F6VllKxKSwojC1oSjIyOcHaVjXcR9tl1TjRH40oMq H6jCH/9tdRK7kdT9ZGUhpRoLlWZCMW61vhrdr7OQnEF3wWRLg12GcQHdEKSsuMCtF3vc 9S4pvBu/btsmprDVA3oShjTm/ninuCaCALPg5SPpHuJwhc7199sMWWezbDckLA/tHNLe 8qJftGI/s5BizhIb1rOVMXeplOOUeBxR1qO8nLuPjsZoKJ6LT5jpP2fv8HmJeRLGE0cR rDc2dc+sAXGjzAhAd6E9q78h4iEDrjK2u6DSxJYFR9dQVFB5EmkJ3MfCQhzfjd1jwy1O +Mwg== MIME-Version: 1.0 X-Received: by 10.180.219.8 with SMTP id pk8mr19980408wic.58.1381174221599; Mon, 07 Oct 2013 12:30:21 -0700 (PDT) Received: by 10.227.177.8 with HTTP; Mon, 7 Oct 2013 12:30:21 -0700 (PDT) Date: Mon, 7 Oct 2013 12:30:21 -0700 Message-ID: Subject: Setting evn variables through Hive From: vivek thakre To: user@hive.apache.org Content-Type: multipart/alternative; boundary=001a1135e27ed9fb0e04e82bae67 X-Virus-Checked: Checked by ClamAV on apache.org --001a1135e27ed9fb0e04e82bae67 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am using some legacy binaries as streaming in Hive. These binaries are dependent on libraries which are installed on all the nodes of the cluster under /user/project_name/lib The env variable I want to set is LD_LIBRARY_PATH. Something like LD_LIBRARY_PATH=/user/project_name/lib I tried setting mapred.child.env property in hive script. set mapred.child.env="LD_LIBRARY_PATH=/user/project_name/lib"; but it errors out without giving any information. If I remove this, and ship all the required libraries using "add file ..." the job runs successfully How do I set this env variable via hive so that all the tasks would pick it up? I also want to set LC_ALL and LANG. I am using cdh4 installation of Hive Thanks in advance. Vivek --001a1135e27ed9fb0e04e82bae67 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I am using some legacy binaries = as streaming in Hive.
These binaries are dependent on libraries w= hich are installed on all the nodes of the cluster under /user/project_name= /lib

The env variable I want to set is LD_LIBRARY_PATH.
Something like LD_LIBRARY_PATH=3D/user/project_name/lib
I tried setting mapred.child.env property in hive script.=A0

set mapred.child.env=3D"LD_LIBRARY_PATH=3D/user/pr= oject_name/lib";

but it errors out without gi= ving any information.

If I remove this, and ship a= ll the required libraries using "add file ..." the job runs succe= ssfully

How do I set this env variable via hive so that all the= tasks would pick it up?

I also want to set LC_ALL= and LANG.

I am using cdh4 installation of Hive

Thanks in advance.

Vivek
=
--001a1135e27ed9fb0e04e82bae67--