org.apache.pig.backend.executionengine.ExecException.printStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.apache.pig.backend.executionengine.ExecException.printStackTrace()方法的一些代码示例,展示了ExecException.printStackTrace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExecException.printStackTrace()方法的具体详情如下:
包路径:org.apache.pig.backend.executionengine.ExecException
类名称:ExecException
方法名:printStackTrace

ExecException.printStackTrace介绍

暂无

代码示例

代码示例来源:origin: edu.umd/cloud9

@Override
 public int getPartition(Tuple key, FloatWritable value, int numReduceTasks) {
  try {
   return (((String) key.get(0)).hashCode() & Integer.MAX_VALUE) % numReduceTasks;
  } catch (ExecException e) {
   e.printStackTrace();
   return 0;
  }
 }
}

代码示例来源:origin: org.apache.pig/pig

sb.append(",");
} catch (ExecException e) {
  e.printStackTrace();
  mLog.warn("Exception when format tuple", e);

代码示例来源:origin: org.apache.pig/pig

public Map<Operator, DataBag> getExamples(String alias) throws IOException {
  try {
    if (currDAG.isBatchOn() && alias != null) {
      currDAG.parseQuery();
      currDAG.buildPlan( null );
      execute();
    }
    currDAG.parseQuery();
    currDAG.skipStores();
    currDAG.buildPlan( alias );
    currDAG.compile();
  } catch (IOException e) {
    //Since the original script is parsed anyway, there should not be an
    //error in this parsing. The only reason there can be an error is when
    //the files being loaded in load don't exist anymore.
    e.printStackTrace();
  }
  ExampleGenerator exgen = new ExampleGenerator( currDAG.lp, pigContext );
  try {
    return exgen.getExamples();
  } catch (ExecException e) {
    e.printStackTrace(System.out);
    throw new IOException("ExecException" , e);
  } catch (Exception e) {
    e.printStackTrace(System.out);
    throw new IOException("Exception ", e);
  }
}

代码示例来源:origin: com.linkedin.datafu/datafu

ee.printStackTrace();
  throw ee;
} catch (Exception e) {

代码示例来源:origin: com.linkedin.datafu/datafu

ee.printStackTrace();
  throw ee;
} catch (Exception e) {

代码示例来源:origin: com.linkedin.datafu/datafu

ee.printStackTrace();
  throw ee;
} catch (Exception e) {

代码示例来源:origin: com.linkedin.datafu/datafu

ee.printStackTrace();
  throw ee;
} catch (Exception e) {

代码示例来源:origin: com.linkedin.datafu/datafu

ee.printStackTrace();
  throw ee;
} catch (Exception e) {

相关文章

微信公众号

最新文章

更多