Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to add more than 1 path for the storage in HDFS?

Highlighted

How to add more than 1 path for the storage in HDFS?

I need to add one more path in HDFS. How can I do that?

2 REPLIES 2

Re: How to add more than 1 path for the storage in HDFS?

@Dukool SHarma

Could you please elaborate your question? Where do you want to add more than 1path in HDFS?

Re: How to add more than 1 path for the storage in HDFS?

Super Collaborator

I think you are asking about adding directories to Datanodes.

dfs.datanode.data.dir in the hdfs-site.xml file is a comma-delimited list of directories for where the DataNode will store blocks for HDFS. Plus, https://community.hortonworks.com/questions/89786/file-uri-required-for-dfsdatanodedatadir.html

Property Default Description
dfs.datanode.data.dir file://${hadoop.tmp.dir}/dfs/data Determines where on the local filesystem an DFS data node should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. Directories that do not exist are ignored

Otherwise, I'm afraid your question doesn't make sense other than running mkdir HDFS command to "add a new directory in HDFS"

Don't have an account?
Coming from Hortonworks? Activate your account here