Previous Topic: Define Hive Database RolesNext Topic: Define Hive Domains


Define Hive Databases

Use the Hive Database Editor for the following tasks:

To define a database in Hive

  1. In the Model Explorer, right-click Databases and click New.

    An instance of Database is created.

  2. Right-click the instance and click Properties.

    The Hive Database Editor opens.

  3. In the navigation grid, select the database that you want to define and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create a database. Use the Enter filter text box to filter a very large list of databases to quickly locate the one that you want to define.

    Name

    Specifies the name of the database. Set the name of the database in this field.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

  4. On the General tab, work with the following options:
    Location

    Indicates that a specific distributed file system directory must be used to store data files.

    DB Properties

    Lets you specify additional user-defined table properties.

    Owner Role

    Specifies the owner of the database. Select an owner from the drop-down list or click New New icon in property editors to create a new object to create one.

    Owner User

    Specifies the user of the database. Select a user from the drop-down list or click New New icon in property editors to create a new object to create one.

  5. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  6. (Optional) Click the UDP tab to work with user-defined properties for the object.
  7. (Optional) Click the Notes tab to view and edit user notes.
  8. (Optional) Click the Extended Notes tab to view or edit user notes.
  9. Click Close.

    The database is defined and the Hive Database Editor closes.

For more information, refer to Hive documentation.