← Back to team overview

bigdata-dev team mailing list archive

[Merge] lp:~bigdata-dev/charms/trusty/apache-hadoop-yarn-master/trunk into lp:charms/trusty/apache-hadoop-yarn-master

 

amir sanjar has proposed merging lp:~bigdata-dev/charms/trusty/apache-hadoop-yarn-master/trunk into lp:charms/trusty/apache-hadoop-yarn-master.

Requested reviews:
  Big Data Charmers (bigdata-charmers)

For more details, see:
https://code.launchpad.net/~bigdata-dev/charms/trusty/apache-hadoop-yarn-master/trunk/+merge/262766

adding YARN start, stop, and restart Juju actions to the charm
-- 
Your team Juju Big Data Development is subscribed to branch lp:~bigdata-dev/charms/trusty/apache-hadoop-yarn-master/trunk.
=== added directory 'actions'
=== added file 'actions.yaml'
--- actions.yaml	1970-01-01 00:00:00 +0000
+++ actions.yaml	2015-06-23 17:22:39 +0000
@@ -0,0 +1,6 @@
+start-yarn:
+    description: All of the YARN processes can be started with this Juju action.
+stop-yarn:
+    description: All of the YARN processes can be stopped with this Juju action.
+restart-yarn:
+    description: All of the YARN processes can be restarted with this Juju action.

=== added file 'actions/restart-yarn'
--- actions/restart-yarn	1970-01-01 00:00:00 +0000
+++ actions/restart-yarn	2015-06-23 17:22:39 +0000
@@ -0,0 +1,5 @@
+#!/bin/bash
+. /etc/environment
+cd ${HADOOP_HOME}/sbin
+su yarn -c "./stop-yarn.sh"
+su yarn -c "./start-yarn.sh"

=== added file 'actions/start-yarn'
--- actions/start-yarn	1970-01-01 00:00:00 +0000
+++ actions/start-yarn	2015-06-23 17:22:39 +0000
@@ -0,0 +1,4 @@
+#!/bin/bash
+. /etc/environment
+cd ${HADOOP_HOME}/sbin
+su yarn -c "./start-yarn.sh"

=== added file 'actions/stop-yarn'
--- actions/stop-yarn	1970-01-01 00:00:00 +0000
+++ actions/stop-yarn	2015-06-23 17:22:39 +0000
@@ -0,0 +1,4 @@
+#!/bin/bash
+. /etc/environment
+cd ${HADOOP_HOME}/sbin
+su yarn -c "./stop-yarn.sh"

=== modified file 'hooks/common.py'
--- hooks/common.py	2015-05-13 16:48:39 +0000
+++ hooks/common.py	2015-06-23 17:22:39 +0000
@@ -51,6 +51,7 @@
     hs_port = dist_config.port('jh_webapp_http')
     nodemanagers = jujubigdata.relations.ResourceManagerMaster(spec=hadoop.spec, port=port, historyserver_port=hs_port)
     clients = jujubigdata.relations.ResourceManager(spec=hadoop.spec, port=port, historyserver_port=hs_port)
+    namenode = jujubigdata.relations.NameNode(spec=hadoop.client_spec)
     manager = charmframework.Manager([
         {
             'name': 'hadoop-base',
@@ -69,12 +70,13 @@
             ],
             'requires': [
                 hadoop.is_installed,
-                jujubigdata.relations.NameNode(spec=hadoop.client_spec),
+                namenode,
                 jujubigdata.relations.NodeManager(optional=True),
             ],
             'callbacks': [
-                nodemanagers.register_host_ips,
-                jujubigdata.utils.update_etc_hosts_from_kv,
+                nodemanagers.register_connected_hosts,
+                namenode.register_provided_hosts,
+                jujubigdata.utils.manage_etc_hosts,
                 hdfs.configure_client,
                 yarn.configure_resourcemanager,
                 yarn.configure_jobhistory,

=== modified file 'resources.yaml'
--- resources.yaml	2015-05-28 18:17:21 +0000
+++ resources.yaml	2015-06-23 17:22:39 +0000
@@ -8,10 +8,10 @@
   six:
     pypi: six
   jujubigdata:
-    pypi: jujubigdata>=1.2.14,<2.0.0
+    pypi: jujubigdata>=2.0.0,<3.0.0
   charmhelpers:
-    pypi: http://bazaar.launchpad.net/~bigdata-dev/bigdata-data/trunk/download/kevin.monroe%40canonical.com-20150511173636-5rblzf5r2o1zcv2p/charmhelpers0.2.3.ta-20150417221203-zg62z8c220egc3ch-1/charmhelpers-0.2.3.tar.gz
-    hash: 44340a6fd6f192bcc9d390c0d9c3901d4fc190166485b107047bc1c6ba102a2f
+    pypi: http://bazaar.launchpad.net/~bigdata-dev/bigdata-data/trunk/download/kevin.monroe%40canonical.com-20150610215108-gq4ud2rriy1sp1h6/charmhelpers0.3.1.ta-20150610215050-vxrqhizdsrqwnmcm-1/charmhelpers-0.3.1.tar.gz
+    hash: 061fe7204289b96fab5d3ca02883040ea3026526ebf0ad38e21457527a18d139
     hash_type: sha256
   java-installer:
     # This points to a script which manages installing Java.


Follow ups