Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 EB1F31166A for ; Sun, 12 May 2013 17:43:44 +0000 (UTC) Received: (qmail 6104 invoked by uid 500); 12 May 2013 17:43:39 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 6033 invoked by uid 500); 12 May 2013 17:43:39 -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 6026 invoked by uid 99); 12 May 2013 17:43:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 17:43:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_FONT_SIZE_LARGE,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dwivedishashwat@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 May 2013 17:43:35 +0000 Received: by mail-lb0-f173.google.com with SMTP id t10so1610328lbi.4 for ; Sun, 12 May 2013 10:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=CPfxefUf0qP+41l7DYhGwbn6FQ8UpVLRmzkZgkJN/8M=; b=oXEJyMVAvcySgZvartstVkA7ovVUGZdd3XAkBjZS67LphDZqleUDQzAo5SA4f3JpjP wwoB6gaQ/oEOJinQ+B46Z/ShKS/n9NhtKR/JMLmJNFF07zvqrmk+vyfCBSv9UgJLjQTQ vtHPMhq3TdDDvy2Ed1ovr1XPIpAjU2yGVb2LUOIESXm8K2PxvxI36HVkqg5mdHVAjhqg W5VsAlMMcYtKXmACYDvl9sbzNQf+IDPqaaxdqUtuKYQ/spundKLI2HIZma1LrxGnuEZM NkPTDmNSAE96c2t/lBcr3EU+FloG+T/wv5kdsId2/JuNRLrKlyXfJJ9AsrwdqQorGjSd YyUg== X-Received: by 10.152.3.227 with SMTP id f3mr11656125laf.2.1368380594079; Sun, 12 May 2013 10:43:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.1.103 with HTTP; Sun, 12 May 2013 10:42:33 -0700 (PDT) In-Reply-To: References: From: shashwat shriparv Date: Sun, 12 May 2013 23:12:33 +0530 Message-ID: Subject: Re: Problem while running simple WordCount program(hadoop-1.0.4) on eclipse. To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e013d174a3a4dce04dc88ef82 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d174a3a4dce04dc88ef82 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable the user through which you are running your hadoop, set permission to tmp dir for that user. *Thanks & Regards * =E2=88=9E Shashwat Shriparv On Fri, May 10, 2013 at 5:24 PM, Nitin Pawar wrote= : > What are the permission of your /tmp/ folder? > On May 10, 2013 5:03 PM, "Khaleel Khalid" > wrote: > >> Hi all, >> >> I am facing the following error when I run a simple WordCount >> program using hadoop-1.0.4 on eclipse(Galileo). The map/reduce plugin >> version I use is 1.0.4 as well. It would be really helpful if >> someone gives me a solution for the problem. >> >> ERROR: >> >> 13/05/10 16:53:51 WARN util.NativeCodeLoader: Unable to load >> native-hadoop library for your platform... using builtin-java classes wh= ere >> applicable >> >> 13/05/10 16:53:51 ERROR security.UserGroupInformation: >> *PriviledgedActionException* as:khaleelk *cause:java.io.IOException*: >> Failed to set permissions of path: >> \tmp\hadoop-khaleelk\mapred\staging\khaleelk-1067522586\.staging to 0700 >> >> Exception in thread "main" >> *java.io.IOException*: Failed to set permissions of path: >> \tmp\hadoop-khaleelk\mapred\staging\khaleelk-1067522586\.staging to 0700 >> >> at org.apache.hadoop.fs.FileUtil.checkReturnValue( >> *FileUtil.java:689*) >> >> at org.apache.hadoop.fs.FileUtil.setPermission( >> *FileUtil.java:662*) >> >> at org.apache.hadoop.fs.RawLocalFileSystem.setPermission( >> *RawLocalFileSystem.java:509*) >> >> at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs( >> *RawLocalFileSystem.java:344*) >> >> at org.apache.hadoop.fs.FilterFileSystem.mkdirs( >> *FilterFileSystem.java:189*) >> >> at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir( >> *JobSubmissionFiles.java:116*) >> >> at org.apache.hadoop.mapred.JobClient$2.run( >> *JobClient.java:856*) >> >> at org.apache.hadoop.mapred.JobClient$2.run( >> *JobClient.java:850*) >> >> at java.security.AccessController.doPrivileged( >> *Native Method*) >> >> at javax.security.auth.Subject.doAs(Unknown Source) >> >> at org.apache.hadoop.security.UserGroupInformation.doAs( >> *UserGroupInformation.java:1121*) >> >> at org.apache.hadoop.mapred.JobClient.submitJobInternal( >> *JobClient.java:850*) >> >> at org.apache.hadoop.mapreduce.Job.submit( >> *Job.java:500*) >> >> at org.apache.hadoop.mapreduce.Job.waitForCompletion( >> *Job.java:530*) >> >> at WordCount.main( >> *WordCount.java:65*) >> >> >> >> Thank you in advance. >> >> >> >> >> >> >> > --089e013d174a3a4dce04dc88ef82 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
the user through which you are running your hadoop, set pe= rmission to tmp dir for that user.

<= span style=3D"font-family:comic sans ms,sans-serif">Thanks & Regards = =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 =09 =09 =09 =09

<= font size=3D"6">=E2=88=9E

Shash= wat Shriparv



On Fri, May 10, 2013 at 5:24 PM, Nitin P= awar <nitinpawar432@gmail.com> wrote:

What are the permission of your /tmp/ folder?

On May 10, 2013 5:03 PM, "Khaleel Khalid&qu= ot; <khale= elk@suntecgroup.com> wrote:
Hi all,
=C2=A0
I am facing the following error whe= n I run a simple WordCount program=C2=A0using hadoop-1.0.4 on eclipse(Galil= eo).=C2=A0 The map/reduce plugin version I use is 1.0.4 as well.=C2=A0=C2= =A0It would=C2=A0be really helpful if someone=C2=A0gives me a solution for = the problem.=C2=A0
=C2=A0
ERROR:

13/05/10 16:53:51 WARN util.NativeCodeLoader: Unable to l= oad native-hadoop library for your platform... using builtin-java classes w= here applicable

13/05/10 16:53:51 ERROR security.UserGroupInformation: Priviled= gedActionException as:khaleelk cause:java.io.IOException: Failed to set permissions of path: \= tmp\hadoop-khaleelk\mapred\staging\khaleelk-1067522586\.staging to 0700

Exception in thread "main"

java.io.IOException= : Failed to set = permissions of path: \tmp\hadoop-khaleelk\mapred\staging\khaleelk-106752258= 6\.staging to 0700

at org.apache.hadoop.fs.FileUtil.checkReturnValue(

FileUtil.java= :689)

at org.apache.hadoop.fs.FileUtil.setPermission(

FileUtil.java:66= 2)

at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(=

RawLoc= alFileSystem.java:509)

at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(

RawLocalFileS= ystem.java:344)

at org.apache.hadoop.fs.FilterFileSystem.mkdirs(

FilterFileSyste= m.java:189)

at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStag= ingDir(

JobSubmissionFiles.java:116)

at org.apache.hadoop.mapred.JobClient$2.run(

JobClient.java:856<= /font>)

at org.apache.hadoop.mapred.JobClient$2.run(

JobClient.java:850<= /font>)

at java.security.AccessController.doPrivileged(

Native Method)

at javax.security.auth.Subject.doAs(Unknown Source)

at org.apache.hadoop.security.UserGroupInformation.doAs(<= /p>UserGro= upInformation.java:1121)

at org.apache.hadoop.mapred.JobClient.submitJobInternal(<= /p>JobClie= nt.java:850)

at org.apache.hadoop.mapreduce.Job.submit(

Job.java:500)

at org.apache.hadoop.mapreduce.Job.waitForCompletion(

=
Job.java:5= 30)

at WordCount.main(

WordCount.java:65)

=C2=A0

Thank you in advance.

=C2=A0

=C2=A0

=C2=A0


--089e013d174a3a4dce04dc88ef82--