Tabnine Logo
RefreshHFilesClient.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hbase.client.example.RefreshHFilesClient
constructor

Best Java code snippets using org.apache.hadoop.hbase.client.example.RefreshHFilesClient.<init> (Showing top 5 results out of 315)

origin: apache/hbase

 public static void main(String[] args) throws Exception {
  ToolRunner.run(new RefreshHFilesClient(HBaseConfiguration.create()), args);
 }
}
origin: apache/hbase

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");
 }
}
origin: apache/hbase

 @Test
 public void testRefreshHFilesClient() throws Exception {
  addHFilesToRegions();
  assertEquals(2, HTU.getNumHFiles(TABLE_NAME, FAMILY));
  RefreshHFilesClient tool = new RefreshHFilesClient(HTU.getConfiguration());
  assertEquals(0, ToolRunner.run(tool, new String[] { TABLE_NAME.getNameAsString() }));
  assertEquals(4, HTU.getNumHFiles(TABLE_NAME, FAMILY));
 }
}
origin: com.aliyun.hbase/alihbase-examples

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");
 }
}
origin: org.apache.hbase/hbase-examples

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");
 }
}
org.apache.hadoop.hbase.client.exampleRefreshHFilesClient<init>

Javadoc

Constructor with Conf object

Popular methods of RefreshHFilesClient

  • refreshHFiles

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JTable (javax.swing)
  • JTextField (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now