← Back to team overview

bigdata-dev team mailing list archive

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

 

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

Requested reviews:
  Big Data Charmers (bigdata-charmers)

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

adding hdfs 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-hdfs-master/trunk.
=== modified file 'README.md'
=== added directory 'actions'
=== added file 'actions.yaml'
--- actions.yaml	1970-01-01 00:00:00 +0000
+++ actions.yaml	2015-06-23 17:21:25 +0000
@@ -0,0 +1,6 @@
+start-hdfs:
+    description: All of the HDFS processes can be started with this Juju action.
+stop-hdfs:
+    description: All of the HDFS processes can be stopped with this Juju action.
+restart-hdfs:
+    description: All of the HDFS processes can be restarted with this Juju action.

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

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

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

=== modified file 'hooks/common.py'
--- hooks/common.py	2015-05-18 20:50:53 +0000
+++ hooks/common.py	2015-06-23 17:21:25 +0000
@@ -80,9 +80,9 @@
                 jujubigdata.relations.SecondaryNameNode(optional=True),
             ],
             'callbacks': [
-                datanodes.register_host_ips,
-                secondary.register_host_ips,
-                jujubigdata.utils.update_etc_hosts_from_kv,
+                datanodes.register_connected_hosts,
+                secondary.register_connected_hosts,
+                jujubigdata.utils.manage_etc_hosts,
                 hdfs.configure_namenode,
                 hdfs.register_slaves,
                 hdfs.format_namenode,

=== modified file 'resources.yaml'
--- resources.yaml	2015-05-28 18:17:01 +0000
+++ resources.yaml	2015-06-23 17:21:25 +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