From yarn-issues-return-154281-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Oct 1 22:28:05 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 B4DB4180660 for ; Mon, 1 Oct 2018 22:28:04 +0200 (CEST) Received: (qmail 78974 invoked by uid 500); 1 Oct 2018 20:28:03 -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 78962 invoked by uid 99); 1 Oct 2018 20:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2018 20:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 436BAC71FC for ; Mon, 1 Oct 2018 20:28:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CtWZldlkkBsU for ; Mon, 1 Oct 2018 20:28:02 +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 8B1535F51F for ; Mon, 1 Oct 2018 20:28:02 +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 8D783E2636 for ; Mon, 1 Oct 2018 20:28:01 +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 7BE2327774 for ; Mon, 1 Oct 2018 20:28:00 +0000 (UTC) Date: Mon, 1 Oct 2018 20:28:00 +0000 (UTC) From: "Simon Prewo (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-8785) Error Message "Invalid docker rw mount" not helpful 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-8785?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Simon Prewo updated YARN-8785: ------------------------------ Attachment: (was: YARN-8785-branch-3.1.001.patch) > Error Message "Invalid docker rw mount" not helpful > --------------------------------------------------- > > Key: YARN-8785 > URL: https://issues.apache.org/jira/browse/YARN-8785 > Project: Hadoop YARN > Issue Type: Sub-task > Affects Versions: 2.9.1, 3.1.1 > Reporter: Simon Prewo > Assignee: Simon Prewo > Priority: Major > Labels: Docker > Original Estimate: 2h > Remaining Estimate: 2h > > A user recieves the error message _Invalid docker rw mount_ when a contai= ner tries to mount a directory which is not configured in property =C2=A0*d= ocker.allowed.rw-mounts*.=C2=A0 > {code:java} > Invalid docker rw mount '/usr/local/hadoop/logs/userlogs/application_1536= 476159258_0004/container_1536476159258_0004_02_000001:/usr/local/hadoop/log= s/userlogs/application_1536476159258_0004/container_1536476159258_0004_02_0= 00001', realpath=3D/usr/local/hadoop/logs/userlogs/application_153647615925= 8_0004/container_1536476159258_0004_02_000001{code} > The error message makes the user think "It is not possible due to a docke= r issue". My suggestion would be to put there a message like *Configuration= of the container executor does not allow mounting directory.*. > hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nod= emanager/src/main/native/container-executor/impl/utils/docker-util.c > CURRENT: > {code:java} > permitted_rw =3D check_mount_permitted((const char **) permitted_rw_m= ounts, mount_src); > permitted_ro =3D check_mount_permitted((const char **) permitted_ro_m= ounts, mount_src); > if (permitted_ro =3D=3D -1 || permitted_rw =3D=3D -1) { > fprintf(ERRORFILE, "Invalid docker mount '%s', realpath=3D%s\n", va= lues[i], mount_src); > ... > {code} > NEW: > {code:java} > permitted_rw =3D check_mount_permitted((const char **) permitted_rw_m= ounts, mount_src); > permitted_ro =3D check_mount_permitted((const char **) permitted_ro_m= ounts, mount_src); > if (permitted_ro =3D=3D -1 || permitted_rw =3D=3D -1) { > fprintf(ERRORFILE, "Configuration of the container executor does no= t allow mounting directory '%s', realpath=3D%s\n", values[i], mount_src); > ... > {code} -- 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