hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "topology_rack_awareness_scripts" by EdwardCapriolo
Date Fri, 02 Jul 2010 18:39:39 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "topology_rack_awareness_scripts" page has been changed by EdwardCapriolo.
The comment on this change is: Weird extra characters removed.
http://wiki.apache.org/hadoop/topology_rack_awareness_scripts?action=diff&rev1=2&rev2=3

--------------------------------------------------

   HADOOP_CONF=/etc/hadoop/conf 
  
  while [ $# -gt 0 ] ; do
- 
-  . nodeArg=$1
+   nodeArg=$1
-  exec< ${HADOOP_CONF}/topology.data result="" while read line ; do
+   exec< ${HADOOP_CONF}/topology.data 
+   result="" 
+   while read line ; do
+     ar=( $line ) 
-   . ar=( $line ) if [ "${ar[0]}" = "$nodeArg" ] ; then
+     if [ "${ar[0]}" = "$nodeArg" ] ; then
-    . result="${ar[1]}"
+       result="${ar[1]}"
+     fi
+   done 
+   shift if [ -z "$result" ] ; then
+     echo -n "/default-rack "
+   else
+     echo -n "$result "
    fi
-  done shift if [ -z "$result" ] ; then
-   . echo -n "/default-rack "
-  else
-   . echo -n "$result "
-  fi
  
  done 
  }}}

Mime
View raw message