public static int deserializeMetaData(ByteBuffer meta) throws IOException {
    //TODO this should be returning a class not just an int
    DataInputByteBuffer in = new DataInputByteBuffer();
    in.reset(meta);
    int port = in.readInt();
    return port;
  }
A helper function to deserialize the metadata returned by ShuffleHandler.
@param meta the metadata returned by the ShuffleHandler
@return the port the Shuffle Handler is listening on to serve shuffle data.
llap-server/src/java/org/apache/hadoop/hive/llap/shufflehandler/ShuffleHandler.java