Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Components: hadoop
    • Labels:
    • Sprint:
    • Rank:
      1|i006uv:

      Description

      Installing Cookbook Gems:
      Compiling Cookbooks...
      [2017-08-22T17:59:15+05:30] FATAL: HDFS NameNode HA requires node['hadoop']['hdfs_site']['dfs.nameservices'] to be set

      ================================================================================
      Recipe Compile Error in /var/chef/cache/cookbooks/hadoop/recipes/_hadoop_hdfs_ha_checkconfig.rb
      ================================================================================

      SystemExit
      ----------
      exit

      Cookbook Trace:
      ---------------
      /var/chef/cache/cookbooks/hadoop/recipes/_hadoop_hdfs_ha_checkconfig.rb:25:in `from_file'

      Relevant File Content:
      ----------------------
      /var/chef/cache/cookbooks/hadoop/recipes/_hadoop_hdfs_ha_checkconfig.rb:

      18: #
      19: # HDFS HA requires dfs.nameservices
      20:
      21:
      22: if node['hadoop'].key?('hdfs_site') && node['hadoop']['hdfs_site'].key?('dfs.nameservices')
      23: dfs_nameservices = node['hadoop']['hdfs_site']['dfs.nameservices'].split(',')
      24: else
      25>> Chef::Application.fatal!("HDFS NameNode HA requires node['hadoop']['hdfs_site']['dfs.nameservices'] to be set")
      26: end
      27:
      28: # We have dfs.nameservices, and now need to check them
      29: dfs_nameservices.each do |ns|
      30: # Start namenode checks
      31: next unless node['hadoop']['hdfs_site'].key?("dfs\.ha\.namenodes\.#

      {ns}")
      32: # We need two and only two NameNodes
      33: namenodes = node['hadoop']['hdfs_site']["dfs\.ha\.namenodes\.#{ns}

      "].split(',')
      34: if namenodes.size != 2

      System Info:
      ------------
      chef_version=13.2.20
      platform=ubuntu
      platform_version=14.04
      ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
      program_name=chef-client worker: ppid=8621;start=17:59:14;
      executable=/opt/chefdk/bin/chef-client

      Running handlers:
      [2017-08-22T17:59:15+05:30] ERROR: Running exception handlers
      Running handlers complete
      [2017-08-22T17:59:15+05:30] ERROR: Exception handlers complete
      Chef Client failed. 0 resources updated in 01 seconds
      [2017-08-22T17:59:15+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
      [2017-08-22T17:59:15+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
      [2017-08-22T17:59:15+05:30] ERROR: exit
      [2017-08-22T17:59:15+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

        Attachments

          Activity

            People

            • Assignee:
              Derek Wood
              Reporter:
              saif ahmad
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: