Package org.apache.falcon

Examples of org.apache.falcon.FalconException


            OozieClient client = OozieClientFactory.get(cluster);
            client.change(jobId, changeValue);
            LOG.info("Changed bundle/coord " + jobId + ": " + changeValue
                    + " on cluster " + cluster);
        } catch (OozieClientException e) {
            throw new FalconException(e);
        }
    }
View Full Code Here


            }
            LOG.error("Failed to change coordinator. Current value "
                    + coord.getConcurrency() + ", "
                    + SchemaHelper.formatDateUTC(coord.getEndTime()) + ", "
                    + SchemaHelper.formatDateUTC(coord.getPauseTime()));
            throw new FalconException("Failed to change coordinator " + id
                    + " with change value " + changeValueStr);
        } catch (OozieClientException e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

        try {
            WorkflowJob jobInfo = client.getJobInfo(jobId);
            String conf = jobInfo.getConf();
            return OozieUtils.toProperties(conf);
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

            instance.cluster = cluster;
            instances[0] = instance;
            return new InstancesResult("Instance for workflow id:" + jobId,
                    instances);
        } catch (Exception e) {
            throw new FalconException(e);
        }

    }
View Full Code Here

            connection.setExceptionListener(this);
            connection.start();
        } catch (Exception e) {
            LOG.error("Error starting subscriber of topic: " + this.toString(),
                    e);
            throw new FalconException(e);
        }
    }
View Full Code Here

            subscriber.close();
            connection.close();
        } catch (JMSException e) {
            LOG.error("Error closing subscriber of topic: " + this.toString(),
                    e);
            throw new FalconException(e);
        }
    }
View Full Code Here

            hcatConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, "");
            hcatConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");

            return HCatClient.create(hcatConf);
        } catch (HCatException e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

            LOG.info("Initializing service : " + serviceClassName);
            try {
                service.init();
            } catch (Throwable t) {
                LOG.fatal("Failed to initialize service " + serviceClassName, t);
                throw new FalconException(t);
            }
            LOG.info("Service initialized : " + serviceClassName);
        }
    }
View Full Code Here

            HCatClient client = get(catalogBaseUrl);
            client.close();
            HCatDatabase database = client.getDatabase("default");
            return database != null;
        } catch (HCatException e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

        try {
            HCatClient client = get(catalogUrl);
            HCatTable table = client.getTable(database, tableName);
            return table != null;
        } catch (HCatException e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.falcon.FalconException

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.