Deleting a service in ambari

Just a simple method to delete a service in Ambari using the REST API… [root@ambari2012 ~]# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE [root@ambari2012 ~]# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE {   "status" :…

How often does YARN purge locally cached resources?


If you are stretched for space locally, this may come in handy. By default, localized resources are purged every ten minutes… [root@cmhlddlkedat01]# grep -A1 yarn.nodemanager.localizer.cache.cleanup.interval-ms yarn-default.xml <name>yarn.nodemanager.localizer.cache.cleanup.interval-ms</name> <value>600000</value> [root@cmhlddlkedat01]# Of course, this can be overridden.

Phoenix to a secure HBase cluster

This is just a simple example of using a custom JDBC class to connect to an HBase cluster that is secured by kerberos. import java.sql.*; import java.util.*; public class phoenixTest { public static void main(String args[]) throws Exception { Connection…