O'Reilly logo

Hadoop Operations and Cluster Management Cookbook by Shumin Guo

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

Installing Java and other tools

Hadoop was built using Java, so Java is required before installing Hadoop.

Getting ready

Under Linux, OpenJDK provides an open source Java implementation. But if we use OpenJDK for Hadoop, it will cause low level and hard to tackle problems. So, OpenJDK is not recommended for the Hadoop installation. Instead, Java from Oracle is recommended.

  1. Check if OpenJDK has been installed in the system with the command:
    rpm –qa | grep openjdk
    

    Tip

    If no output is given, it means OpenJDK has not been installed.

  2. If Java has been installed in the system, we can check its version with:
    java -version
    
  3. If OpenJDK is used, we should be able to get output similar to the following:
    java version "1.7.0_09-icedtea"
    OpenJDK Runtime Environment ...

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