Could Only Be Replicated To ...

A common message people see is "could only be replicated to 0 nodes, instead of ...".

What does this mean? It means that the Block Replication mechanism of HDFS could not make any copies of a file (more specifically a block within a file) it wanted to create.

This can be caused by various conditions, including:

This is not a problem in Hadoop, it is a problem (possibly configuration) in your cluster that you are going to have to fix on your own. Sorry.