Support Questions

Find answers, ask questions, and share your expertise

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

@Dukool SHarma

Could you please elaborate your question? Where do you want to add more than 1path 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"

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.