hadoop: avoid ganglia diskstat duplicate delaration

support configuring a node as both master and worker

Change-Id: I00902f0fb6f490281189f5a274114777c5abcc28