Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3504018CA1 for ; Mon, 7 Dec 2015 19:22:15 +0000 (UTC) Received: (qmail 66899 invoked by uid 500); 7 Dec 2015 19:22:15 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 66865 invoked by uid 500); 7 Dec 2015 19:22:15 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 66853 invoked by uid 99); 7 Dec 2015 19:22:15 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 19:22:15 +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 727CDC0BC9 for ; Mon, 7 Dec 2015 19:22:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.226 X-Spam-Level: * X-Spam-Status: No, score=1.226 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wfDo2RePYzRC for ; Mon, 7 Dec 2015 19:22:13 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id 7E27120E9B for ; Mon, 7 Dec 2015 19:22:12 +0000 (UTC) Received: (qmail 65350 invoked by uid 99); 7 Dec 2015 19:22:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 19:22:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 470742C1F5C for ; Mon, 7 Dec 2015 19:22:11 +0000 (UTC) Date: Mon, 7 Dec 2015 19:22:11 +0000 (UTC) From: "Balu Vellanki (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-1647) Unable to create feed : FilePermission error under cluster staging directory 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/FALCON-1647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045534#comment-15045534 ] Balu Vellanki commented on FALCON-1647: --------------------------------------- [~pallavi.rao] I agree with you that 777 should not be used as much as possible. I also agree that we should make this a separate Jira and unblock the current issue. [~peeyushb] : If you agree, I will go ahead and commit the current patch after incorporating [~yzheng-hortonworks]'s recommendations. Please let me know. > Unable to create feed : FilePermission error under cluster staging directory > ---------------------------------------------------------------------------- > > Key: FALCON-1647 > URL: https://issues.apache.org/jira/browse/FALCON-1647 > Project: Falcon > Issue Type: Bug > Components: feed > Affects Versions: 0.8 > Reporter: Balu Vellanki > Assignee: Balu Vellanki > Fix For: 0.9 > > Attachments: FALCON-1647.patch > > > Submit a cluster entity as user "user1", schedule a feed entity as "user1". Now submit and schedule a feed entity as "user2" and feed submission can fail with the following error > {code} > Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=user2, access=WRITE, inode="/apps/falcon-user1/staging/falcon/workflows/feed":user1:falcon:drwxr-xr-x > at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkFsPermission(FSPermissionChecker.java:271) > at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:257) > at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:238) > {code} > This is caused because Falcon creates /falcon/workflows/feed and /falcon/workflows/process only when a feed/process entity are scheduled. The owner of these dirs is the user scheduling the entity. The permissions are based on the default umask of the FS. If a new feed/process entity are being scheduled by a different user, things can fail. > Solution is to make /falcon/workflows/feed and /falcon/workflows/process owned by Falcon with permissions 777. -- This message was sent by Atlassian JIRA (v6.3.4#6332)