You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2012/12/09 15:00:38 UTC
svn commit: r1418960 [4/6] - in
/incubator/ambari/branches/AMBARI-666/ambari-web/app: ./
assets/data/apps/jobs/ assets/data/dashboard/mapreduce/ assets/data/hosts/
controllers/ controllers/main/admin/
controllers/main/charts/heatmap_metrics/ controller...
Added: incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_start.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_start.json?rev=1418960&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_start.json (added)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_start.json Sun Dec 9 14:00:34 2012
@@ -0,0 +1,370 @@
+{
+ "href" : "http://localhost:8080/api/clusters/mycluster/services?ServiceInfo/service_name=MAPREDUCE&fields=components/host_components/*",
+ "items" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE",
+ "ServiceInfo" : {
+ "cluster_name" : "mycluster",
+ "service_name" : "MAPREDUCE"
+ },
+ "components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "service_name" : "MAPREDUCE"
+ },
+ "host_components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "configs" : "{}",
+ "cluster_name" : "mycluster",
+ "desired_configs" : "{}",
+ "desired_state" : "STARTED",
+ "state" : "STARTED",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ },
+ "component" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "service_name" : "MAPREDUCE"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "service_name" : "MAPREDUCE"
+ },
+ "host_components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "configs" : "{\"mapred-site\":\"version1\",\"global\":\"version1\",\"core-site\":\"version1\"}",
+ "cluster_name" : "mycluster",
+ "desired_configs" : "{}",
+ "desired_state" : "STARTED",
+ "state" : "STARTED",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ },
+ "metrics" : {
+ "boottime" : 1.353113263E9,
+ "process" : {
+ "proc_total" : 542.4,
+ "proc_run" : 1.04722222222
+ },
+ "rpc" : {
+ "rpcAuthorizationSuccesses" : 0.0,
+ "SentBytes" : 355.647619048,
+ "rpcAuthorizationFailures" : 0.0,
+ "ReceivedBytes" : 1040.35238095,
+ "NumOpenConnections" : 0.0,
+ "callQueueLen" : 0.0,
+ "rpcAuthenticationSuccesses" : 0.0,
+ "RpcQueueTime_num_ops" : 3.32380952381,
+ "RpcProcessingTime_num_ops" : 3.32380952381,
+ "RpcProcessingTime_avg_time" : 0.142915649166,
+ "rpcAuthenticationFailures" : 0.0,
+ "RpcQueueTime_avg_time" : 0.0767488298738
+ },
+ "ugi" : {
+ "loginSuccess_num_ops" : 0.0,
+ "loginFailure_num_ops" : 0.0,
+ "loginSuccess_avg_time" : 0.0,
+ "loginFailure_avg_time" : 0.0
+ },
+ "mapred" : {
+ "Queue" : {
+ "maps_killed" : 0.0,
+ "reduces_killed" : 0.0,
+ "jobs_failed" : 0.0,
+ "reduces_completed" : 0.0,
+ "running_0" : 0.0,
+ "reduces_failed" : 0.0,
+ "reserved_map_slots" : 0.0,
+ "jobs_completed" : 0.0,
+ "waiting_maps" : 0.0,
+ "running_1440" : 0.0,
+ "maps_completed" : 0.0,
+ "jobs_preparing" : 0.0,
+ "jobs_submitted" : 0.0,
+ "reserved_reduce_slots" : 0.0,
+ "jobs_running" : 0.0,
+ "running_300" : 0.0,
+ "maps_launched" : 0.0,
+ "reduces_launched" : 0.0,
+ "running_60" : 0.0,
+ "waiting_reduces" : 0.0,
+ "maps_failed" : 0.0,
+ "jobs_killed" : 0.0
+ },
+ "jobtracker" : {
+ "blacklisted_maps" : 0.0,
+ "running_maps" : 0.0,
+ "jobs_failed" : 0.0,
+ "waiting_maps" : 0.0,
+ "maps_completed" : 0.0,
+ "trackers" : 1.0,
+ "jobs_submitted" : 0.0,
+ "map_slots" : 4.0,
+ "reserved_reduce_slots" : 0.0,
+ "trackers_graylisted" : 0.0,
+ "heartbeats" : 3.32380952381,
+ "jobs_running" : 0.0,
+ "blacklisted_reduces" : 0.0,
+ "maps_launched" : 0.0,
+ "occupied_map_slots" : 0.0,
+ "reduces_launched" : 0.0,
+ "jobs_killed" : 0.0,
+ "maps_failed" : 0.0,
+ "maps_killed" : 0.0,
+ "reduce_slots" : 2.0,
+ "reduces_killed" : 0.0,
+ "reduces_completed" : 0.0,
+ "jobs_completed" : 0.0,
+ "reserved_map_slots" : 0.0,
+ "trackers_decommissioned" : 0.0,
+ "reduces_failed" : 0.0,
+ "trackers_blacklisted" : 0.0,
+ "jobs_preparing" : 0.0,
+ "running_reduces" : 0.0,
+ "occupied_reduce_slots" : 0.0,
+ "waiting_reduces" : 0.0
+ }
+ },
+ "disk" : {
+ "disk_total" : 101.515,
+ "disk_free" : 93.4107777778,
+ "part_max_used" : 12.8
+ },
+ "cpu" : {
+ "cpu_speed" : 1986.0,
+ "cpu_wio" : 0.510555555556,
+ "cpu_num" : 1.0,
+ "cpu_idle" : 45.9291666667,
+ "cpu_nice" : 0.0,
+ "cpu_aidle" : 0.0,
+ "cpu_system" : 6.88277777778,
+ "cpu_user" : 46.6838888889
+ },
+ "rpcdetailed" : {
+ "getJobProfile_num_ops" : 0.0,
+ "getStagingAreaDir_num_ops" : 0.0,
+ "getProtocolVersion_avg_time" : 0.0,
+ "getBuildVersion_avg_time" : 0.0,
+ "getBuildVersion_num_ops" : 0.0,
+ "getNewJobId_avg_time" : 0.0,
+ "getQueueAdmins_num_ops" : 0.0,
+ "getSystemDir_num_ops" : 0.0,
+ "getTaskCompletionEvents_num_ops" : 0.0,
+ "getJobProfile_avg_time" : 0.0,
+ "submitJob_num_ops" : 0.0,
+ "getStagingAreaDir_avg_time" : 2.0,
+ "getNewJobId_num_ops" : 0.0,
+ "getJobCounters_num_ops" : 0.0,
+ "getTaskCompletionEvents_avg_time" : 0.111111111111,
+ "getProtocolVersion_num_ops" : 0.0,
+ "submitJob_avg_time" : 312.0,
+ "getSystemDir_avg_time" : 0.0,
+ "getJobStatus_num_ops" : 0.0,
+ "getJobCounters_avg_time" : 0.0,
+ "getQueueAdmins_avg_time" : 0.0,
+ "heartbeat_num_ops" : 3.32380952381,
+ "heartbeat_avg_time" : 0.142915649166,
+ "getJobStatus_avg_time" : 0.0
+ },
+ "load" : {
+ "load_fifteen" : 0.8845,
+ "load_one" : 0.516833333333,
+ "load_five" : 0.740888888889
+ },
+ "jvm" : {
+ "memHeapCommittedM" : 185.1875,
+ "logFatal" : 0.0,
+ "threadsBlocked" : 0.0,
+ "threadsWaiting" : 19.0,
+ "gcCount" : 0.00277777777778,
+ "logWarn" : 0.0,
+ "logError" : 0.0,
+ "memNonHeapCommittedM" : 23.75,
+ "gcTimeMillis" : 0.641666666667,
+ "memNonHeapUsedM" : 23.1303326472,
+ "logInfo" : 0.0,
+ "threadsNew" : 0.0,
+ "memHeapUsedM" : 101.890453742,
+ "threadsTerminated" : 0.0,
+ "threadsTimedWaiting" : 10.0,
+ "threadsRunnable" : 6.0
+ },
+ "network" : {
+ "pkts_out" : 0.455111111111,
+ "bytes_in" : 50.645,
+ "bytes_out" : 119.762888889,
+ "pkts_in" : 0.411222222222
+ },
+ "memory" : {
+ "mem_total" : 2054932.0,
+ "swap_free" : 4074713.26667,
+ "mem_buffers" : 13563.6333333,
+ "mem_shared" : 0.0,
+ "mem_cached" : 175195.088889,
+ "mem_free" : 117578.155556,
+ "swap_total" : 4128760.0
+ }
+ },
+ "component" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "service_name" : "MAPREDUCE"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "service_name" : "MAPREDUCE"
+ },
+ "host_components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "configs" : "{\"mapred-site\":\"version1\",\"global\":\"version1\",\"core-site\":\"version1\"}",
+ "cluster_name" : "mycluster",
+ "desired_configs" : "{}",
+ "desired_state" : "STARTED",
+ "state" : "STARTED",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ },
+ "metrics" : {
+ "boottime" : 1.353113263E9,
+ "process" : {
+ "proc_total" : 542.625,
+ "proc_run" : 1.81944444444
+ },
+ "rpc" : {
+ "rpcAuthorizationSuccesses" : 7.15827882667E7,
+ "SentBytes" : 7.15827882667E7,
+ "rpcAuthorizationFailures" : 0.0,
+ "ReceivedBytes" : 7.15827882667E7,
+ "NumOpenConnections" : 0.0,
+ "callQueueLen" : 0.0,
+ "rpcAuthenticationSuccesses" : 0.0,
+ "RpcQueueTime_num_ops" : 7.15827882667E7,
+ "RpcProcessingTime_num_ops" : 7.15827882667E7,
+ "RpcProcessingTime_avg_time" : 0.151111111111,
+ "rpcAuthenticationFailures" : 0.0,
+ "RpcQueueTime_avg_time" : 0.151111111111
+ },
+ "ugi" : {
+ "loginSuccess_num_ops" : 0.0,
+ "loginFailure_num_ops" : 0.0,
+ "loginSuccess_avg_time" : 0.0,
+ "loginFailure_avg_time" : 0.0
+ },
+ "mapred" : {
+ "shuffleOutput" : {
+ "shuffle_handler_busy_percent" : 0.0
+ },
+ "tasktracker" : {
+ "reduces_running" : 0.0,
+ "maps_running" : 0.0,
+ "reduceTaskSlots" : 2.0,
+ "mapTaskSlots" : 4.0
+ }
+ },
+ "disk" : {
+ "disk_total" : 101.515,
+ "disk_free" : 93.4107777778,
+ "part_max_used" : 12.8
+ },
+ "cpu" : {
+ "cpu_speed" : 1986.0,
+ "cpu_wio" : 0.519444444444,
+ "cpu_num" : 1.0,
+ "cpu_idle" : 46.9705555556,
+ "cpu_nice" : 0.0,
+ "cpu_aidle" : 0.0,
+ "cpu_system" : 6.75972222222,
+ "cpu_user" : 45.7563888889
+ },
+ "rpcdetailed" : {
+ "getProtocolVersion_avg_time" : 0.0,
+ "getProtocolVersion_num_ops" : 4
+ },
+ "load" : {
+ "load_fifteen" : 0.882305555556,
+ "load_one" : 0.523944444444,
+ "load_five" : 0.739694444444
+ },
+ "jvm" : {
+ "memHeapCommittedM" : 30.375,
+ "logFatal" : 0.0,
+ "threadsBlocked" : 0.0,
+ "threadsWaiting" : 14.5333333333,
+ "gcCount" : 7.15827883321E7,
+ "logWarn" : 0.0,
+ "logError" : 0.0,
+ "memNonHeapCommittedM" : 23.1875,
+ "gcTimeMillis" : 7.15827883254E7,
+ "memNonHeapUsedM" : 21.7573377917,
+ "logInfo" : 0.0,
+ "threadsNew" : 0.0,
+ "memHeapUsedM" : 7.07001514861,
+ "threadsTerminated" : 0.0,
+ "threadsTimedWaiting" : 8.71666666667,
+ "threadsRunnable" : 6.26666666667
+ },
+ "network" : {
+ "pkts_out" : 0.453888888889,
+ "bytes_in" : 50.5375,
+ "bytes_out" : 119.456111111,
+ "pkts_in" : 0.410277777778
+ },
+ "memory" : {
+ "mem_total" : 2054932.0,
+ "swap_free" : 4074707.96667,
+ "mem_buffers" : 13563.6555556,
+ "mem_shared" : 0.0,
+ "mem_cached" : 175260.0,
+ "mem_free" : 115051.811111,
+ "swap_total" : 4128760.0
+ }
+ },
+ "component" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "service_name" : "MAPREDUCE"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
Added: incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_stop.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_stop.json?rev=1418960&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_stop.json (added)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/dashboard/mapreduce/mapreduce_stop.json Sun Dec 9 14:00:34 2012
@@ -0,0 +1,370 @@
+{
+ "href" : "http://localhost:8080/api/clusters/mycluster/services?ServiceInfo/service_name=MAPREDUCE&fields=components/host_components/*",
+ "items" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE",
+ "ServiceInfo" : {
+ "cluster_name" : "mycluster",
+ "service_name" : "MAPREDUCE"
+ },
+ "components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "service_name" : "MAPREDUCE"
+ },
+ "host_components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "configs" : "{}",
+ "cluster_name" : "mycluster",
+ "desired_configs" : "{}",
+ "desired_state" : "INSTALLED",
+ "state" : "INSTALLED",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ },
+ "component" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/MAPREDUCE_CLIENT",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "service_name" : "MAPREDUCE"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "service_name" : "MAPREDUCE"
+ },
+ "host_components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "configs" : "{\"mapred-site\":\"version1\",\"global\":\"version1\",\"core-site\":\"version1\"}",
+ "cluster_name" : "mycluster",
+ "desired_configs" : "{}",
+ "desired_state" : "INSTALLED",
+ "state" : "INSTALLED",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ },
+ "metrics" : {
+ "boottime" : 1.353113263E9,
+ "process" : {
+ "proc_total" : 542.4,
+ "proc_run" : 1.04722222222
+ },
+ "rpc" : {
+ "rpcAuthorizationSuccesses" : 0.0,
+ "SentBytes" : 355.647619048,
+ "rpcAuthorizationFailures" : 0.0,
+ "ReceivedBytes" : 1040.35238095,
+ "NumOpenConnections" : 0.0,
+ "callQueueLen" : 0.0,
+ "rpcAuthenticationSuccesses" : 0.0,
+ "RpcQueueTime_num_ops" : 3.32380952381,
+ "RpcProcessingTime_num_ops" : 3.32380952381,
+ "RpcProcessingTime_avg_time" : 0.142915649166,
+ "rpcAuthenticationFailures" : 0.0,
+ "RpcQueueTime_avg_time" : 0.0767488298738
+ },
+ "ugi" : {
+ "loginSuccess_num_ops" : 0.0,
+ "loginFailure_num_ops" : 0.0,
+ "loginSuccess_avg_time" : 0.0,
+ "loginFailure_avg_time" : 0.0
+ },
+ "mapred" : {
+ "Queue" : {
+ "maps_killed" : 0.0,
+ "reduces_killed" : 0.0,
+ "jobs_failed" : 0.0,
+ "reduces_completed" : 0.0,
+ "running_0" : 0.0,
+ "reduces_failed" : 0.0,
+ "reserved_map_slots" : 0.0,
+ "jobs_completed" : 0.0,
+ "waiting_maps" : 0.0,
+ "running_1440" : 0.0,
+ "maps_completed" : 0.0,
+ "jobs_preparing" : 0.0,
+ "jobs_submitted" : 0.0,
+ "reserved_reduce_slots" : 0.0,
+ "jobs_running" : 0.0,
+ "running_300" : 0.0,
+ "maps_launched" : 0.0,
+ "reduces_launched" : 0.0,
+ "running_60" : 0.0,
+ "waiting_reduces" : 0.0,
+ "maps_failed" : 0.0,
+ "jobs_killed" : 0.0
+ },
+ "jobtracker" : {
+ "blacklisted_maps" : 0.0,
+ "running_maps" : 0.0,
+ "jobs_failed" : 0.0,
+ "waiting_maps" : 0.0,
+ "maps_completed" : 0.0,
+ "trackers" : 1.0,
+ "jobs_submitted" : 0.0,
+ "map_slots" : 4.0,
+ "reserved_reduce_slots" : 0.0,
+ "trackers_graylisted" : 0.0,
+ "heartbeats" : 3.32380952381,
+ "jobs_running" : 0.0,
+ "blacklisted_reduces" : 0.0,
+ "maps_launched" : 0.0,
+ "occupied_map_slots" : 0.0,
+ "reduces_launched" : 0.0,
+ "jobs_killed" : 0.0,
+ "maps_failed" : 0.0,
+ "maps_killed" : 0.0,
+ "reduce_slots" : 2.0,
+ "reduces_killed" : 0.0,
+ "reduces_completed" : 0.0,
+ "jobs_completed" : 0.0,
+ "reserved_map_slots" : 0.0,
+ "trackers_decommissioned" : 0.0,
+ "reduces_failed" : 0.0,
+ "trackers_blacklisted" : 0.0,
+ "jobs_preparing" : 0.0,
+ "running_reduces" : 0.0,
+ "occupied_reduce_slots" : 0.0,
+ "waiting_reduces" : 0.0
+ }
+ },
+ "disk" : {
+ "disk_total" : 101.515,
+ "disk_free" : 93.4107777778,
+ "part_max_used" : 12.8
+ },
+ "cpu" : {
+ "cpu_speed" : 1986.0,
+ "cpu_wio" : 0.510555555556,
+ "cpu_num" : 1.0,
+ "cpu_idle" : 45.9291666667,
+ "cpu_nice" : 0.0,
+ "cpu_aidle" : 0.0,
+ "cpu_system" : 6.88277777778,
+ "cpu_user" : 46.6838888889
+ },
+ "rpcdetailed" : {
+ "getJobProfile_num_ops" : 0.0,
+ "getStagingAreaDir_num_ops" : 0.0,
+ "getProtocolVersion_avg_time" : 0.0,
+ "getBuildVersion_avg_time" : 0.0,
+ "getBuildVersion_num_ops" : 0.0,
+ "getNewJobId_avg_time" : 0.0,
+ "getQueueAdmins_num_ops" : 0.0,
+ "getSystemDir_num_ops" : 0.0,
+ "getTaskCompletionEvents_num_ops" : 0.0,
+ "getJobProfile_avg_time" : 0.0,
+ "submitJob_num_ops" : 0.0,
+ "getStagingAreaDir_avg_time" : 2.0,
+ "getNewJobId_num_ops" : 0.0,
+ "getJobCounters_num_ops" : 0.0,
+ "getTaskCompletionEvents_avg_time" : 0.111111111111,
+ "getProtocolVersion_num_ops" : 0.0,
+ "submitJob_avg_time" : 312.0,
+ "getSystemDir_avg_time" : 0.0,
+ "getJobStatus_num_ops" : 0.0,
+ "getJobCounters_avg_time" : 0.0,
+ "getQueueAdmins_avg_time" : 0.0,
+ "heartbeat_num_ops" : 3.32380952381,
+ "heartbeat_avg_time" : 0.142915649166,
+ "getJobStatus_avg_time" : 0.0
+ },
+ "load" : {
+ "load_fifteen" : 0.8845,
+ "load_one" : 0.516833333333,
+ "load_five" : 0.740888888889
+ },
+ "jvm" : {
+ "memHeapCommittedM" : 185.1875,
+ "logFatal" : 0.0,
+ "threadsBlocked" : 0.0,
+ "threadsWaiting" : 19.0,
+ "gcCount" : 0.00277777777778,
+ "logWarn" : 0.0,
+ "logError" : 0.0,
+ "memNonHeapCommittedM" : 23.75,
+ "gcTimeMillis" : 0.641666666667,
+ "memNonHeapUsedM" : 23.1303326472,
+ "logInfo" : 0.0,
+ "threadsNew" : 0.0,
+ "memHeapUsedM" : 101.890453742,
+ "threadsTerminated" : 0.0,
+ "threadsTimedWaiting" : 10.0,
+ "threadsRunnable" : 6.0
+ },
+ "network" : {
+ "pkts_out" : 0.455111111111,
+ "bytes_in" : 50.645,
+ "bytes_out" : 119.762888889,
+ "pkts_in" : 0.411222222222
+ },
+ "memory" : {
+ "mem_total" : 2054932.0,
+ "swap_free" : 4074713.26667,
+ "mem_buffers" : 13563.6333333,
+ "mem_shared" : 0.0,
+ "mem_cached" : 175195.088889,
+ "mem_free" : 117578.155556,
+ "swap_total" : 4128760.0
+ }
+ },
+ "component" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/JOBTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "service_name" : "MAPREDUCE"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "service_name" : "MAPREDUCE"
+ },
+ "host_components" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "configs" : "{\"mapred-site\":\"version1\",\"global\":\"version1\",\"core-site\":\"version1\"}",
+ "cluster_name" : "mycluster",
+ "desired_configs" : "{}",
+ "desired_state" : "INSTALLED",
+ "state" : "INSTALLED",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ },
+ "metrics" : {
+ "boottime" : 1.353113263E9,
+ "process" : {
+ "proc_total" : 542.625,
+ "proc_run" : 1.81944444444
+ },
+ "rpc" : {
+ "rpcAuthorizationSuccesses" : 7.15827882667E7,
+ "SentBytes" : 7.15827882667E7,
+ "rpcAuthorizationFailures" : 0.0,
+ "ReceivedBytes" : 7.15827882667E7,
+ "NumOpenConnections" : 0.0,
+ "callQueueLen" : 0.0,
+ "rpcAuthenticationSuccesses" : 0.0,
+ "RpcQueueTime_num_ops" : 7.15827882667E7,
+ "RpcProcessingTime_num_ops" : 7.15827882667E7,
+ "RpcProcessingTime_avg_time" : 0.151111111111,
+ "rpcAuthenticationFailures" : 0.0,
+ "RpcQueueTime_avg_time" : 0.151111111111
+ },
+ "ugi" : {
+ "loginSuccess_num_ops" : 0.0,
+ "loginFailure_num_ops" : 0.0,
+ "loginSuccess_avg_time" : 0.0,
+ "loginFailure_avg_time" : 0.0
+ },
+ "mapred" : {
+ "shuffleOutput" : {
+ "shuffle_handler_busy_percent" : 0.0
+ },
+ "tasktracker" : {
+ "reduces_running" : 0.0,
+ "maps_running" : 0.0,
+ "reduceTaskSlots" : 2.0,
+ "mapTaskSlots" : 4.0
+ }
+ },
+ "disk" : {
+ "disk_total" : 101.515,
+ "disk_free" : 93.4107777778,
+ "part_max_used" : 12.8
+ },
+ "cpu" : {
+ "cpu_speed" : 1986.0,
+ "cpu_wio" : 0.519444444444,
+ "cpu_num" : 1.0,
+ "cpu_idle" : 46.9705555556,
+ "cpu_nice" : 0.0,
+ "cpu_aidle" : 0.0,
+ "cpu_system" : 6.75972222222,
+ "cpu_user" : 45.7563888889
+ },
+ "rpcdetailed" : {
+ "getProtocolVersion_avg_time" : 0.0,
+ "getProtocolVersion_num_ops" : 4
+ },
+ "load" : {
+ "load_fifteen" : 0.882305555556,
+ "load_one" : 0.523944444444,
+ "load_five" : 0.739694444444
+ },
+ "jvm" : {
+ "memHeapCommittedM" : 30.375,
+ "logFatal" : 0.0,
+ "threadsBlocked" : 0.0,
+ "threadsWaiting" : 14.5333333333,
+ "gcCount" : 7.15827883321E7,
+ "logWarn" : 0.0,
+ "logError" : 0.0,
+ "memNonHeapCommittedM" : 23.1875,
+ "gcTimeMillis" : 7.15827883254E7,
+ "memNonHeapUsedM" : 21.7573377917,
+ "logInfo" : 0.0,
+ "threadsNew" : 0.0,
+ "memHeapUsedM" : 7.07001514861,
+ "threadsTerminated" : 0.0,
+ "threadsTimedWaiting" : 8.71666666667,
+ "threadsRunnable" : 6.26666666667
+ },
+ "network" : {
+ "pkts_out" : 0.453888888889,
+ "bytes_in" : 50.5375,
+ "bytes_out" : 119.456111111,
+ "pkts_in" : 0.410277777778
+ },
+ "memory" : {
+ "mem_total" : 2054932.0,
+ "swap_free" : 4074707.96667,
+ "mem_buffers" : 13563.6555556,
+ "mem_shared" : 0.0,
+ "mem_cached" : 175260.0,
+ "mem_free" : 115051.811111,
+ "swap_total" : 4128760.0
+ }
+ },
+ "component" : [
+ {
+ "href" : "http://localhost:8080/api/clusters/mycluster/services/MAPREDUCE/components/TASKTRACKER",
+ "ServiceComponentInfo" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "service_name" : "MAPREDUCE"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json?rev=1418960&r1=1418959&r2=1418960&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/assets/data/hosts/hosts.json Sun Dec 9 14:00:34 2012
@@ -7,7 +7,7 @@
"cpu_count" : 1,
"cluster_name" : "mycluster",
"last_registration_time" : 1352386560520,
- "rack_info" : "/default-rack",
+ "rack_info" : "/default-rack2",
"total_mem" : 3082813,
"os_arch" : "x86_64",
"host_name" : "dev1.hortonworks.com",
@@ -83,7 +83,7 @@
"cluster_name" : "mycluster",
"last_registration_time" : 1352386560520,
"rack_info" : "/default-rack",
- "total_mem" : 3082813,
+ "total_mem" : 3086813,
"os_arch" : "x86_64",
"host_name" : "dev2.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
@@ -154,10 +154,10 @@
"href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev3.hortonworks.com",
"Hosts" : {
- "cpu_count" : 1,
+ "cpu_count" : 16,
"cluster_name" : "mycluster",
"last_registration_time" : 1352386560520,
- "rack_info" : "/default-rack",
+ "rack_info" : "/default-rack3",
"total_mem" : 3082813,
"os_arch" : "x86_64",
"host_name" : "dev3.hortonworks.com",
@@ -224,6 +224,666 @@
}
}
]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 5,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack8",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com2",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 2,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack1",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com3",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com4",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 3,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com5",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com6",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 2,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com7",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 3,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com8",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 2,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com9",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 3,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com10",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 4,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev.hortonworks.com11",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : [
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "SECONDARY_NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "JOBTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "HDFS_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "TASKTRACKER",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "NAMENODE",
+ "host_name" : "dev.hortonworks.com"
+ }
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
+ "HostRoles" : {
+ "cluster_name" : "mycluster",
+ "component_name" : "MAPREDUCE_CLIENT",
+ "host_name" : "dev.hortonworks.com"
+ }
+ }
+ ]
}
]
}
\ No newline at end of file
Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js?rev=1418960&r1=1418959&r2=1418960&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/installer.js Sun Dec 9 14:00:34 2012
@@ -238,7 +238,8 @@ App.InstallerController = Em.Controller.
var cluster = {
name: App.db.getClusterName() || "",
status: cStatus.status,
- isCompleted: cStatus.isCompleted
+ isCompleted: cStatus.isCompleted,
+ requestId: cStatus.requestId
};
this.set('content.cluster', cluster);
@@ -513,28 +514,28 @@ App.InstallerController = Em.Controller.
dataNodeHosts.push({
hostName: host.hostName,
group: 'Default',
- isInstalled : false
+ isInstalled: false
});
}
if (isMrSelected && host.get('isTaskTracker')) {
taskTrackerHosts.push({
hostName: host.hostName,
group: 'Default',
- isInstalled : false
+ isInstalled: false
});
}
if (isHbSelected && host.get('isRegionServer')) {
regionServerHosts.push({
hostName: host.hostName,
group: 'Default',
- isInstalled : false
+ isInstalled: false
});
}
if (host.get('isClient')) {
clientHosts.pushObject({
hostName: host.hostName,
group: 'Default',
- isInstalled : false
+ isInstalled: false
});
}
}, this);
@@ -587,10 +588,10 @@ App.InstallerController = Em.Controller.
var serviceConfigProperties = [];
stepController.get('stepConfigs').forEach(function (_content) {
_content.get('configs').forEach(function (_configProperties) {
- var displayType = _configProperties.get('displayType');
- if(displayType === 'directories' || displayType === 'directory') {
+ var displayType = _configProperties.get('displayType');
+ if (displayType === 'directories' || displayType === 'directory') {
var value = _configProperties.get('value').split(/\s+/g).join(',');
- _configProperties.set('value',value);
+ _configProperties.set('value', value);
}
var configProperty = {
id: _configProperties.get('id'),
@@ -720,9 +721,13 @@ App.InstallerController = Em.Controller.
},
loadAdvancedConfigs: function () {
+ var configs = [];
App.db.getSelectedServiceNames().forEach(function (_serviceName) {
- this.loadAdvancedConfig(_serviceName);
+ var serviceComponents = this.loadAdvancedConfig(_serviceName);
+ configs = configs.concat(serviceComponents);
}, this);
+ this.set('content.advancedServiceConfig', configs);
+ App.db.setAdvancedServiceConfig(configs);
},
/**
* Generate serviceProperties save it to localdata
@@ -733,6 +738,7 @@ App.InstallerController = Em.Controller.
var self = this;
var url = (App.testMode) ? '/data/wizard/stack/hdp/version01/' + serviceName + '.json' : App.apiPrefix + '/stacks/HDP/version/1.2.0/services/' + serviceName; // TODO: get this url from the stack selected by the user in Install Options page
var method = 'GET';
+ var serviceComponents;
$.ajax({
type: method,
url: url,
@@ -743,17 +749,8 @@ App.InstallerController = Em.Controller.
var jsonData = jQuery.parseJSON(data);
console.log("TRACE: Step6 submit -> In success function for the loadAdvancedConfig call");
console.log("TRACE: Step6 submit -> value of the url is: " + url);
- var serviceComponents = jsonData.properties;
+ serviceComponents = jsonData.properties;
serviceComponents.setEach('serviceName', serviceName);
- var configs;
- if (App.db.getAdvancedServiceConfig()) {
- configs = App.db.getAdvancedServiceConfig();
- } else {
- configs = [];
- }
- configs = configs.concat(serviceComponents);
- self.set('content.advancedServiceConfig', configs);
- App.db.setAdvancedServiceConfig(configs);
console.log('TRACE: servicename: ' + serviceName);
},
@@ -766,6 +763,7 @@ App.InstallerController = Em.Controller.
statusCode: require('data/statusCodes')
});
+ return serviceComponents;
},
/**
@@ -812,11 +810,12 @@ App.InstallerController = Em.Controller.
console.log("TRACE: STep8 -> value of the url is: " + url);
console.log("TRACE: STep8 -> error code status is: " + request.status);
console.log('Step8: Error message is: ' + request.responseText);
- var clusterStatus = {
- status: 'PENDING',
- isInstallError: true,
- isCompleted: false
- };
+ var clusterStatus = {
+ status: 'PENDING',
+ isInstallError: false,
+ isCompleted: false
+ };
+
self.saveClusterStatus(clusterStatus);
},
@@ -828,12 +827,13 @@ App.InstallerController = Em.Controller.
/**
* Clear all temporary data
*/
- finish: function(){
+ finish: function () {
this.setCurrentStep('1', false);
App.db.setService(undefined); //not to use this data at AddService page
App.db.setHosts(undefined);
App.db.setMasterComponentHosts(undefined);
App.db.setSlaveComponentHosts(undefined);
+ App.db.setClusterStatus(undefined);
}
});
Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/admin/user.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/admin/user.js?rev=1418960&r1=1418959&r2=1418960&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/admin/user.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/admin/user.js Sun Dec 9 14:00:34 2012
@@ -43,10 +43,10 @@ App.MainAdminUserController = Em.Control
secondary:Em.I18n.t('no'),
onPrimary:function () {
- self.sendCommandToServer('/users/' + event.context.get("userName"),"DELETE" ,{},
- function (requestId) {
+ self.sendCommandToServer('/users/' + event.context.get("userName"), "DELETE" ,{},
+ function (success) {
- if (!requestId) {
+ if (!success) {
return;
}
@@ -68,7 +68,7 @@ App.MainAdminUserController = Em.Control
sendCommandToServer : function(url, method, postData, callback){
var url = (App.testMode) ?
'/data/wizard/deploy/poll_1.json' : //content is the same as ours
- App.apiPrefix + '/' + url;
+ App.apiPrefix + url;
var method = App.testMode ? 'GET' : method;
@@ -79,17 +79,12 @@ App.MainAdminUserController = Em.Control
dataType: 'json',
timeout: App.timeout,
success: function(data){
- if(data && data.Requests){
- callback(data.Requests.id);
- } else{
- callback(null);
- console.log('cannot get request id from ', data);
- }
+ callback(true);
},
error: function (request, ajaxOptions, error) {
//do something
- callback(null);
+ callback(false);
console.log('error on change component host status')
},
Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js?rev=1418960&r1=1418959&r2=1418960&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric.js Sun Dec 9 14:00:34 2012
@@ -123,7 +123,7 @@ App.MainChartHeatmapMetric = Em.Object.e
var clusterName = App.router.get('clusterController.clusterName');
var fixedMetricName = this.get('defaultMetric');
fixedMetricName = fixedMetricName.replace(/\./g, "/");
- return App.formatUrl("/api/clusters/{clusterName}/hosts?fields={metricName}", {
+ return App.formatUrl(App.apiPrefix + "/clusters/{clusterName}/hosts?fields={metricName}", {
clusterName: App.router.get('clusterController.clusterName'),
metricName: fixedMetricName
}, "/data/cluster_metrics/cpu_1hr.json");
Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host/add_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host/add_controller.js?rev=1418960&r1=1418959&r2=1418960&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host/add_controller.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/controllers/main/host/add_controller.js Sun Dec 9 14:00:34 2012
@@ -41,7 +41,9 @@ App.AddHostController = Em.Controller.ex
hostsInfo: null,
slaveComponentHosts: null,
masterComponentHosts: null,
- serviceConfigProperties: null
+ serviceConfigProperties: null,
+ advancedServiceConfig: null,
+ controllerName: 'addHostController'
}),
/**
@@ -187,52 +189,23 @@ App.AddHostController = Em.Controller.ex
* Load clusterInfo(step1) to model
*/
loadClusterInfo: function(){
- var cStatus = App.db.getClusterStatus() || {status: "", isCompleted: false};
var cluster = {
- name: App.db.getClusterName() || "",
- status: cStatus.status,
- isCompleted: cStatus.isCompleted
+ name: App.router.getClusterName(),
+ status: "",
+ isCompleted: true
};
this.set('content.cluster', cluster);
console.log("AddHostController:loadClusterInfo: loaded data ", cluster);
},
/**
- * Save all info about claster to model
- * @param stepController Step1WizardController
- */
- saveClusterInfo: function (stepController) {
- var cluster = stepController.get('content.cluster');
- var clusterStatus = {
- status: cluster.status,
- isCompleted: cluster.isCompleted
- }
- App.db.setClusterName(cluster.name);
- App.db.setClusterStatus(clusterStatus);
-
- console.log("AddHostController:saveClusterInfo: saved data ", cluster);
-
- //probably next line is extra work - need to check it
- this.set('content.cluster', cluster);
- },
-
- /**
- * save status of the cluster. This is called from step8 and step9 to persist install and start requestId
- * @param clusterStatus object with status, isCompleted, requestId, isInstallError and isStartError field.
- */
- saveClusterStatus: function (clusterStatus) {
- this.set('content.cluster', clusterStatus);
- App.db.setClusterStatus(clusterStatus);
- },
-
- /**
* Temporary function for wizardStep9, before back-end integration
*/
setInfoForStep9: function () {
var hostInfo = App.db.getHosts();
for (var index in hostInfo) {
hostInfo[index].status = "pending";
- hostInfo[index].message = 'Waiting';
+ hostInfo[index].message = 'Information';
hostInfo[index].progress = '0';
}
App.db.setHosts(hostInfo);
@@ -374,6 +347,7 @@ App.AddHostController = Em.Controller.ex
}
}
App.db.setHosts(hostInfo);
+ this.set('content.hostsInfo', hostInfo);
console.log('addHostController:saveInstalledHosts: save hosts ', hostInfo);
},
@@ -391,6 +365,8 @@ App.AddHostController = Em.Controller.ex
hosts.passphrase = '';
hosts.confirmPassphrase = '';
}
+ App.db.setHosts(null);
+ App.db.setAllHostNames(null);
},
/**
@@ -467,28 +443,33 @@ App.AddHostController = Em.Controller.ex
var clientHosts = [];
hosts.forEach(function (host) {
+
if (host.get('isDataNode')) {
dataNodeHosts.push({
hostName: host.hostName,
- group: 'Default'
+ group: 'Default',
+ isInstalled: host.get('isDataNodeInstalled')
});
}
if (isMrSelected && host.get('isTaskTracker')) {
taskTrackerHosts.push({
hostName: host.hostName,
- group: 'Default'
+ group: 'Default',
+ isInstalled: host.get('isTaskTrackerInstalled')
});
}
if (isHbSelected && host.get('isRegionServer')) {
regionServerHosts.push({
hostName: host.hostName,
- group: 'Default'
+ group: 'Default',
+ isInstalled: host.get('isRegionServerInstalled')
});
}
if (host.get('isClient')) {
clientHosts.pushObject({
hostName: host.hostName,
- group: 'Default'
+ group: 'Default',
+ isInstalled: host.get('isClientInstalled')
});
}
}, this);
@@ -520,14 +501,83 @@ App.AddHostController = Em.Controller.ex
});
App.db.setSlaveComponentHosts(slaveComponentHosts);
+ console.log('addHostController.slaveComponentHosts: saved hosts', slaveComponentHosts);
this.set('content.slaveComponentHosts', slaveComponentHosts);
},
+ /**
+ * return slaveComponents bound to hosts
+ * @return {Array}
+ */
+ getSlaveComponentHosts: function () {
+ var components = [{
+ name : 'DATANODE',
+ service : 'HDFS'
+ },
+ {
+ name: 'TASKTRACKER',
+ service: 'MAPREDUCE'
+ },{
+ name: 'HBASE_REGIONSERVER',
+ service: 'HBASE'
+ }];
+
+ var result = [];
+ var services = App.Service.find();
+ var selectedServices = this.get('content.services').filterProperty('isSelected', true).mapProperty('serviceName');
+ for(var index=0; index < components.length; index++){
+ var comp = components[index];
+ if(!selectedServices.contains(comp.service)){
+ continue;
+ }
+
+
+ var service = services.findProperty('id', comp.service);
+ var hosts = [];
+
+ service.get('hostComponents').filterProperty('componentName', comp.name).forEach(function (host_component) {
+ hosts.push({
+ group: "Default",
+ hostName: host_component.get('host.id'),
+ isInstalled: true
+ });
+ }, this);
+
+ result.push({
+ componentName: comp.name,
+ displayName: App.format.role(comp.name),
+ hosts: hosts,
+ isInstalled: true
+ })
+ }
+
+ var clientsHosts = App.HostComponent.find().filterProperty('componentName', 'HDFS_CLIENT');
+ var hosts = [];
+
+ clientsHosts.forEach(function (host_component) {
+ hosts.push({
+ group: "Default",
+ hostName: host_component.get('host.id'),
+ isInstalled: true
+ });
+ }, this);
+
+ result.push({
+ componentName: 'CLIENT',
+ displayName: 'client',
+ hosts: hosts,
+ isInstalled: true
+ })
+ return result;
+ },
/**
* Load master component hosts data for using in required step controllers
*/
loadSlaveComponentHosts: function () {
var slaveComponentHosts = App.db.getSlaveComponentHosts();
+ if(!slaveComponentHosts){
+ slaveComponentHosts = this.getSlaveComponentHosts();
+ }
this.set("content.slaveComponentHosts", slaveComponentHosts);
console.log("AddHostController.loadSlaveComponentHosts: loaded hosts ", slaveComponentHosts);
},
@@ -542,7 +592,8 @@ App.AddHostController = Em.Controller.ex
_content.get('configs').forEach(function (_configProperties) {
var configProperty = {
name: _configProperties.get('name'),
- value: _configProperties.get('value')
+ value: _configProperties.get('value'),
+ service: _configProperties.get('serviceName')
};
serviceConfigProperties.push(configProperty);
}, this);
@@ -578,13 +629,15 @@ App.AddHostController = Em.Controller.ex
saveClients: function(stepController){
var clients = [];
var serviceComponents = require('data/service_components');
+ var hostComponents = App.HostComponent.find();
stepController.get('content').filterProperty('isSelected',true).forEach(function (_service) {
var client = serviceComponents.filterProperty('service_name', _service.serviceName).findProperty('isClient', true);
if (client) {
clients.pushObject({
component_name: client.component_name,
- display_name: client.display_name
+ display_name: client.display_name,
+ isInstalled: hostComponents.filterProperty('componentName', client.component_name).length > 0
});
}
}, this);
@@ -622,6 +675,55 @@ App.AddHostController = Em.Controller.ex
}
},
+ loadAdvancedConfigs: function () {
+ App.db.getSelectedServiceNames().forEach(function (_serviceName) {
+ this.loadAdvancedConfig(_serviceName);
+ }, this);
+ },
+ /**
+ * Generate serviceProperties save it to localdata
+ * called form stepController step6WizardController
+ */
+
+ loadAdvancedConfig: function (serviceName) {
+ var self = this;
+ var url = (App.testMode) ? '/data/wizard/stack/hdp/version01/' + serviceName + '.json' : App.apiPrefix + '/stacks/HDP/version/1.2.0/services/' + serviceName; // TODO: get this url from the stack selected by the user in Install Options page
+ var method = 'GET';
+ $.ajax({
+ type: method,
+ url: url,
+ async: false,
+ dataType: 'text',
+ timeout: App.timeout,
+ success: function (data) {
+ var jsonData = jQuery.parseJSON(data);
+ console.log("TRACE: Step6 submit -> In success function for the loadAdvancedConfig call");
+ console.log("TRACE: Step6 submit -> value of the url is: " + url);
+ var serviceComponents = jsonData.properties;
+ serviceComponents.setEach('serviceName', serviceName);
+ var configs;
+ if (App.db.getAdvancedServiceConfig()) {
+ configs = App.db.getAdvancedServiceConfig();
+ } else {
+ configs = [];
+ }
+ configs = configs.concat(serviceComponents);
+ self.set('content.advancedServiceConfig', configs);
+ App.db.setAdvancedServiceConfig(configs);
+ console.log('TRACE: servicename: ' + serviceName);
+ },
+
+ error: function (request, ajaxOptions, error) {
+ console.log("TRACE: STep6 submit -> In error function for the loadAdvancedConfig call");
+ console.log("TRACE: STep6 submit-> value of the url is: " + url);
+ console.log("TRACE: STep6 submit-> error code status is: " + request.status);
+ console.log('Step6 submit: Error message is: ' + request.responseText);
+ },
+
+ statusCode: require('data/statusCodes')
+ });
+ },
+
/**
* Generate clients list for selected services and save it to model
* @param stepController step8WizardController or step9WizardController
@@ -629,10 +731,11 @@ App.AddHostController = Em.Controller.ex
installServices: function () {
var self = this;
var clusterName = this.get('content.cluster.name');
- var url = App.apiPrefix + '/clusters/' + clusterName + '/services?state=INIT';
+ var url = (App.testMode) ? '/data/wizard/deploy/poll_1.json' : App.apiPrefix + '/clusters/' + clusterName + '/services?state=INIT';
+ var method = (App.testMode) ? 'GET' : 'PUT';
var data = '{"ServiceInfo": {"state": "INSTALLED"}}';
$.ajax({
- type: 'PUT',
+ type: method,
url: url,
data: data,
async: false,
@@ -640,18 +743,21 @@ App.AddHostController = Em.Controller.ex
timeout: App.timeout,
success: function (data) {
var jsonData = jQuery.parseJSON(data);
+ var installSartTime = new Date().getTime();
console.log("TRACE: STep8 -> In success function for the installService call");
console.log("TRACE: STep8 -> value of the url is: " + url);
if (jsonData) {
var requestId = jsonData.href.match(/.*\/(.*)$/)[1];
+
console.log('requestId is: ' + requestId);
var clusterStatus = {
status: 'PENDING',
requestId: requestId,
isInstallError: false,
- isCompleted: false
+ isCompleted: false,
+ installStartTime: installSartTime
};
- self.saveClusterStatus(clusterStatus);
+ //self.saveClusterStatus(clusterStatus);
} else {
console.log('ERROR: Error occurred in parsing JSON data');
}
@@ -667,7 +773,7 @@ App.AddHostController = Em.Controller.ex
isInstallError: true,
isCompleted: false
};
- self.saveClusterStatus(clusterStatus);
+ //self.saveClusterStatus(clusterStatus);
},
statusCode: require('data/statusCodes')
@@ -682,6 +788,17 @@ App.AddHostController = Em.Controller.ex
clearAllSteps: function () {
this.clearHosts();
//todo it)
+ },
+
+ /**
+ * Clear all temporary data
+ */
+ finish: function(){
+ this.setCurrentStep('1', false);
+ App.db.setService(undefined); //not to use this data at AddService page
+ App.db.setHosts(undefined);
+ App.db.setMasterComponentHosts(undefined);
+ App.db.setSlaveComponentHosts(undefined);
}
});