Examples of ExecException


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

                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

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

            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

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

                            System.getenv("HADOOP_TOKEN_FILE_LOCATION"));
                }
                loader = new ReadToEndLoader(
                        new InterStorage(), conf, scalarfilename, 0);
            } catch (Exception e) {
                throw new ExecException("Failed to open file '" + scalarfilename
                        + "'; error = " + e.getMessage());
            }
            try {
                Tuple t1 = loader.getNext();
                if(t1 == null){
                    log.warn("No scalar field to read, returning null");
                    return null;
                }
                value = t1.get(pos);
                Tuple t2 = loader.getNext();
                if(t2 != null){
                    String msg = "Scalar has more than one row in the output. "
                        + "1st : " + t1 + ", 2nd :" + t2;
                    throw new ExecException(msg);  
                }
               
            } catch (Exception e) {
                throw new ExecException(e.getMessage());
            }
        }
        return value;
    }
View Full Code Here

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

        } catch (ExecException ee) {
            throw ee;
        } catch (Exception e) {
            int errCode = 2106;               
            String msg = "Error while computing count in " + this.getClass().getSimpleName();
            throw new ExecException(msg, errCode, PigException.BUG, e);
        }
    }
View Full Code Here

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

        } catch (ExecException ee) {
            throw ee;
        } catch (Exception e) {
            int errCode = 2106;
            String msg = "Error while computing min in " + this.getClass().getSimpleName();
            throw new ExecException(msg, errCode, PigException.BUG, e);          
        }
    }
View Full Code Here

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

            } catch (ExecException ee) {
                throw ee;
            } catch (Exception e) {
                int errCode = 2106;               
                String msg = "Error while computing count in " + this.getClass().getSimpleName();
                throw new ExecException(msg, errCode, PigException.BUG, e);
            }
        }
View Full Code Here

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

            try {
                return sum(input);
            } catch (Exception ee) {
                int errCode = 2106;
                String msg = "Error while computing count in " + this.getClass().getSimpleName();
                throw new ExecException(msg, errCode, PigException.BUG, ee);
            }
        }
View Full Code Here

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

        } catch (ExecException ee) {
            throw ee;
        } catch (Exception e) {
            int errCode = 2106;
            String msg = "Error while computing min in " + this.getClass().getSimpleName();
            throw new ExecException(msg, errCode, PigException.BUG, e);          
        }
    }
View Full Code Here

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

                sawNonNull = true;
                curMin = java.lang.Math.min(curMin, l);
            } catch (RuntimeException exp) {
                int errCode = 2103;
                String msg = "Problem while computing min of longs.";
                throw new ExecException(msg, errCode, PigException.BUG, exp);
            }
        }
   
        if(sawNonNull) {
            return Long.valueOf(curMin);
View Full Code Here

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

        } catch (ExecException ee) {
            throw ee;
        } catch (Exception e) {
            int errCode = 2106;
            String msg = "Error while computing min in " + this.getClass().getSimpleName();
            throw new ExecException(msg, errCode, PigException.BUG, e);          
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.