From yarn-issues-return-155987-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Oct 22 21:28:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1E34A180675 for ; Mon, 22 Oct 2018 21:28:02 +0200 (CEST) Received: (qmail 66088 invoked by uid 500); 22 Oct 2018 19:28:02 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 66035 invoked by uid 99); 22 Oct 2018 19:28:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2018 19:28:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D539EC1D05 for ; Mon, 22 Oct 2018 19:28:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Kf2CCzWjE_9J for ; Mon, 22 Oct 2018 19:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2B65F5F230 for ; Mon, 22 Oct 2018 19:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B26C9E0F4C for ; Mon, 22 Oct 2018 19:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3D2D2252AB for ; Mon, 22 Oct 2018 19:28:00 +0000 (UTC) Date: Mon, 22 Oct 2018 19:28:00 +0000 (UTC) From: "Eric Yang (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-8922) Fix test-container-executor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-8922?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16659= 517#comment-16659517 ]=20 Eric Yang commented on YARN-8922: --------------------------------- Thank you [~rkanter] for the patch. +1 patch 002 works as intended. Commi= tting to trunk shortly. > Fix test-container-executor > --------------------------- > > Key: YARN-8922 > URL: https://issues.apache.org/jira/browse/YARN-8922 > Project: Hadoop YARN > Issue Type: Bug > Components: test > Affects Versions: 3.3.0 > Reporter: Robert Kanter > Assignee: Robert Kanter > Priority: Major > Attachments: YARN-8922.001.patch, YARN-8922.002.patch > > > YARN-8448 attempted to fix the {{test-container-executor}} C test=C2=A0to= be able to run as root. The test claims that it should be possible to run= as root; in fact, there are some tests that only run if you use root. =20 > One of the fixes was to change the permissions of the test's config dir t= o 0777 from 0755. The problem was that the directory was owned by root, bu= t then other users would need to write files/directories under it, which wo= uld fail with 0755. YARN-8448 fixed this by making it 0777. However, this= breaks running cetest because it expects the directory to be 0755, and it'= s run afterwards. > The proper fix for all this is to leave the directory at 0755, but to mak= e sure it's owned by the "nodemanager" user. Confusingly, in {{test-contai= ner-executor}}, that appears to be the {{username}} and not the {{yarn_user= name}} (i.e. {{username}} is the user running the NM while {{yarn_username}= } is just some user running a Yarn app). -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org