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

Hive troubleshooting

In this recipe, we will look at Hive troubleshooting steps and important keywords in the logs, which can help us to identify issues.

Getting ready

For this recipe, the user must have completed the Operating Hive with ZooKeeper recipe in Chapter 7, Data Ingestion and Workflow and have a basic understanding of database connectivity.

How to do it...

  1. Connect to the edge1.cyrus.com Edge node and switch to user hadoop.
  2. The Hive query logs location is defined by hive.querylog.location and the Hive server2 logs is defined by hive.server2.logging.operation.log.location.
  3. As an example, if I try to query a table that does not exist, we can see the errors in the Hive log, as shown in the following screenshot:
  4. Make it a good habit to read logs ...

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