@Test public void testHiveTemplate() throws Exception { System.out.println( hiveTemplate.execute( new HiveClientCallback<Object>() { @Override public Object doInHive(HiveClient hiveClient) throws Exception { return hiveClient.get_all_databases(); } })); }