Package org.apache.falcon

Examples of org.apache.falcon.FalconException


                }
            }
        } catch (ValidationException e) {
            throw e;
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here


                }
            }
        } catch (ValidationException e) {
            throw e;
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

                WORKFLOWAPP repWFapp = getWorkflowTemplate(REPLICATION_WF_TEMPLATE);
                repWFapp.setName(wfName);
                addLibExtensionsToWorkflow(cluster, repWFapp, EntityType.FEED, "replication");
                marshal(cluster, repWFapp, wfPath);
            } catch(IOException e) {
                throw new FalconException("Unable to create replication workflow", e);
            }
        }
View Full Code Here

            COORDINATORAPP replicationCoord;
            try {
                replicationCoord = getCoordinatorTemplate(REPLICATION_COORD_TEMPLATE);
            } catch (FalconException e) {
                throw new FalconException("Cannot unmarshall replication coordinator template", e);
            }

            String coordName = EntityUtil.getWorkflowName(
                    Tag.REPLICATION, Arrays.asList(srcCluster.getName()), feed).toString();
            String start = sourceStartDate.after(targetStartDate)
View Full Code Here

                replicationWF.setConfiguration(getCoordConfig(props));
                replicationAction.setWorkflow(replicationWF);

            } catch (Exception e) {
                throw new FalconException("Unable to create replication workflow", e);
            }

            return replicationAction;
        }
View Full Code Here

            Unmarshaller unmarshaller = entityType.getUnmarshaller();
            T entity = (T) unmarshaller.unmarshal(xmlStream);
            LOG.info("Parsed Entity: " + entity.getName());
            return entity;
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

            final CatalogTable table = feed.getTable();
            if (table != null) {
                return new CatalogStorage(feed);
            }
        } catch (URISyntaxException e) {
            throw new FalconException(e);
        }

        throw new FalconException("Both catalog and locations are not defined.");
    }
View Full Code Here

            final CatalogTable table = getTable(cluster, feed);
            if (table != null) {
                return new CatalogStorage(clusterEntity, table);
            }
        } catch (URISyntaxException e) {
            throw new FalconException(e);
        }

        throw new FalconException("Both catalog and locations are not defined.");
    }
View Full Code Here

            final CatalogTable table = getTable(feedCluster, feed);
            if (table != null) {
                return new CatalogStorage(clusterEntity, table);
            }
        } catch (URISyntaxException e) {
            throw new FalconException(e);
        }

        throw new FalconException("Both catalog and locations are not defined.");
    }
View Full Code Here

        final CatalogTable table = feed.getTable();
        if (table != null) {
            return Storage.TYPE.TABLE;
        }

        throw new FalconException("Both catalog and locations are not defined.");
    }
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.