public static void main(String[] args) throws IOException {
    if(args.length != 1) {
      System.out.println("Usage:");
      System.out.println("java -cp [classpath] "+DeSerializer.class.getCanonicalName() +" [file_location]");
    }
    System.out.print(
        deCompress(FileUtils.readFileToString(new File(args[0]), StandardCharsets.UTF_8)));
  }
this is mainly as a utility to allow debugging of messages for developers by providing the
message in a file and getting an actual message out.
This class on a deployed hive instance will also be bundled in hive-exec jar.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/json/gzip/DeSerializer.java