Codota Logo
HBaseVersion$Version
Code IndexAdd Codota to your IDE (free)

How to use
HBaseVersion$Version
in
co.cask.cdap.data2.util.hbase

Best Java code snippets using co.cask.cdap.data2.util.hbase.HBaseVersion$Version (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: cdapio/cdap

builder.append(Constants.Startup.TX_PRUNE_ACL_CHECK);
builder.append(" in cdap-site.xml.");
if (HBaseVersion.get().equals(HBaseVersion.Version.HBASE_96) ||
 HBaseVersion.get().equals(HBaseVersion.Version.HBASE_98)) {
 builder.append(" Detected HBase version ");
 builder.append(HBaseVersion.get());
origin: cdapio/cdap

/**
 * Prints out the HBase {@link Version} enum value for the current version of HBase on the classpath.
 */
public static void main(String[] args) {
 // Suppress any output to stdout
 PrintStream stdout = System.out;
 System.setOut(new PrintStream(new NullOutputStream()));
 Version version = HBaseVersion.get();
 // Restore stdout
 System.setOut(stdout);
 System.out.println(version.getMajorVersion());
 if (args.length == 1 && "-v".equals(args[0])) {
  // Print versionString if verbose
  System.out.println("versionString=" + getVersionString());
 }
}
origin: cdapio/cdap

public static String getCdapHBaseCompatVersion() {
 // cdap hbase compat module
 return HBaseVersion.get().toString();
}
origin: cdapio/cdap

public static void setHBaseVersion(HTableDescriptorBuilder tableDescriptorBuilder) {
 tableDescriptorBuilder.setValue(CDAP_HBASE_VERSION, HBaseVersion.get().getMajorVersion());
}
origin: co.cask.cdap/cdap-hbase-compat-base

public static void setHBaseVersion(HTableDescriptorBuilder tableDescriptorBuilder) {
 tableDescriptorBuilder.setValue(CDAP_HBASE_VERSION, HBaseVersion.get().getMajorVersion());
}
origin: cdapio/cdap

/**
 * Get {@link TableDescriptorBuilder} with default properties set.
 * @param tableId id of the table for which the descriptor is to be returned
 * @param cConf the instance of the {@link CConfiguration}
 * @return the builder with default properties set
 */
public static TableDescriptorBuilder getTableDescriptorBuilder(TableId tableId, CConfiguration cConf) {
 String tablePrefix = cConf.get(Constants.Dataset.TABLE_PREFIX);
 TableName tableName = HTableNameConverter.toTableName(tablePrefix, tableId);
 TableDescriptorBuilder tdBuilder = new TableDescriptorBuilder(tableName.getNamespaceAsString(),
                                tableName.getQualifierAsString());
 tdBuilder
  .addProperty(Constants.Dataset.TABLE_PREFIX, tablePrefix)
  .addProperty(HBaseTableUtil.CDAP_VERSION, ProjectInfo.getVersion().toString())
  .addProperty(HBaseTableUtil.CDAP_HBASE_VERSION, HBaseVersion.get().getMajorVersion());
 return tdBuilder;
}
origin: co.cask.cdap/cdap-hbase-compat-base

/**
 * Prints out the HBase {@link Version} enum value for the current version of HBase on the classpath.
 */
public static void main(String[] args) {
 // Suppress any output to stdout
 PrintStream stdout = System.out;
 System.setOut(new PrintStream(new NullOutputStream()));
 Version version = HBaseVersion.get();
 // Restore stdout
 System.setOut(stdout);
 System.out.println(version.getMajorVersion());
 if (args.length == 1 && "-v".equals(args[0])) {
  // Print versionString if verbose
  System.out.println("versionString=" + getVersionString());
 }
}
origin: co.cask.cdap/cdap-hbase-compat-base

/**
 * Get {@link TableDescriptorBuilder} with default properties set.
 * @param tableId id of the table for which the descriptor is to be returned
 * @param cConf the instance of the {@link CConfiguration}
 * @return the builder with default properties set
 */
public static TableDescriptorBuilder getTableDescriptorBuilder(TableId tableId, CConfiguration cConf) {
 String tablePrefix = cConf.get(Constants.Dataset.TABLE_PREFIX);
 TableName tableName = HTableNameConverter.toTableName(tablePrefix, tableId);
 TableDescriptorBuilder tdBuilder = new TableDescriptorBuilder(tableName.getNamespaceAsString(),
                                tableName.getQualifierAsString());
 tdBuilder
  .addProperty(Constants.Dataset.TABLE_PREFIX, tablePrefix)
  .addProperty(HBaseTableUtil.CDAP_VERSION, ProjectInfo.getVersion().toString())
  .addProperty(HBaseTableUtil.CDAP_HBASE_VERSION, HBaseVersion.get().getMajorVersion());
 return tdBuilder;
}
origin: cdapio/cdap

 instance = createInstance(getLatestHBaseCDHClassName());
 LOG.info("CDH HBase version '{}' is unsupported. Continuing with latest CDH HBase version '{}'.",
      hbaseVersion.getMajorVersion(), getLatestHBaseCDHClassName());
 break;
} else {
 instance = createInstance(getLatestHBaseClassName());
 LOG.info("HBase version '{}' is unsupported. Continuing with latest HBase version '{}'.",
      hbaseVersion.getMajorVersion(), getLatestHBaseClassName());
 break;
} else {
origin: co.cask.cdap/cdap-hbase-compat-base

 instance = createInstance(getLatestHBaseCDHClassName());
 LOG.info("CDH HBase version '{}' is unsupported. Continuing with latest CDH HBase version '{}'.",
      hbaseVersion.getMajorVersion(), getLatestHBaseCDHClassName());
 break;
} else {
 instance = createInstance(getLatestHBaseClassName());
 LOG.info("HBase version '{}' is unsupported. Continuing with latest HBase version '{}'.",
      hbaseVersion.getMajorVersion(), getLatestHBaseClassName());
 break;
} else {
co.cask.cdap.data2.util.hbaseHBaseVersion$Version

Javadoc

Represents the major version of the HBase library that is currently loaded.

Most used methods

  • equals
  • getMajorVersion
  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now