private static synchronized void setPosixFilePermissions(File file, String permsAsString, boolean warnOnly) {
      Set<PosixFilePermission> perms = PosixFilePermissions.fromString(permsAsString);
      try {
        Files.setPosixFilePermissions(Paths.get(file.toURI()), perms);
      } catch (IOException ioe) {
        LOG.warn("Failed to set file permissions on " + file.getAbsolutePath());
        if (!warnOnly) {
          throw new RuntimeException("Exception setting file permissions on " + file.getAbsolutePath());
        }
      }
    }
Method converts statement into a file, compiles the file and then packages the file.
@param ss
@return Response code of 0 for success 1 for failure
@throws CompileProcessorException
ql/src/java/org/apache/hadoop/hive/ql/processors/CompileProcessor.java