conf.set(Constants.PEER_HOST, Constants.DEFAULT_PEER_HOST);
conf.setInt(Constants.PEER_PORT, Constants.DEFAULT_PEER_PORT);
BSPPeer<?, ?, ?, ?, IntWritable> dummyPeer = new BSPPeerImpl<NullWritable, NullWritable, NullWritable, NullWritable, IntWritable>(
conf, FileSystem.get(conf), new Counters());
TaskAttemptID id = new TaskAttemptID("1", 1, 1, 1);
messageManager.init(id, dummyPeer, conf, peer);
peer = messageManager.getListenerAddress();
String peerName = peer.getHostName() + ":" + peer.getPort();
System.out.println("Peer is " + peerName);
messageManager.send(peerName, new IntWritable(1337));