Search in sources :

Example 1 with RefreshHFilesClient

use of org.apache.hadoop.hbase.client.example.RefreshHFilesClient in project hbase by apache.

the class TestRefreshHFilesEndpoint method callRefreshRegionHFilesEndPoint.

private void callRefreshRegionHFilesEndPoint() throws IOException {
    try {
        RefreshHFilesClient refreshHFilesClient = new RefreshHFilesClient(CONF);
        refreshHFilesClient.refreshHFiles(TABLE_NAME);
    } catch (RetriesExhaustedException rex) {
        if (rex.getCause() instanceof IOException) {
            throw new IOException();
        }
    } catch (Throwable ex) {
        LOG.error(ex.toString(), ex);
        fail("Couldn't call the RefreshRegionHFilesEndpoint");
    }
}
Also used : RetriesExhaustedException(org.apache.hadoop.hbase.client.RetriesExhaustedException) IOException(java.io.IOException) RefreshHFilesClient(org.apache.hadoop.hbase.client.example.RefreshHFilesClient)

Aggregations

IOException (java.io.IOException)1 RetriesExhaustedException (org.apache.hadoop.hbase.client.RetriesExhaustedException)1 RefreshHFilesClient (org.apache.hadoop.hbase.client.example.RefreshHFilesClient)1