O'Reilly logo

Hadoop 2.x Administration Cookbook by Gurmukh Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using MySQL for Hive metastore

The preceding configuration is the embedded mode configuration, which is not production ready and should not be used.

Now, we will enable the metastore to connect to an external MySQL database and scale to multiple connections. This will be the local metastore mode.

The assumption here is that the readers know the basics of MySQL user management and can assign grants.

How to do it…

  1. Clean up the old databases by either dropping from Hive or simply cleaning the warehouse location. Note: this should never be done in production. This is shown in the following screenshot:
    How to do it…
  2. Now, firstly, we need to install the MySQL server on ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required