def dump_ini(self, fd=sys.stdout):
    print >>fd, "[hadoop]"
    print >>fd, "[[hdfs_clusters]]"
    print >>fd, "[[[default]]]"
    print >>fd, "thrift_port=%d" % self.namenode_thrift_port
    print >>fd, "[[mapred_clusters]]"
    print >>fd, "[[[default]]]"
    print >>fd, "thrift_port=%d" % self.jobtracker_thrift_port


# Shared global cluster returned by shared_cluster context manager.
Dumps an ini-style configuration suitable for configuring desktop
dataset/ETHPy150Open cloudera/hue/desktop/libs/hadoop/src/hadoop/mini_cluster.py/MiniHadoopCluster.dump_ini