Package org.apache.oozie.action.hadoop

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


public class TestCredentials extends ActionExecutorTestCase {

    public void testHbaseCredentials() {
        CredentialsProperties prop = new CredentialsProperties("dummyName", "dummyType");
        prop.getProperties().put("hbase.zookeeper.quorum", "dummyHost");
        Credentials hb = new HbaseCredentials();
        WorkflowJobBean wfBean = new WorkflowJobBean();
        wfBean.setUser("dummyUser");
        JobConf jc = new JobConf(false);
        try {
            hb.addtoJobConf(jc, prop, new Context(wfBean, new WorkflowActionBean()));
        }
        catch (Exception e) {
            // Change this when security related classes are available from
            // hbase maven repo
            if (!(e.getCause() instanceof ClassNotFoundException)) {
View Full Code Here

TOP

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

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.