You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by John Lilley <jo...@redpoint.net> on 2013/07/19 01:52:23 UTC
HDFS blockIDs vs paths
In HDFS, who tracks the filesystem path on the datanode of each block? The namenode or the datanode? If datanode, where is that table stored?
John
Re: HDFS blockIDs vs paths
Posted by Harsh J <ha...@cloudera.com>.
DataNodes track it. See and trace the volumeMap,
https://github.com/apache/hadoop-common/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java#L172
On Fri, Jul 19, 2013 at 5:22 AM, John Lilley <jo...@redpoint.net> wrote:
> In HDFS, who tracks the filesystem path on the datanode of each block? The
> namenode or the datanode? If datanode, where is that table stored?
>
> John
>
>
--
Harsh J
Re: HDFS blockIDs vs paths
Posted by Harsh J <ha...@cloudera.com>.
DataNodes track it. See and trace the volumeMap,
https://github.com/apache/hadoop-common/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java#L172
On Fri, Jul 19, 2013 at 5:22 AM, John Lilley <jo...@redpoint.net> wrote:
> In HDFS, who tracks the filesystem path on the datanode of each block? The
> namenode or the datanode? If datanode, where is that table stored?
>
> John
>
>
--
Harsh J
Re: HDFS blockIDs vs paths
Posted by Harsh J <ha...@cloudera.com>.
DataNodes track it. See and trace the volumeMap,
https://github.com/apache/hadoop-common/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java#L172
On Fri, Jul 19, 2013 at 5:22 AM, John Lilley <jo...@redpoint.net> wrote:
> In HDFS, who tracks the filesystem path on the datanode of each block? The
> namenode or the datanode? If datanode, where is that table stored?
>
> John
>
>
--
Harsh J
Re: HDFS blockIDs vs paths
Posted by Harsh J <ha...@cloudera.com>.
DataNodes track it. See and trace the volumeMap,
https://github.com/apache/hadoop-common/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java#L172
On Fri, Jul 19, 2013 at 5:22 AM, John Lilley <jo...@redpoint.net> wrote:
> In HDFS, who tracks the filesystem path on the datanode of each block? The
> namenode or the datanode? If datanode, where is that table stored?
>
> John
>
>
--
Harsh J