Package org.apache.oozie.action.hadoop

Examples of org.apache.oozie.action.hadoop.FileSystemActions


            Document doc = getDocumentFromXML(prepareXML);
            doc.getDocumentElement().normalize();

            // Get the list of child nodes, basically, each one corresponding to a separate action
            NodeList nl = doc.getDocumentElement().getChildNodes();
            FileSystemActions fsActions = new FileSystemActions();

            for (int i = 0; i < nl.getLength(); ++i) {
                String commandType = "";
                /* Logic to find the command type goes here
                commandType = ..........;
                */
                // As of now, the available prepare action is of type hdfs. Hence, assigning the value directly
                commandType = "hdfs";
                if (commandType.equalsIgnoreCase("hdfs")) {
                    fsActions.execute(nl.item(i));
                } /*else if(commandType.equalsIgnoreCase("hcat")) {     //Other command types go here
                    hCatActions.execute(nl.item(i));
                  }*/
            }
        } catch (IOException ioe) {
View Full Code Here

TOP

Related Classes of org.apache.oozie.action.hadoop.FileSystemActions

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.