Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D43419B85 for ; Sat, 2 Apr 2016 11:35:26 +0000 (UTC) Received: (qmail 85777 invoked by uid 500); 2 Apr 2016 11:35:25 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 85717 invoked by uid 500); 2 Apr 2016 11:35:25 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 85700 invoked by uid 99); 2 Apr 2016 11:35:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2016 11:35:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6E47E2C033A for ; Sat, 2 Apr 2016 11:35:25 +0000 (UTC) Date: Sat, 2 Apr 2016 11:35:25 +0000 (UTC) From: "Dimitrios Sarigiannis (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10252) Is DataNode aware of the name of the file that it is going to store? 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/HDFS-10252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dimitrios Sarigiannis updated HDFS-10252: ----------------------------------------- Summary: Is DataNode aware of the name of the file that it is going to store? (was: Is DataNode aware of name of the file that it is going to store?) > Is DataNode aware of the name of the file that it is going to store? > -------------------------------------------------------------------- > > Key: HDFS-10252 > URL: https://issues.apache.org/jira/browse/HDFS-10252 > Project: Hadoop HDFS > Issue Type: Test > Components: datanode, namenode > Reporter: Dimitrios Sarigiannis > Priority: Minor > > I am going through the HDFS Namenode and Datanode code and I am trying to see if the DataNode is aware of the names of the files that are stored in it (and other metadata as well). > Assuming that we have the most simple case: > 1 NameNode > 1 DataNode > 1 single machine running HDFS with replication factor 1. > and considering the way HDFS works a use case could be: > A client requests to write a file from local to HDFS > "hdfs dfs -put file /file" > He first communicates with NameNode and gets where this file should be stored. > Then, after receiving an answer, he requests to the DataNode to store that file. > (At that point I am going to be a little more specific about the code) > The DataNode has a DataXceiverServer class which runs and waits for requests. When a request comes, it starts a DataXceiver thread and try to serve that request. What I would like to know is, if at that specific point the DataNode knows the name of the file that it is going to store. I spent hours of debugging but I could not find it. Is it somewhere there, or only the NameNode knows the name of that file? -- This message was sent by Atlassian JIRA (v6.3.4#6332)