Tabnine Logo
HCatCreateDBDesc$Builder.location
Code IndexAdd Tabnine to your IDE (free)

How to use
location
method
in
org.apache.hive.hcatalog.api.HCatCreateDBDesc$Builder

Best Java code snippets using org.apache.hive.hcatalog.api.HCatCreateDBDesc$Builder.location (Showing top 2 results out of 315)

origin: apache/hive

@Test
public void testDatabaseLocation() throws Exception {
 HCatClient client = HCatClient.create(new Configuration(hcatConf));
 String dbName = "locationDB";
 client.dropDatabase(dbName, true, HCatClient.DropDBMode.CASCADE);
 HCatCreateDBDesc dbDesc = HCatCreateDBDesc.create(dbName)
  .ifNotExists(true).location("/tmp/" + dbName).build();
 client.createDatabase(dbDesc);
 HCatDatabase newDB = client.getDatabase(dbName);
 assertTrue(newDB.getLocation().matches(".*/tmp/" + dbName));
 client.close();
}
origin: apache/oozie

public void createDatabase(String db, String location) throws Exception {
  HCatCreateDBDesc dbDesc = HCatCreateDBDesc.create(db).ifNotExists(true).location(location).build();
  hcatClient.createDatabase(dbDesc);
  List<String> dbNames = hcatClient.listDatabaseNamesByPattern(db);
  Assert.assertTrue(dbNames.contains(db));
}
org.apache.hive.hcatalog.apiHCatCreateDBDesc$Builderlocation

Javadoc

Location.

Popular methods of HCatCreateDBDesc$Builder

  • <init>
  • build
    Builds the create database descriptor.
  • ifNotExists
    If not exists.

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • From CI to AI: The AI layer in your organization
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