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 AD039200C1A for ; Mon, 13 Feb 2017 18:31:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ABA0C160B60; Mon, 13 Feb 2017 17:31:58 +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 C8C6F160B4A for ; Mon, 13 Feb 2017 18:31:57 +0100 (CET) Received: (qmail 4998 invoked by uid 500); 13 Feb 2017 17:31:56 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@spark.apache.org Received: (qmail 4985 invoked by uid 99); 13 Feb 2017 17:31:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2017 17:31:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 84ABF18613A for ; Mon, 13 Feb 2017 17:31:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=netflix.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FxaUwp8_J0BA for ; Mon, 13 Feb 2017 17:31:53 +0000 (UTC) Received: from mail-qt0-f180.google.com (mail-qt0-f180.google.com [209.85.216.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 782795F252 for ; Mon, 13 Feb 2017 17:31:52 +0000 (UTC) Received: by mail-qt0-f180.google.com with SMTP id x49so89466526qtc.2 for ; Mon, 13 Feb 2017 09:31:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tr5ySRMg+pNLGnSQl/StrgBjQIITzKtmcojzf1JA5FM=; b=qw9FRFj4J3EY6V4BircA3Nwo6FNZa4XgKTxmXH/O42CbGj2H/G1GIF3Xvz9Z7g9LnM PFsFmdLxIdrnMYFU6a1AIL+gQHrxEENW0XnDKoVHJtdWcPrtYXRHIoylIxJf7PEO8Fn/ mKiSZgyPW8GTRn4qwwOX/D6sGmvQylCdC4XzqPly0pAEmeCswca5tCFxt7Wt5sWw3ucl BzZhITEuHFgQMYD8YPomKu0D2fgfRHYRcwJgTGpyt+yMfrgQuI0ZMAYHBFM7msIq4Z9S ZROSuZPDwpCjNKM1/VS11urXHQTiSBEtpw3ku/0CsNmMJmCGRszrzB4d6Zh7nfGY3s78 3FKw== X-Gm-Message-State: AMke39lziGQiyn3MPlFge17rliFTJTzj/cTRRatGm9gbg6XLc+k6WNAqGSymkLo2VD8lvcnI0HIEnOMQCp7DAlm3 X-Received: by 10.237.62.68 with SMTP id m4mr21423537qtf.171.1487007111400; Mon, 13 Feb 2017 09:31:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.85.70 with HTTP; Mon, 13 Feb 2017 09:31:20 -0800 (PST) In-Reply-To: References: From: Ryan Blue Date: Mon, 13 Feb 2017 09:31:20 -0800 Message-ID: Subject: Re: Add hive-site.xml at runtime To: Shivam Sharma <28shivamsharma@gmail.com> Cc: Spark Dev List Content-Type: multipart/alternative; boundary=001a11428f88a7c1e505486cd2f6 archived-at: Mon, 13 Feb 2017 17:31:58 -0000 --001a11428f88a7c1e505486cd2f6 Content-Type: text/plain; charset=UTF-8 Shivam, We add hive-site.xml at runtime. We use --driver-class-path to add it to the driver and --jars to add it for the executors. rb On Sun, Feb 12, 2017 at 9:10 AM, Shivam Sharma <28shivamsharma@gmail.com> wrote: > Hi, > > I have multiple hive configurations(hive-site.xml) and because of that > only I am not able to add any hive configuration in spark *conf* directory. > I want to add this configuration file at start of any *spark-submit* or > *spark-shell*. This conf file is huge so *--conf* is not a option for me. > > Note :- I have tried user@spark.apache.org and my mail was bouncing each > time so Sean Owen suggested to mail dev.(https://issues.apache. > org/jira/browse/SPARK-19546). Please give solution to above ticket also > if possible. > > Thanks > > -- > Shivam Sharma > -- Ryan Blue Software Engineer Netflix --001a11428f88a7c1e505486cd2f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Shivam,

We add hive-site.xml at runtime= . We use --driver-class-path to add it to the driver and --jars to add it f= or the executors.

rb

On Sun, Feb 12, 2017 at 9:10 AM, Sh= ivam Sharma <28shivamsharma@gmail.com> wrote:
Hi,
<= div class=3D"gmail_default" style=3D"color:rgb(0,0,0)">
I have multiple hive configurat= ions(hive-site.xml) and because of that only I am not able to add any hive = configuration in spark=C2=A0conf=C2=A0directory. I want to add this configur= ation file at start of any=C2=A0spark-= submit=C2=A0or=C2=A0spark-shell. T= his conf file is huge so=C2=A0--conf=C2=A0is not a option for me.

Note :- I = have tried user@= spark.apache.org and my mail was bouncing each time so Sean Owen sugges= ted to mail dev.(https://issues.apache.org/jira/browse/SPARK-19546). Please give solution to above = ticket also if possible.
=

Thanks
<= span class=3D"HOEnZb">

--
Shivam Sharma



--
Ryan Blue
Software Engineer
Netflix
--001a11428f88a7c1e505486cd2f6--