incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1215362 - /incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
Date Sat, 17 Dec 2011 00:16:48 GMT
Author: omalley
Date: Sat Dec 17 00:16:47 2011
New Revision: 1215362

URL: http://svn.apache.org/viewvc?rev=1215362&view=rev
Log:
AMBARI-165. Missed file.

Added:
    incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd

Added: incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd?rev=1215362&view=auto
==============================================================================
--- incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
(added)
+++ incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
Sat Dec 17 00:16:47 2011
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<component provides="hdfs">
+  <requires name="common"/>
+  <roles name="namenode"/>
+  <roles name="secondarynamenode"/>
+  <roles name="datanode"/>
+  <configure>
+<![CDATA[
+import ambari_component
+import sys
+
+[pgm, cluster, role] = sys.argv
+
+opts = {}
+if role == "datanode":
+  opts['dfs.data.dir'] = ambari_component.getDataDirs()
+
+ambari_component.copyXml('hadoop/hdfs-site', opts)
+]]>
+  </configure>
+  <install>
+<![CDATA[
+print "TO BE DONE"
+]]>
+  </install>
+  <start>
+<![CDATA[
+import os
+import sys
+
+[pgm, cluster, role] = sys.argv
+
+os.execl("stack/bin/hadoop", "stack/bin/hadoop", role)
+]]>
+  </start>
+  <check runOn="namenode" user="${hdfs.user}">
+<![CDATA[
+import os
+
+os.exec('stack/bin/hadoop', 'stack/bin/hadoop', 'dfsadmin', '-get')
+]]>
+  </check>
+
+  <prestart runOn="namenode" user="{hdfs.user}">
+<![CDATA[]]>
+  </prestart>
+</component>



Mime
View raw message