Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7696

If classpath directory contains a directory it causes exception in Spark runner staging

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.15.0
    • runner-spark
    • None

    Description

      Run the unit test  SparkPipelineStateTest.testBatchPipelineRunningState in IntelliJ IDEA on my mac, get the IllegalArgumentException in the console output. I check the source code, and find the result of PipelineResources.detectClassPathResourcesToStage contains directory, which is the cause of the exception.

      See the attached file 'addJar_exception.jpg' for detail, and the result of PipelineResources.detectClassPathResourcesToStage

      is showed in attached file 'files_contains_dir.jpg' during debug.

      Attachments

        1. files_contains_dir.jpg
          60 kB
          Wang Yanlin
        2. addJar_exception.jpg
          158 kB
          Wang Yanlin

        Activity

          People

            yanlin-Lynn Wang Yanlin
            yanlin-Lynn Wang Yanlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h