Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12571

Ozone: remove spaces from the beginning of the hdfs script

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • HDFS-7240
    • HDFS-7240
    • None
    • Reviewed

    Description

      It seems that during one of the previous merge some unnecessary spaces has been added to the hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs file.

      After a dist build I can not start server with the hdfs command:

      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<'
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-functions.sh: line 398: `  done < <(for text in "${input[@]}"; do'
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 110: hadoop_find_confdir: command not found
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 111: hadoop_exec_hadoopenv: command not found
      /tmp/hadoop-3.1.0-SNAPSHOT/bin/../libexec/hadoop-config.sh: line 112: hadoop_import_shellprofiles: command not found
      

      See the space at here:
      https://github.com/apache/hadoop/blob/d0bd0f623338dbb558d0dee5e747001d825d92c5/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs

      Or see the latest version at:
      https://github.com/apache/hadoop/blob/HDFS-7240/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs

      To be honest I don't understand how it could work for others, as it seems to be an older change. Maybe some git magic removed it on OSX (I use linux). Anyway I upload a patch to fix it.

      Attachments

        1. HDFS-12571-HDFS-7240.001.patch
          0.5 kB
          Marton Elek

        Activity

          People

            elek Marton Elek
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: