Emulating Hadoop Cluster On Ubuntu-Collection of common programming errors

This may be a silly question. I confess I am totally new to hadoop, so please bear with me.

But,

Is it possible to emulate master nodes for NameNode & JobTracker and multiple slave nodes for DataNode & TaskTracker on a single ubuntu installation without having to have multiple laptops/computers?

Is there anyway I can emulate multiple nodes for a fully distributed hadoop operation on a single ubuntu installation?

Again I apologize if there are logical flaws &| factual inaccuracies in my question. As I said I am totally new to Hadoop.

Thank you…

  1. yes it is possible using virtual machine.

    if your machine is not capable it may be crash your system if you are working with multiple virtual machine.

    for hadoop cluster setup you can create three virtual machine. because hadoop default minimum file replication value is three. so the file replica is stored at three different VM.