Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3552

UriUtil used by reducer estimator should support viewfs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.1
    • Component/s: impl
    • Labels:
      None
    • Environment:

      Pig 0.11+

    • Patch Info:
      Patch Available

      Description

      On Hadoop2 running viewfs throws error

      2013-10-30 02:12:46,916 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - Using reducer estimator: org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.InputSizeReducerEstimator
      2013-10-30 02:12:46,917 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.InputSizeReducerEstimator - BytesPerReducer=1610612736 maxReducers=999 totalInputFileSize=-1
      2013-10-30 02:12:46,917 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - Could not estimate number of reducers and no requested or default parallelism set. Defaulting to 1 reducer.
      

      This is caused by the fact that UriUtil.isHDFSFileOrLocalOrS3N only supports files that start with "/", "hdfs:", "file:", "s3n:" but not "viewfs:".

      Trivial fix, patch attached.

      Testing: ant test-commit passes.

        Attachments

        1. UriUtil_tests.patch
          2 kB
          Akihiro Matsukawa
        2. UriUtil_enable_viewfs.patch
          1 kB
          Akihiro Matsukawa

          Activity

            People

            • Assignee:
              amatsukawa Akihiro Matsukawa
              Reporter:
              amatsukawa Akihiro Matsukawa
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: