Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24681

Cannot deploy cluster without HDFS_CLIENT

    XMLWordPrintableJSON

    Details

      Description

      The attached blueprint cannot be deployed, because hadoop-env.sh is not saved by Ambari, because it requires HDFS_CLIENT component on at least one host:

      https://github.com/apache/ambari/blob/8d145e0c04917866fd76690688826cf44065370e/ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py#L32-L33

      Datanode start fails with:

      ExecutionFailed: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ;  /usr/hdp/3.0.0.0-1634/hadoop/bin/hdfs --config /usr/hdp/3.0.0.0-1634/hadoop/conf --daemon start datanode'' returned 1. ERROR: JAVA_HOME is not set and could not be found.
      

      This appears in output from after-INSTALL hook:

      Parameter hadoop_conf_dir is missing or directory does not exist. This is expected if this host does not have any Hadoop components.
      

      Additionally, host groups without HDFS_CLIENT cannot be scaled up.

        Attachments

        1. bp-scale.json
          0.7 kB
          Doroszlai, Attila
        2. blueprint.json
          0.4 kB
          Doroszlai, Attila

          Issue Links

            Activity

              People

              • Assignee:
                adoroszlai Doroszlai, Attila
                Reporter:
                adoroszlai Doroszlai, Attila
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m