@Override
    public final void dropCatalog(ClusterName targetCluster, CatalogName name) throws UnsupportedException,

            ExecutionException {

        try {
            connectionHandler.startJob(targetCluster.getName());

            if (logger.isDebugEnabled()) {
                logger.debug("Dropping catalog [" + name.getName() + "] in cluster [" + targetCluster.getName() + "]");
            }

            dropCatalog(name, connectionHandler.getConnection(targetCluster.getName()));
            if (logger.isDebugEnabled()) {
                logger.debug(
                        "Catalog [" + name.getName() + "] has been drepped successfully in cluster [" + targetCluster
                                .getName() + "]");
            }
        } finally {
            connectionHandler.endJob(targetCluster.getName());
        }

    }
@ Override public final void dropCatalog ( ClusterName targetCluster , CatalogName name ) throws UnsupportedException , ExecutionException { try { connectionHandler . startJob ( targetCluster . getName ( ) ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Dropping catalog [" + name . getName ( ) + "] in cluster [" + targetCluster . getName ( ) + "]" ) ; } dropCatalog ( name , connectionHandler . getConnection ( targetCluster . getName ( ) ) ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Catalog [" + name . getName ( ) + "] has been drepped successfully in cluster [" + targetCluster . getName ( ) + "]" ) ; } } finally { connectionHandler . endJob ( targetCluster . getName ( ) ) ; } }
This method drop a catalog.

@param targetCluster the target cluster where the catalog will be dropped.
@param name          the catalog name.
@throws UnsupportedException if an operation is not supported.
@throws ExecutionException   if an error happens.