Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AE6B1060E for ; Wed, 24 Apr 2013 18:27:20 +0000 (UTC) Received: (qmail 60834 invoked by uid 500); 24 Apr 2013 18:27:18 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 60765 invoked by uid 500); 24 Apr 2013 18:27:18 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 60536 invoked by uid 99); 24 Apr 2013 18:27:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 18:27:17 +0000 Date: Wed, 24 Apr 2013 18:27:17 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9500) TestUserGroupInformation#testGetServerSideGroups fails on Windows due to failure to find winutils.exe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13640754#comment-13640754 ] Chris Nauroth commented on HADOOP-9500: --------------------------------------- The problem was introduced in HADOOP-9299 with this code: {code} // doesn't matter what it is, but getGroups needs it set... System.setProperty("hadoop.home.dir", "/tmp"); {code} The logic in {{Shell}} for finding the path to winutils.exe first checks the hadoop.home.dir property. It won't find it in /tmp, so the test fails the first time it tries to run a winutils command. This is easy to fix: instead of /tmp, use the HADOOP_HOME environment variable, which is guaranteed to be configured to the correct path in maven-surefire-plugin. I'll provide a patch shortly. > TestUserGroupInformation#testGetServerSideGroups fails on Windows due to failure to find winutils.exe > ----------------------------------------------------------------------------------------------------- > > Key: HADOOP-9500 > URL: https://issues.apache.org/jira/browse/HADOOP-9500 > Project: Hadoop Common > Issue Type: Bug > Components: test > Affects Versions: 3.0.0 > Reporter: Chris Nauroth > Assignee: Chris Nauroth > > The test attempts to run the winutils groups command, but the initialization logic fails to find the path to winutils.exe. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira