Class ApplicationSubmissionContextInterceptor

All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.yarn.api.ApplicationBaseProtocol, org.apache.hadoop.yarn.api.ApplicationClientProtocol, ClientRequestInterceptor

public class ApplicationSubmissionContextInterceptor extends PassThroughClientRequestInterceptor
It prevents DoS attack over the ApplicationClientProtocol. Currently, it checks the size of the ApplicationSubmissionContext. If it exceeds the limit it can cause Zookeeper failures.
  • Constructor Details

    • ApplicationSubmissionContextInterceptor

      public ApplicationSubmissionContextInterceptor()
  • Method Details

    • submitApplication

      public org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse submitApplication(org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
      Specified by:
      submitApplication in interface org.apache.hadoop.yarn.api.ApplicationClientProtocol
      Overrides:
      submitApplication in class PassThroughClientRequestInterceptor
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
      IOException