ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r1221554 - /incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
Date Wed, 21 Dec 2011 01:21:43 GMT
Author: ddas
Date: Wed Dec 21 01:21:42 2011
New Revision: 1221554

URL: http://svn.apache.org/viewvc?rev=1221554&view=rev
Log:
AMBARI-165. A fix to the hdfs acd

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

Modified: 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=1221554&r1=1221553&r2=1221554&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
(original)
+++ incubator/ambari/trunk/controller/src/main/resources/org/apache/ambari/acd/hdfs-0.1.0.acd
Wed Dec 21 01:21:42 2011
@@ -28,7 +28,9 @@ sys.exit(os.system('hadoop dfsadmin -saf
   <prestart runOn="namenode">
 <![CDATA[]]>
 import subprocess
+import os
 
+os.environ['HADOOP_CONF_DIR']=os.getcwd() + "/etc/hadoop"
 proc = subprocess.Popen(['hadoop', 'namenode', '-format'], stdin=subprocess.PIPE)
 proc.communicate('N\n')
 proc.wait()



Mime
View raw message