code: public void createKeyspace(DBConn dbConn, String keyspace) {
          m_logger.info("Creating Keyspace '{}'", keyspace);
          try {
              KsDef ksDef = setKeySpaceOptions(keyspace);
              dbConn.getClientSession().system_add_keyspace(ksDef);
              waitForSchemaPropagation(dbConn);
              Thread.sleep(1000);  // wait for gossip to other Cassandra nodes
          } catch (Exception ex) {
              String errMsg = "Failed to create Keyspace '" + keyspace + "'"; 
              m_logger.error(errMsg, ex);
              throw new RuntimeException(errMsg, ex);
          }
      }
docs: Create a new keyspace with the given name. The keyspace is created with parameters
  defined for our DBService instance, if any. This method should be used with a
  no-keyspace DB connection.
  
  @param dbConn    Database connection to use.
  @param keyspace  Name of new keyspace.