Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3964

Job submission times out with recursive.file.enumeration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • None
    • API / DataSet
    • None

    Description

      When using "recursive.file.enumeration" with a big enough folder structure to list, flink batch job fails right at the beginning because of a timeout.

      Problem details

      We get this error: Communication with JobManager failed: Job submission to the JobManager timed out.

      The code we have is basically this:

      val env = ExecutionEnvironment.getExecutionEnvironment
      
      val parameters = new Configuration
      
      // set the recursive enumeration parameter
      parameters.setBoolean("recursive.file.enumeration", true)
      
      val parameter = ParameterTool.fromArgs(args)
      
      val input_data_path : String = parameter.get("input_data_path", null )
      
      val data : DataSet[(Text,Text)] = env.readSequenceFile(classOf[Text], classOf[Text], input_data_path)
      .withParameters(parameters)
      
      data.first(10).print
      

      If we set input_data_path parameter to s3n://bucket/path/date=*/ it times out. If we use a more restrictive pattern like s3n://bucket/path/date=20160523/, it doesn't time out.

      To me it seems that time taken to list files shouldn't cause any timeouts on job submission level.

      For us this was "fixed" by adding akka.client.timeout: 600 s in flink-conf.yaml, but I wonder if the timeout would still occur if we have even more files to list?


      P.S. Is there any way to set akka.client.timeout when calling bin/flink run instead of editing flink-conf.yaml. I tried to add it as a -yD flag but couldn't get it working.

      Attachments

        Issue Links

          Activity

            People

              mxm Maximilian Michels
              juho.autio.r Juho Autio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: