Package org.apache.oozie.service

Examples of org.apache.oozie.service.ZKLocksService.destroy()


            assertEquals("anyone", acls.get(0).getId().getId());
        }
        finally {
            // unregistering all users of ZKUtils (i.e. ZKLocksService) will cause it to disconnect so when we set
            // "oozie.zookeeper.secure" to true, it will again connect but using SASL/Kerberos
            zkls.destroy();
        }

        // Verify that the expected paths created above still exist with the "world" ACLs
        List<ACL> acls = getClient().getZookeeperClient().getZooKeeper().getACL("/oozie", new Stat());
        assertEquals(ZooDefs.Perms.ALL, acls.get(0).getPerms());
View Full Code Here


            assertEquals(ZooDefs.Perms.ALL, acls.get(0).getPerms());
            assertEquals("sasl", acls.get(0).getId().getScheme());
            assertEquals(PRIMARY_PRINCIPAL, acls.get(0).getId().getId());
        }
        finally {
            zkls.destroy();
            Services.get().getConf().set("oozie.zookeeper.secure", "false");
        }
    }

    public void testNewUsingACLs() throws Exception {
View Full Code Here

            assertEquals(ZooDefs.Perms.ALL, acls.get(0).getPerms());
            assertEquals("sasl", acls.get(0).getId().getScheme());
            assertEquals(PRIMARY_PRINCIPAL, acls.get(0).getId().getId());
        }
        finally {
            zkls.destroy();
            Services.get().getConf().set("oozie.zookeeper.secure", "false");
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.