Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CE811009E for ; Fri, 27 Sep 2013 21:14:22 +0000 (UTC) Received: (qmail 43323 invoked by uid 500); 27 Sep 2013 21:14:14 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 43154 invoked by uid 500); 27 Sep 2013 21:14:13 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 43147 invoked by uid 99); 27 Sep 2013 21:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 21:14:13 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of manish.lifepart2@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 21:14:08 +0000 Received: by mail-la0-f45.google.com with SMTP id eh20so2648776lab.32 for ; Fri, 27 Sep 2013 14:13:47 -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=k4boSF+ivECi8SSx3dQyZ49OvMHj0cqhkWxQheQ4HI8=; b=ArLsNrG9UBB94/kB4Zwdjri+/JYQxQ1c9+gXnzdXNs5zg1gw/SALg5wvwzJQkg3s72 uDY58rCuqLo8AqKbmoxfIqAC0jp9cMwBnFnynZEwEFylJlFYkZDX8rs1PBBztrF7mkTj Td2ZwZ6K7GtN4NBa3CH81LYhzIg33Oz121cqPQwu9QnBw//eNrwgYvsHwozuJJ3r+G8u Cg3hbEltORYNFmezwxRvDtUhJgRFDRnuZdDsYGOFbbbH5HMOHWX/6nUKPkmmUl0HsNx/ PrrSCKAJ+N33Xp+O0lrMLyiMIL4PTkbKJZ/vzW3KJ7OiOWRzzGswjjT0YG336xpRqNI3 bGSQ== MIME-Version: 1.0 X-Received: by 10.112.72.229 with SMTP id g5mr10340394lbv.10.1380316426666; Fri, 27 Sep 2013 14:13:46 -0700 (PDT) Received: by 10.112.181.37 with HTTP; Fri, 27 Sep 2013 14:13:46 -0700 (PDT) Date: Fri, 27 Sep 2013 14:13:46 -0700 Message-ID: Subject: Calling the JobTracker from Reducer throws InvalidCredentials GSSException From: Manish Verma To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c238e84a07f404e763f67d X-Virus-Checked: Checked by ClamAV on apache.org --001a11c238e84a07f404e763f67d Content-Type: text/plain; charset=ISO-8859-1 I am trying to get the job tracker counters in my reducer. It works on single node demo hadoop but fails on a real cluster where kerberos is used for authentication. ******************************************** RunningJob parentJob = client.getJob(JobID.forName( context.getConfiguration().get("mapred.job.id") )); Counters counters = parentJob.getCounters(); ******************************************** The call to getCounter() API throws GSSException (No valid credentials provided - Failed to find any kerberos tgt). I launched this job using hadoop jar command. Any help would be much appreciated. Thanks Manish --001a11c238e84a07f404e763f67d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am trying to get the job tracker counters in my red= ucer. It works on single node demo hadoop but fails on a real cluster where= kerberos is used for authentication.

******************************= **************
RunningJob parentJob =3D
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0= =A0=A0 client.getJob(JobID.forName(=A0=A0=A0=A0=A0 context.getConfiguration= ().get("mapred.job.id") ));<= br>=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0
Counters counters =3D parent= Job.getCounters();
********************************************

The call to = getCounter() API throws GSSException (No valid credentials provided - Faile= d to find any kerberos tgt).

I launched this job using ha= doop jar command.

Any help would be much appreciated.

Thanks
Manish<= br>

--001a11c238e84a07f404e763f67d--