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 http://192.168.56.121:8080/api/v1/clusters/ambari2012/services/RANGER [root@ambari2012 ~]# curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://192.168.56.121:8080/api/v1/clusters/ambari2012/services/RANGER {   "status" :…

How often does YARN purge locally cached resources?

me2[1]

If you are stretched for space locally, this may come in handy. By default, localized resources are purged every ten minutes… [root@cmhlddlkedat01 2.2.4.2-2]# 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 2.2.4.2-2]# 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…

Nastiness with Hive/ODBC

We ran into an issue that is not documented, although the hive user guide does indicate it should be set. Whenever we issued a statement with the Hive 64-bit ODBC driver through knox, the knox server would truncate anything after…