Support Questions
Find answers, ask questions, and share your expertise

What stores clusterID, namespaceID, and blockpoolID?

Solved Go to solution
Highlighted

What stores clusterID, namespaceID, and blockpoolID?

Contributor

What stores clusterID, namespaceID, and blockpoolID?

As far as I know...

${dfs.namenode.name.dir}/current/VERSION stores clusterID, namespaceID, and blockpoolID.

${dfs.journalnode.edits.dir}/${nameservice}/current/VERSION stores clusterID and namespaceID.

${dfs.datanode.data.dir}/current/VERSION stores clusterID.

Directory name under ${dfs.datanode.data.dir}/current includes blockpoolID.

${dfs.datanode.data.dir}/current/${blockpoolID}/current/VERSION stores namespaceID and blockpoolID.

Is there any other file or file name/directory name storing those IDs?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: What stores clusterID, namespaceID, and blockpoolID?

@Takefumi Oide

The file/directory you mentioned are correct, apart from that i don't think there is any other location/file which has this information. Ref: https://hortonworks.com/blog/hdfs-metadata-directories-explained/

View solution in original post

3 REPLIES 3
Highlighted

Re: What stores clusterID, namespaceID, and blockpoolID?

@Takefumi Oide

The file/directory you mentioned are correct, apart from that i don't think there is any other location/file which has this information. Ref: https://hortonworks.com/blog/hdfs-metadata-directories-explained/

View solution in original post

Highlighted

Re: What stores clusterID, namespaceID, and blockpoolID?

Contributor

Thanks, @Sandeep Nemuri

That reference link is also helpful!

Highlighted

Re: What stores clusterID, namespaceID, and blockpoolID?

Explorer

Hi,

I have a question regarding Cluster version.

There are separate nodes for primary and secondary machines, so the cluster version will be same or unique in this scenario?

Don't have an account?