Permalink
Browse files

Merge branch 'master' of https://github.com/dellcloudedge/barclamp-cl…

  • Loading branch information...
2 parents 8df1099 + 8be0a05 commit e6bb9cd2acafc496361cbc3d4f281e133d3d1a3f Paul Webster committed Apr 6, 2012
View
@@ -69,6 +69,24 @@ locale_additions:
proposal: Proposal
description: Provides end-to-end management for Apache Hadoop with the ability to deploy and centrally operate a complete Hadoop stack. Gives you a cluster wide, real time view of nodes and services running and provides a single central place to enact configuration changes across your cluster. Cloudera Manager incorporates a full range of reporting and diagnostic tools to help you optimize cluster performance and utilization.
instructions: Apply proposals in order from top to bottom. Allow each proposal to enter ready state before applying the next one.
+ nodes:
+ export: Export to CSV
+ title: Cloudera Node Inventory
+ name: Name
+ cb_role: Crowbar Role
+ cm_role: Cloudera Manager Role
+ ip_addr: IP Address
+ alias: Alias
+ cpu: CPU
+ ram: RAM
+ drives: Drives
+ edge_node: Cloudera Edge Node
+ master_name_node: Cloudera Master Name Node
+ management_node: Cloudera Management Node
+ secondary_name_node: Cloudera Secondary Name Node
+ web_app_node: Cloudera Web App Node
+ slave_nodes: Cloudera Slave Nodes
+
rpms:
redhat-5.7:
@@ -155,3 +173,7 @@ build_cmd: build-jdk.sh
smoketest:
timeout: 900
+
+git:
+ date: Sat Mar 24 13:09:33 2012 -0700
+ commit: 577fb16cdd0469657b9e9a33d40114ebec907899
@@ -21,5 +21,17 @@ class ClouderamanagerController < BarclampController
def initialize
@service_object = ClouderamanagerService.new logger
end
+
+ def nodes
+ nodeswithroles= NodeObject.all.find_all{ |n| n.roles != nil}
+ @cmedgenodes = nodeswithroles.find_all{ |n| n.roles.include?("clouderamanager-edgenode" )}
+ @cmmasternamenodes = nodeswithroles.find_all{ |n| n.roles.include?("clouderamanager-masternamenode" )}
+ @cmmgmtnamenodes = nodeswithroles.find_all{ |n| n.roles.include?("clouderamanager-mgmtservices" )}
+ @cmsecondarynamenodenamenodes = nodeswithroles.find_all{ |n| n.roles.include?("clouderamanager-secondarynamenode" )}
+ @cmslavenodes = nodeswithroles.find_all{ |n| n.roles.include?("clouderamanager-slavenode" )}
+ @cmwebappnodes = nodeswithroles.find_all{ |n| n.roles.include?("clouderamanager-webapp" )}
+ render :template => 'barclamp/clouderamanager/nodes'
+ end
+
end
@@ -1,4 +1,5 @@
-
+%h3 Display the node information for Cloudera Manager discovery
+= link_to( "Cloudera Manager nodes", "nodes")
%p
= render :partial => "barclamp/node_selector"
@@ -0,0 +1,112 @@
+%p{:style => 'float:right'}
+ = link_to t('.export'), nodes_barclamp_path(:controller=>'dell', :format=>'text'), :class => 'button'
+%h1= t('.title')
+
+%h4= t('.edge_node')
+%table.data.box
+ %thead
+ %tr
+ %th= t('.ip_addr')
+ %th= t('.name')
+ %th= t('.cpu')
+ %th= t('.ram')
+ %th= t('.drives')
+ %tbody
+ - @cmedgenodes.sort_by{|n| n.alias }.each do |node|
+ %tr.node{ :class => cycle(:odd, :even, :name => "nodes"), :id => node.alias }
+ %td= node.ip
+ %td= link_to node.name, node_path(node.handle)
+ %td= node.cpu
+ %td= format_memory(node.memory)
+ %td= node.number_of_drives
+
+%h4=t('.master_name_node')
+%table.data.box
+ %thead
+ %tr
+ %th= t('.ip_addr')
+ %th= t('.name')
+ %th= t('.cpu')
+ %th= t('.ram')
+ %th= t('.drives')
+ %tbody
+ - @cmmasternamenodes.sort_by{|n| n.alias }.each do |node|
+ %tr.node{ :class => cycle(:odd, :even, :name => "nodes"), :id => node.alias }
+ %td= node.ip
+ %td= link_to node.name, node_path(node.handle)
+ %td= node.cpu
+ %td= format_memory(node.memory)
+ %td= node.number_of_drives
+
+%h4= t('.management_node')
+%table.data.box
+ %thead
+ %tr
+ %th= t('.ip_addr')
+ %th= t('.name')
+ %th= t('.cpu')
+ %th= t('.ram')
+ %th= t('.drives')
+ %tbody
+ - @cmmgmtnamenodes.sort_by{|n| n.alias }.each do |node|
+ %tr.node{ :class => cycle(:odd, :even, :name => "nodes"), :id => node.alias }
+ %td= node.ip
+ %td= link_to node.name, node_path(node.handle)
+ %td= node.cpu
+ %td= format_memory(node.memory)
+ %td= node.number_of_drives
+
+%h4= t('.secondary_name_node')
+%table.data.box
+ %thead
+ %tr
+ %th= t('.ip_addr')
+ %th= t('.name')
+ %th= t('.cpu')
+ %th= t('.ram')
+ %th= t('.drives')
+ %tbody
+ - @cmsecondarynamenodenamenodes.sort_by{|n| n.alias }.each do |node|
+ %tr.node{ :class => cycle(:odd, :even, :name => "nodes"), :id => node.alias }
+ %td= node.ip
+ %td= link_to node.name, node_path(node.handle)
+ %td= node.cpu
+ %td= format_memory(node.memory)
+ %td= node.number_of_drives
+
+%h4= t('.web_app_node')
+%table.data.box
+ %thead
+ %tr
+ %th= t('.ip_addr')
+ %th= t('.name')
+ %th= t('.cpu')
+ %th= t('.ram')
+ %th= t('.drives')
+ %tbody
+ - @cmwebappnodes.sort_by{|n| n.alias }.each do |node|
+ %tr.node{ :class => cycle(:odd, :even, :name => "nodes"), :id => node.alias }
+ %td= node.ip
+ %td= link_to node.name, node_path(node.handle)
+ %td= node.cpu
+ %td= format_memory(node.memory)
+ %td= node.number_of_drives
+
+%h4=t('.slave_nodes')
+%table.data.box
+ %thead
+ %tr
+ %th= t('.ip_addr')
+ %th= t('.name')
+ %th= t('.cpu')
+ %th= t('.ram')
+ %th= t('.drives')
+ %tbody
+ - @cmslavenodes.sort_by{|n| n.alias }.each do |node|
+ %tr.node{ :class => cycle(:odd, :even, :name => "nodes"), :id => node.alias }
+ %td= node.ip
+ %td= link_to node.name, node_path(node.handle)
+ %td= node.cpu
+ %td= format_memory(node.memory)
+ %td= node.number_of_drives
+

0 comments on commit e6bb9cd

Please sign in to comment.