anchor.diff:  dfs_name_dir_root="<%= @hadoop[:namenode   ][:data_dirs].last      %>"
   hadoop_tmp_dir="<%=    @hadoop[:tmp_dir] %>"
   hadoop_log_dir="<%=    @hadoop[:log_dir] %>"
  -namenode_daemon="hadoop_namenode"
   sentinel="$hadoop_tmp_dir/made_initial_dirs.log"
   
   make_hadoop_dir_if_not_exists() {
  
positive.code: echo
  
  #
  echo "3/6: Restarting the namenode" ; echo -n "  "
  #
  sudo service $namenode_daemon start
  
  #
  echo "4/6: Waiting for the namenode to come out of safemode" ; echo -n "  "
  
negative.code: make_hadoop_dir_if_not_exists "$hadoop_log_dir" 777
  
  #
  echo "2/6: Stopping daemons:" ; echo -n "  "
  #
  for daemon in namenode secondarynn jobtracker datanode tasktracker ; do
    echo "        - $daemon"
    sudo service "hadoop_${daemon}" stop || sleep 3 ; true
  done
  
  #
  echo "Formatting namenode in '$dfs_name_dirs'"
  