Package org.apache.pig.backend.executionengine

Examples of org.apache.pig.backend.executionengine.ExecException


       
        if (index >= packages.size() || index < 0) {
            int errCode = 2140;
            String msg = "Invalid package index " + index
                + " should be in the range between 0 and " + packages.size();
            throw new ExecException(msg, errCode, PigException.BUG);
        }
                 
        POPackage pack = packages.get(index);
       
        // check to see if we need to unwrap the key. The keys may be
View Full Code Here


            return getOutputTuple();
        }

        catch(IOException ioe){
            throw new ExecException(ioe);
        }
    }
View Full Code Here

        Result lrOut = lr.getNext(dummyTuple);

        if(lrOut.returnStatus!=POStatus.STATUS_OK){
            int errCode = 2167;
            String errMsg = "LocalRearrange used to extract keys from tuple isn't configured correctly";
            throw new ExecException(errMsg,errCode,PigException.BUG);
        }
        lr.detachInput();
        return mTupleFactory.newTuple(((Tuple)lrOut.result).getAll());
    }
View Full Code Here

                while(true) {                       
                    if (buffer.hasNextBatch()) {       
                        try {
                            buffer.nextBatch();
                        }catch(IOException e) {
                            throw new ExecException(e);
                        }
                       
                        setAccumStart();                   
                    }else{               
                        buffer.clear();
View Full Code Here

                break;

                default: {
                    int errCode = 2080;
                    String msg = "Foreach currently does not handle type " + DataType.findTypeName(resultTypes[i]);
                    throw new ExecException(msg, errCode, PigException.BUG);
                }
               
                }

                if (inputData.returnStatus == POStatus.STATUS_BATCH_OK) {                 
View Full Code Here

                        ((MapReducePOStoreImpl) impl).createRecordCounter(this);
                }
            }catch (IOException ioe) {
                int errCode = 2081;
                String msg = "Unable to setup the store function.";           
                throw new ExecException(msg, errCode, PigException.BUG, ioe);
            }
        }
    }
View Full Code Here

                break;
            }
        } catch (IOException ioe) {
            int errCode = 2135;
            String msg = "Received error from store function." + ioe.getMessage();
            throw new ExecException(msg, errCode, ioe);
        }
        return res;
    }
View Full Code Here

            // inputs)
            int errCode = 1082;
            String msg = multiQuery?
                    "Merge more than 127 map-reduce jobs not supported."
                  : "Cogroups with more than 127 inputs not supported.";
            throw new ExecException(msg, errCode, PigException.INPUT);
        } else {
            // We could potentially be sending the (key, value) relating to
            // multiple "group by" statements through one map reduce job
            // in  multiquery optimized execution. In this case, we want
            // two keys which have the same content but coming from different
View Full Code Here

                if( ! firstLeftKey.getClass().equals(idxKeyClass)){
   
                    // This check should indeed be done on compile time. But to be on safe side, we do it on runtime also.
                    int errCode = 2166;
                    String errMsg = "Key type mismatch. Found key of type "+firstLeftKey.getClass().getCanonicalName()+" on left side. But, found key of type "+ idxKeyClass.getCanonicalName()+" in index built for right side.";
                    throw new ExecException(errMsg,errCode,PigException.BUG);
                }
            }
        }
       
        //add remaining split indexes to splitsAhead array
View Full Code Here

            try {
                lr.setPlans(ppLst);
            } catch (PlanException pe) {
                int errCode = 2071;
                String msg = "Problem with setting up local rearrange's plans.";
                throw new ExecException(msg, errCode, PigException.BUG, pe);
            }
            LRs[i] = lr;
            ConstantExpression ce = new ConstantExpression(genKey(old));
            ce.setResultType((i == fragment) ? DataType.TUPLE : DataType.BAG);
            constExps[i] = ce;
View Full Code Here

TOP

Related Classes of org.apache.pig.backend.executionengine.ExecException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.