Changeset 1665:07f05953d331

Show
Ignore:
Timestamp:
06/19/08 18:38:25 (2 months ago)
Author:
hadoopsandholm@…
Branch:
default
Message:

added ec2 compatibility client and server

Location:
src/grid/hadoop
Files:
9 added
1 removed
5 modified

Legend:

Unmodified
Added
Removed
  • src/grid/hadoop/bin/deletevm

    r1406 r1665  
    44USER=`id -un` 
    55GETIP=`cat ${HADOOP_ROOT}/hadoop.conf | grep ipaddress | sed 's/ipaddress //'` 
    6 if [ "$GETIP" == "yes" ]; then 
    7   tycoon -u ${USER} host bid $HOST 0 IPv4Address,$IP:0 
    8 fi 
     6#if [ "$GETIP" == "yes" ]; then 
     7#  tycoon -u ${USER} host bid $HOST 0 IPv4Address,$IP:0 
     8#fi 
    99tycoon -u ${USER} host delete_account $HOST ${USER} 
  • src/grid/hadoop/bin/epochtime

    r1599 r1665  
    22import time 
    33import sys 
    4 epoch = long(sys.argv[1]) 
    5 print time.ctime(epoch) 
     4if len(sys.argv) < 2: 
     5    print "-" 
     6else: 
     7    try: 
     8        epoch = long(sys.argv[1]) 
     9        print time.ctime(epoch) 
     10    except: 
     11        print "-" 
  • src/grid/hadoop/bin/th_create

    r1603 r1665  
    11#!/bin/bash 
    22tycoon_hadoop delete 
     3python ${HADOOP_INSTALL}/bin/LocalTime.py >${HADOOP_ROOT}/.launchtime 
    34RET=`${HADOOP_INSTALL}/bin/gethosts $1` 
    45if [ "$RET" != "OK" ]; then 
  • src/grid/hadoop/bin/th_expires

    r1603 r1665  
    33MASTER=`tycoon_hadoop get-master` 
    44if [ "X$MASTER" != "X" ]; then 
    5 IP=`cat ${HADOOP_ROOT}/.hosts | grep $MASTER | awk '{print $1}'` 
    6 TIME=`tycoon -u ${USER} host get_account_status ${IP} bid['expiration'] | tail -n 1 | awk '{print $3}' | sed 's/L.*//'` 
    7 ${HADOOP_INSTALL}/bin/epochtime $TIME 
     5IP=`cat ${HADOOP_ROOT}/.hosts 2>/dev/null | grep $MASTER | awk '{print $1}'` 
     6TIME= 
     7if [ "X${IP}" != "X" ]; then 
     8    TIME=`tycoon -u ${USER} host get_account_status ${IP} bid['expiration'] 2>/dev/null | tail -n 1 | awk '{print $3}' | sed 's/L.*//'` 
     9fi 
     10if [ "X${TIME}" == "X" ]; then 
     11    echo "-" 
     12else 
     13    ${HADOOP_INSTALL}/bin/epochtime $TIME 
     14fi 
    815else 
    916  echo "-"