Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1544

[BigPetStore] Use of java.io.File and check for directory existence will fail with non-POSIX DFSs (HDFS, S3, etc.)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: blueprints
    • Labels:
      None

      Description

      The BigPetStore Spark driver uses a java.io.File object to store the output directory path. The File's methods are used to check if the path exists and is a directory.

      Since non-POSIX DFSs (S3, HDFS, etc.) will not have paths of the appropriate format and will not be accessible through a POSIX interface, these checks will fail, preventing the usage of S3, HDFS, etc.

        Activity

        Hide
        jayunit100 jay vyas added a comment -

        Commited, thanks again ! Now this should run in any N node system.

        Show
        jayunit100 jay vyas added a comment - Commited, thanks again ! Now this should run in any N node system.
        Hide
        jayunit100 jay vyas added a comment -

        LGTM , +1 we need this to generate data on a DFS . will commit later

        Show
        jayunit100 jay vyas added a comment - LGTM , +1 we need this to generate data on a DFS . will commit later
        Hide
        rnowling RJ Nowling added a comment -

        This patch fixes the issue by using a String for the path instead of a java.io.File and removing the checks for existence and a directory.

        Show
        rnowling RJ Nowling added a comment - This patch fixes the issue by using a String for the path instead of a java.io.File and removing the checks for existence and a directory.

          People

          • Assignee:
            rnowling RJ Nowling
            Reporter:
            rnowling RJ Nowling
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development