Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8F6B4200B6A for ; Mon, 8 Aug 2016 07:51:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8E2EF160A87; Mon, 8 Aug 2016 05:51:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D6E49160AB1 for ; Mon, 8 Aug 2016 07:51:21 +0200 (CEST) Received: (qmail 51761 invoked by uid 500); 8 Aug 2016 05:51:21 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 51692 invoked by uid 99); 8 Aug 2016 05:51:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 05:51:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A99452C0D63 for ; Mon, 8 Aug 2016 05:51:20 +0000 (UTC) Date: Mon, 8 Aug 2016 05:51:20 +0000 (UTC) From: "Senthilkumar (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10721) HDFS NFS Gateway - Exporting multiple Directories MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 Aug 2016 05:51:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15411343#comment-15411343 ] Senthilkumar commented on HDFS-10721: ------------------------------------- Thanks [~jzhuge].. Do you have any other suggestions/comments ?? If not Pls assign this JIRA to me to start implementation. > HDFS NFS Gateway - Exporting multiple Directories > -------------------------------------------------- > > Key: HDFS-10721 > URL: https://issues.apache.org/jira/browse/HDFS-10721 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs > Reporter: Senthilkumar > Priority: Minor > > Current HDFS NFS gateway Supports exporting only one Directory.. > Example : > > nfs.export.point > /user > > This property helps us to export particular directory .. > Code Block : > public RpcProgramMountd(NfsConfiguration config, > DatagramSocket registrationSocket, boolean allowInsecurePorts) > throws IOException { > // Note that RPC cache is not enabled > super("mountd", "localhost", config.getInt( > NfsConfigKeys.DFS_NFS_MOUNTD_PORT_KEY, > NfsConfigKeys.DFS_NFS_MOUNTD_PORT_DEFAULT), PROGRAM, VERSION_1, > VERSION_3, registrationSocket, allowInsecurePorts); > exports = new ArrayList(); > exports.add(config.get(NfsConfigKeys.DFS_NFS_EXPORT_POINT_KEY, > NfsConfigKeys.DFS_NFS_EXPORT_POINT_DEFAULT)); > this.hostsMatcher = NfsExports.getInstance(config); > this.mounts = Collections.synchronizedList(new ArrayList()); > UserGroupInformation.setConfiguration(config); > SecurityUtil.login(config, NfsConfigKeys.DFS_NFS_KEYTAB_FILE_KEY, > NfsConfigKeys.DFS_NFS_KERBEROS_PRINCIPAL_KEY); > this.dfsClient = new DFSClient(NameNode.getAddress(config), config); > } > Export List: > exports.add(config.get(NfsConfigKeys.DFS_NFS_EXPORT_POINT_KEY, > NfsConfigKeys.DFS_NFS_EXPORT_POINT_DEFAULT)); > Current Code is supporting only one directory to be exposed ... Based on our example /user can be exported .. > Most of the production environment expects more number of directories should be exported and the same can be mounted for different clients.. > Example: > > nfs.export.point > /user,/data/web_crawler,/app-logs > > Here i have three directories to be exposed .. > 1) /user > 2) /data/web_crawler > 3) /app-logs > This would help us to mount directories for particular client ( Say client A wants to write data in /app-logs - Hadoop Admin can mount and handover to clients ). > Please advise here.. Sorry if this feature is already implemented.. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org