'Dumps an ini-style configuration suitable for configuring desktop
to talk to this cluster.
TODO(todd) eventually this should use config framework \'writeback\'
support
@param fd: a file-like writable object'

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)
