Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 32982 invoked from network); 30 Jul 2009 11:17:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 11:17:38 -0000 Received: (qmail 85876 invoked by uid 500); 30 Jul 2009 11:17:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 85829 invoked by uid 500); 30 Jul 2009 11:17:39 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 85819 invoked by uid 99); 30 Jul 2009 11:17:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 11:17:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 11:17:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CCBDD234C044 for ; Thu, 30 Jul 2009 04:17:14 -0700 (PDT) Message-ID: <864921912.1248952634823.JavaMail.jira@brutus> Date: Thu, 30 Jul 2009 04:17:14 -0700 (PDT) From: "Urko Benito (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-506) Incorrect UserName at Solaris because it has no "whoami" command by default In-Reply-To: <794148251.1248716414809.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737071#action_12737071 ] Urko Benito commented on HDFS-506: ---------------------------------- Hi I think the solution is *not to change the source code* but, keep in mind that *this is not the correct way* (but until HADOOP-4487 is solved) i proposed a solution * Update the _prerequisites_ at wiki page saying something like *keep in mind whoami, bash and md5sum must be present and accesible to hadoop process* * Add some _Hadoop Solaris Installation Guide_ to the official doc I'm writing a _Installing Hadoop on Solaris Guide_ at my blog, but at the moment is in Spanish, i'll translated it to English and add to the issue. What do you think about? > Incorrect UserName at Solaris because it has no "whoami" command by default > --------------------------------------------------------------------------- > > Key: HDFS-506 > URL: https://issues.apache.org/jira/browse/HDFS-506 > Project: Hadoop HDFS > Issue Type: Bug > Components: build > Affects Versions: 0.20.1 > Environment: OS: SunOS 5.10 > Reporter: Urko Benito > Attachments: PermissionChecker.java.diff, Shell.java.diff, test-hadoop-security.tar.gz, UnixUserGroupInformation.java.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > Solaris enviroment has no __whoami__ command, so the __getUnixUserName()__ at UnixUserGroupInformation class fails because it's calling to Shell.USER_NAME_COMMAND which is defines as "whoami". > So it launched an Exception and set the default "DrWho" username ignoring all the FileSystem permissions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.