Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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?


@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. in the hdfs-site.xml file is a comma-delimited list of directories for where the DataNode will store blocks for HDFS. Plus,

Property Default Description 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.