Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig, mail # user - PigServer API

Copy link to this message
PigServer API
Prashant Kommireddi 2012-10-04, 20:49
Hi All,

I am looking at PigServer methods for running scripts/queries and it seems
like currently theie return type is void which does not tell much about job

    public void registerScript(InputStream in, Map<String,String>
params,List<String> paramsFiles) throws IOException {
        try {
            String substituted = doParamSubstitution(in, params,
            GruntParser grunt = new GruntParser(new
        } catch (org.apache.pig.tools.pigscript.parser.ParseException e) {
            throw new IOException(e.getCause());
We do have a handle on number of jobs succeeded/failed as part of the job
run, so that is something we should add as return type?