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

User cannot set empty HADOOP_SSH_OPTS environment variable option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 3.0.0-alpha1
    • scripts
    • None

    Description

      In hadoop-functions.sh in the hadoop_basic_init function there is this initialization of HADOOP_SSH_OPTS:

      HADOOP_SSH_OPTS=${HADOOP_SSH_OPTS:-"-o BatchMode=yes -o StrictHostKeyChecking=no -o ConnectTimeout=10s"}
      

      I believe this parameter substitution is a bug. While most of the environment variables set in the function are generally required for functionality (HADOOP_LOG_DIR, HADOOP_LOGFILE, etc.) I don't believe HADOOP_SSH_OPTS is one of them. If the user wishes to set HADOOP_SSH_OPTS to an empty string (i.e. HADOOP_SSH_OPTS="") they should be able to. But instead, this is requiring HADOOP_SSH_OPTS to always be set to something.

      So I think the

      ":-"
      

      in the above should be

      "-"
      

      Github pull request to be sent shortly.

      Attachments

        Issue Links

          Activity

            People

              chu11 Albert Chu
              chu11 Albert Chu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: