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 95AC4200BC5 for ; Tue, 8 Nov 2016 03:43:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9428F160AF9; Tue, 8 Nov 2016 02:43:00 +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 DA581160AEC for ; Tue, 8 Nov 2016 03:42:59 +0100 (CET) Received: (qmail 52897 invoked by uid 500); 8 Nov 2016 02:42:57 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 52886 invoked by uid 99); 8 Nov 2016 02:42:57 -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; Tue, 08 Nov 2016 02:42:57 +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 DD660189B43 for ; Tue, 8 Nov 2016 02:42:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 NM4xsdzJYLOT for ; Tue, 8 Nov 2016 02:42:54 +0000 (UTC) Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CDABA5F23B for ; Tue, 8 Nov 2016 02:42:53 +0000 (UTC) Received: by mail-ua0-f180.google.com with SMTP id 51so136207864uai.1 for ; Mon, 07 Nov 2016 18:42:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Ibilcyke6VlEXfg2O1sB7eBAXn9DltDYdcTdKAeT3sQ=; b=ItRBY2HFNJy/9YvyI75XxBfwoE4wWuXy9oy0PxoWQL2ftO6cx1D1Jk1d63DAUxUrqL 8dRH0TiDiPF+gKLSy3AlulCBo+fV1sNNn5Isp9gXxWpyNDtq1ibAyZ1MLnRyhg5IaOgS ZMxBY44vkMO/9OHg57Lnd2TC8WNaGs+ybJSxI3z19mjZBcXhtEhExg7BACco47SWijEf nJ/XXOXbaU4iI4FxefIjvCKONmMeZ1skxA2w9OEYvodCdPUJy7cpcvUqpYnLxSDY+tXo pS+QRnGEbqsakiCqgJUS7bozjLkGsCgfLYmcsqi89TKs/b/NdroZnGAmTYV6oPVCFZTa qbYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Ibilcyke6VlEXfg2O1sB7eBAXn9DltDYdcTdKAeT3sQ=; b=RyO7f3cMwEzqEE3muGlg1oqp+sZ8xBCwgJ7IzKxi9/30c8o6EHF/kODsgZV0NCwv6v lotS9YI+nr2EhRIwivVG0jl1rsithA3S+mlyDy23RMFxn7ZuHssLdxl6ls+vch0i1t69 f6feNbZLmmYFxzu7VU2DWcdIUu6HpPuIly9fmOV8iWrbEYp9cMS8GU0I3M1B0wgRbQxy AmSxz80nvbDzr571EvdMRE5B5DR+bCJOp1gwbWeZvZSefpmINFENUNH6tP/hf9KY4tDr gvSz18oBPIqtBp0mkUf6zf7bcdu1ZtAkW5Hd6ZObRAjDGcz03hA3IsFW5u+m1aeYvP+O mzqg== X-Gm-Message-State: ABUngvfH5+VJFqQBWlweNogrvn1NLoZv/DqbJOLup80W9HaiUYchLHZQPrpafdTrOVQlVygJBmOwafDnetCH9g== X-Received: by 10.176.2.21 with SMTP id 21mr6855755uas.11.1478572966850; Mon, 07 Nov 2016 18:42:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.39.71 with HTTP; Mon, 7 Nov 2016 18:42:46 -0800 (PST) In-Reply-To: References: From: Ajay Chander Date: Mon, 7 Nov 2016 21:42:46 -0500 Message-ID: Subject: Re: Access_Remote_Kerberized_Cluster_Through_Spark To: user spark mailing list Content-Type: multipart/alternative; boundary=001a113ec61e76b4110540c118ed archived-at: Tue, 08 Nov 2016 02:43:00 -0000 --001a113ec61e76b4110540c118ed Content-Type: text/plain; charset=UTF-8 Did anyone use https://www.codatlas.com/github.com/apache/spark/HEAD/core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala to interact with secured Hadoop from Spark ? Thanks, Ajay On Mon, Nov 7, 2016 at 4:37 PM, Ajay Chander wrote: > > Hi Everyone, > > I am trying to develop a simple codebase on my machine to read data from > secured Hadoop cluster. We have a development cluster which is secured > through Kerberos and I want to run a Spark job from my IntelliJ to read > some sample data from the cluster. Has anyone done this before ? Can you > point me to some sample examples? > > I understand that, if we want to talk to secured cluster, we need to have > keytab and principle. I tried using it through UserGroupInformation.loginUserFromKeytab > and SparkHadoopUtil.get.loginUserFromKeytab but so far no luck. > > I have been trying to do this from quite a while ago. Please let me know > if you need more info. Thanks > > Regards, > Ajay > --001a113ec61e76b4110540c118ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Did anyone use https://www.codatlas.com/github.com/apache/spark/HEAD/core/sr= c/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala to interact = with secured Hadoop from Spark ?

Thanks,
Ajay<= /div>

On Mon= , Nov 7, 2016 at 4:37 PM, Ajay Chander <itschevva@gmail.com> wrote:

Hi Everyone,

I am trying to develop a simple= codebase on my machine to read data from secured Hadoop cluster. We have a= development cluster which is secured through Kerberos and I want to run a = Spark job from my IntelliJ to read some sample data from the cluster. Has a= nyone done this before ? Can you point me to some sample examples?=C2=A0

I understand that, if we want to talk to secured clu= ster, we need to have keytab and principle. I tried using it through UserGroupInformation.loginUs= erFromKeytab and Spa= rkHadoopUtil.get.loginUserFromKeytab but so far no luck.=C2=A0<= /div>

I have been trying to do this from quite a while a= go. Please let me know if you need more info. Thanks

Regards,
Ajay

--001a113ec61e76b4110540c118ed--