Description
right now the package test TestServices.createState() use a loop to do config for each one of a group of services, for example. For HDFS services "hadoop-0.20-namenode", "hadoop-0.20-datanode", "hadoop-0.20-secondarynamenode", it do the same config three times
12/10/02 13:34:41 TRACE shell.Shell: /bin/bash << __EOT__ sed -i -e 's#<configuration>$#<configuration><property><name>dfs.safemode.min.datanodes</name><value>1</value></property><property><name>dfs.safemode.extension</name><value>0</value></property>#' /etc/hadoop/conf/hdfs-site.xml __EOT__ 12/10/02 13:34:41 TRACE shell.Shell: /bin/bash << __EOT__ sed -i -e 's#<configuration>$#<configuration><property><name>dfs.safemode.min.datanodes</name><value>1</value></property><property><name>dfs.safemode.extension</name><value>0</value></property>#' /etc/hadoop/conf/hdfs-site.xml __EOT__ 12/10/02 13:34:41 TRACE shell.Shell: /bin/bash << __EOT__ sed -i -e 's#<configuration>$#<configuration><property><name>dfs.safemode.min.datanodes</name><value>1</value></property><property><name>dfs.safemode.extension</name><value>0</value></property>#' /etc/hadoop/conf/hdfs-site.xml __EOT__
it really just need to do it once