Development and deployment

We'll go through the whole development and deployment steps with an example. Let's create a simple function called toUpper, which converts a string to uppercase, by following development and deployment steps:

  1. Download and install a Java IDE, such as Eclipse or IntelliJ IDEA.
  2. Start the IDE and create a Java project
  3. Right-click on the project to choose the Build Path | Configure Build Path | Add External Jars option. It will open a new window. Navigate to the directory with the library of Hive and Hadoop. Then, select and add all JAR files we need to import. We can also resolve the library dependency automatically by using Maven (http://maven.apache.org/); the proper pom.xml file is given in the sample code for this ...

Get Apache Hive Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.