Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-5162 Fix failing e2e tests with spark exec type
  3. PIG-5187

UdfDistributedCache_1 is failing with spark exec type

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: spark-branch
    • Component/s: spark
    • Labels:
      None

      Description

      UdfDistributedCache_1 fails, because Java EvalFunc#getCacheFiles is not handled, thus files are not added to SparkContext:

      Caused by: org.apache.pig.backend.executionengine.ExecException: ERROR 2078: Caught error from UDF: org.apache.pig.test.udf.evalfunc.Udfcachetest [./foodle (No such file or directory)]
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNext(POUserFunc.java:358)
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNextString(POUserFunc.java:430)
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.getNext(PhysicalOperator.java:341)
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:406)
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNextTuple(POForEach.java:323)
              at org.apache.pig.backend.hadoop.executionengine.spark.converter.ForEachConverter$ForEachFunction$1$1.getNextResult(ForEachConverter.java:109)
              at org.apache.pig.backend.hadoop.executionengine.spark.converter.OutputConsumerIterator.readNext(OutputConsumerIterator.java:69)
              ... 15 more
      Caused by: java.io.FileNotFoundException: ./foodle (No such file or directory)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:146)
              at java.io.FileInputStream.<init>(FileInputStream.java:101)
              at java.io.FileReader.<init>(FileReader.java:58)
              at org.apache.pig.test.udf.evalfunc.Udfcachetest.exec(Udfcachetest.java:60)
              at org.apache.pig.test.udf.evalfunc.Udfcachetest.exec(Udfcachetest.java:40)
              at org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.getNext(POUserFunc.java:330)
      

      Similarly, EvalFunc#getShipFiles is not handled.

        Attachments

        1. PIG-5187_1.patch
          5 kB
          Nándor Kollár
        2. PIG-5187_2.patch
          5 kB
          Nándor Kollár
        3. PIG-5187.patch
          5 kB
          Nándor Kollár

          Issue Links

            Activity

              People

              • Assignee:
                nkollar Nándor Kollár
                Reporter:
                nkollar Nándor Kollár
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: