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

UriUtil used by reducer estimator should support viewfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.1
    • impl
    • None
    • Pig 0.11+

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: