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 0ECF1200CBC for ; Tue, 20 Jun 2017 22:22:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0CB6D160BCC; Tue, 20 Jun 2017 20:22:05 +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 522E7160BE1 for ; Tue, 20 Jun 2017 22:22:04 +0200 (CEST) Received: (qmail 71323 invoked by uid 500); 20 Jun 2017 20:22:03 -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 71299 invoked by uid 99); 20 Jun 2017 20:22: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; Tue, 20 Jun 2017 20:22: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 E6EC9C25DD for ; Tue, 20 Jun 2017 20:22:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 JBUrUfEjG9LZ for ; Tue, 20 Jun 2017 20:22: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 8EEB15FDE5 for ; Tue, 20 Jun 2017 20:22: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 EED45E0DAA for ; Tue, 20 Jun 2017 20:22: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 3CF91240B5 for ; Tue, 20 Jun 2017 20:22:00 +0000 (UTC) Date: Tue, 20 Jun 2017 20:22:00 +0000 (UTC) From: "Anu Engineer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-11991) Ozone: Ozone shell: the root is assumed to hdfs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Jun 2017 20:22:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-11991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056397#comment-16056397 ] Anu Engineer edited comment on HDFS-11991 at 6/20/17 8:21 PM: -------------------------------------------------------------- [~cheersyang] Let us talk when you are back from vacation. There is a class of problems where reading information from the server leads to better decision on the client side. # Automatic Datanode Discovery - Problem: If we have a large cluster with many datanodes, the clients should be able to discover the various end-points that it can talk to, instead of talking to the same datanode all the time. This can be based on load or the block location. - Possible solutions : Rely on DNS to send this list of Datanodes, Virtual IP or the simplest one -- have KSM/SCM support an list of Datanodes and also support GetBlockLocation API over rest. # Discovery of Configs - Problem : There are times when a client can work more efficiently if it has access to the ozone-site.xml or the hadoop configs. - Solution : Support an API that returns configs -- There is an issue of security that we have solve though( avoiding man in the middle attacks) # Discovery of the Root user. - Problem : It is useful to know the name of the root user and group - Solution : Have an API return that from KSM/SCM. We might decide to build a discover API to get all these kinds of information from KSM/SCM. It will make it easy for the client to make more server friendly decision if we do that. In this specific case the discover API will start with the root user name. was (Author: anu): [~cheersyang] Let us talk when you are back from vacation. There is a class of problems where reading information from the server leads to better decision on the client side. # Automatic Datanode Discovery - Problem: If we have a large cluster with many datanodes, the clients should be able to discover the various end-points that it can talk to, instead of talking to the same datanode all the time. This can be based on load or the block location. - Possible solutions : Rely on DNS to send this list of Datanodes, Virtual IP or the simplest one -- have KSM/SCM support an list of Datanodes and also support GetBlockLocation API over rest. # Discovery of Configs - Problem : There are times when a client can work more efficiently if it has access to the ozone-site.xml or the hadoop configs. - Solution : Support an API that returns configs -- There is an issue of security that we have solve though( avoiding man in the middle attacks) # Discovery of the Root user. - Problem : It is useful to know the name of the root user and group - Solution : Have an API return that from KSM/SCM. We might decide to build a discover API to get all these kinds of information from KSM/SCM. It will make it easy for the client to make more server friendly decision if we do that. In this specific case the discover API will start with the root user name. > Ozone: Ozone shell: the root is assumed to hdfs > ----------------------------------------------- > > Key: HDFS-11991 > URL: https://issues.apache.org/jira/browse/HDFS-11991 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ozone > Reporter: Anu Engineer > Assignee: Weiwei Yang > Fix For: HDFS-7240 > > > *hdfs oz* command, or ozone shell has a command like option to run some commands as root easily by specifying _--root_ as a command line option. But after HDFS-11655 that assumption is no longer true. We need to detect the user that started the scm/ksm service and _root_ should be mapped to that user. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org