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 
  }}}

Reply via email to