Hi, Alexander,
Maybe you can paste the logs of this 2 datanodes here then we can help
to identify the problems.
David
Alexander Aristov 写道:
Hi all
I run hadoop cluster on Amazon EC2 servers. I start clusterof 2 data nodes
and then open job tracker to read status. It shows me that 2 data nodes as
expected. It's ok.
Then I open FS monitoring page (host:50070). And it shows me that the
cluster has 0 live nodes and 0 dead nodes. So it says there are no datanodes
at all and hence hadoop file system is not working.
But if I reboot the two datanodes then they get added as a new datanodes (3
and 4) on the job tracker page and they become alive on the other page. HDFS
becomes working.
What can be a problem that hadoop doesn't add datanodes on startup but adds
them after rebooting.
--
Best Regards
Alexander Aristov
.