Package org.apache.falcon

Examples of org.apache.falcon.FalconException


        FileSystem fs;
        try {
            fs = new Path(ClusterHelper.getStorageUrl(cluster))
                    .getFileSystem(new Configuration());
        } catch (IOException e) {
            throw new FalconException(e);
        }
        return fs;
    }
View Full Code Here


                    } else {
                        LOG.info("Deleted path: " + log.getPath());
                    }
                    deleteParentIfEmpty(getFileSystem(cluster), log.getPath().getParent());
                } catch (IOException e) {
                    throw new FalconException(" Unable to delete log file : "
                            + log.getPath() + " for entity " + entity.getName()
                            + " for cluster: " + cluster.getName(), e);
                }
            } else {
                LOG.info("Retention limit: " + retention
View Full Code Here

        if (oldEntity.getEntityType() == EntityType.FEED && affectedEntity.getEntityType() == EntityType.PROCESS) {
            return shouldUpdate((Feed) oldEntity, (Feed) newEntity, (Process) affectedEntity);
        } else {
            LOG.debug(newEntity.toShortString());
            LOG.debug(affectedEntity.toShortString());
            throw new FalconException("Don't know what to do. Unexpected scenario");
        }
    }
View Full Code Here

    public static <T> T getInstance(String classKey) throws FalconException {
        String clazzName = StartupProperties.get().getProperty(classKey);
        try {
            return ReflectionUtils.<T>getInstanceByClassName(clazzName);
        } catch (FalconException e) {
            throw new FalconException("Unable to get instance for key: " + classKey, e);
        }
    }
View Full Code Here

            } catch (IllegalAccessException e) {
                Method method = clazz.getMethod("get");
                return (T) method.invoke(null);
            }
        } catch (Exception e) {
            throw new FalconException("Unable to get instance for " + clazzName, e);
        }
    }
View Full Code Here

                    IOUtils.closeQuietly(resourceAsStream);
                }
            }
            throw new FileNotFoundException("Unable to find: " + propertyFileName);
        } catch (IOException e) {
            throw new FalconException("Error loading properties file: " + getPropertyFile(), e);
        }
    }
View Full Code Here

        Properties origProps = new Properties();
        origProps.load(resourceAsStream);
        if (domain == null) {
            domain = origProps.getProperty("*.domain");
            if (domain == null) {
                throw new FalconException("Domain is not set!");
            }
        }

        LOG.info("Initializing properties with domain " + domain);
        Set<String> keys = getKeys(origProps.keySet());
View Full Code Here

            throw new ValidationException(e);
        } catch (ConnectException e) {
            throw new ValidationException(
                    "Unable to connect to Namenode: " + nameNode + " referenced in cluster: " + clusterName);
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

                        "Process start time: " + start + " should be before process end time: " + end);
            }
        } catch (ValidationException e) {
            throw new ValidationException(e);
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

                WORKFLOWAPP retWfApp = getWorkflowTemplate(RETENTION_WF_TEMPLATE);
                retWfApp.setName(wfName);
                addLibExtensionsToWorkflow(cluster, retWfApp, EntityType.FEED, "retention");
                marshal(cluster, retWfApp, wfPath);
            } catch(IOException e) {
                throw new FalconException("Unable to create retention workflow", 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.