- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Multiple datanodes on the same machine?
- Labels:
-
Cloudera Manager
-
HDFS
-
Manual Installation
Created on 04-09-2018 04:59 AM - edited 09-16-2022 06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is it possible to have multiple datanodes on the same machine in Cloudera using CM? Obviously this can be done in plain Apache Hadoop.
Created 04-09-2018 10:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure I get your intension to have multiple datanodes on the same machine
if you want to store data nodes in different/multiple directories in the same machine then you can use CM -> HDFS -> Configuration -> datanode.data.dir and specify your directories
Created 04-10-2018 02:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I can add/remove the data directories. Want i want to add 2 new datanode instances on a single host from CM.
Created 04-11-2018 11:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hadoop wasn't designed to run multiple DataNodes on a single host and is prohibited by Cloudera Manager.
The reason for a single DataNode per host is to prevent data loss. Using the default replication factor of 3, every block in a file will be replicated to 3 different hosts. If a host containing a block replica were to go down, the NameNode will mark the block as under-replicated. A new copy of the block will be created on another DataNode bringing the number of replicas back to 3.
If you do not care about data integrity my suggestion is to set the replication factor to 1 or use virtual hosts.
David Wilder, Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Created 04-12-2018 01:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, i agree with your point. my notion of this was to test when we have quickstart VM for testing.
