src/main/java/com/hotels/beeju/BeejuJUnitRule.java
public void createDatabase(String databaseName) throws TException {
    HiveMetaStoreClient client = new HiveMetaStoreClient(conf());
    String databaseFolder = new File(temporaryFolder.getRoot(), databaseName).toURI().toString();
    try {
      client.createDatabase(new Database(databaseName, null, databaseFolder, null));
    } finally {
      client.close();
    }
  }
public void createDatabase(String databaseName) throws TException {
    HiveMetaStoreClient client = new HiveMetaStoreClient(conf());
    String databaseFolder = new File(temporaryFolder.getRoot(), databaseName).toURI().toString();
    try {
      client.createDatabase(new Database(databaseName, null, databaseFolder, null));
    } finally {
      client.close();
    }
  }
Create a new database with the specified name.

@param databaseName Database name.
@throws TException If an error occurs creating the database.