Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13935

A command to print JAVA_VERSION used by Hadoop/HDFS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 3.0.0-alpha2
    • None
    • common

    Description

      The java version used by hadoop is controlled by JAVA_HOME variable defined in hadoop_env.sh. We log this information when HDFS starts in the log file.

      STARTUP_MSG:   java = 1.8.0_112
      

      However, it is quite possible that a user might have many versions of java installed on his/her machine. Generally, users tend to check for the java version via

      java -version
      

      This just means we are printing out the java version in the current shell path.

      This jira proposes adding a new simple command or an extension to existing hadoop version command where the current java version used by hadoop is also printed out.

      This avoids customer confusion when they are looking at if the java stack is properly configured. For example, checking if JCE is installed correctly.

      This is a very minor change that can be done by modifying hdfs.cmd or hdfs shell script in the /bin directory. Thanks to sujit for bringing this to my attention.

      Attachments

        Activity

          People

            linyiqun Yiqun Lin
            aengineer Anu Engineer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: