[Swift-commit] r6490 - in SwiftTutorials/OSG_2013-03-11/MODIS: . test.eureka

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Tue Apr 30 11:28:34 CDT 2013


Author: davidk
Date: 2013-04-30 11:28:33 -0500 (Tue, 30 Apr 2013)
New Revision: 6490

Added:
   SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/
   SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/cf
   SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/coaster-service.conf
   SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/getlanduse.pl
   SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/run
   SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/tc
Log:
Modis test for Eureka


Added: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/cf	2013-04-30 16:28:33 UTC (rev 6490)
@@ -0,0 +1,8 @@
+
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+lazy.errors=false
+status.mode=provider
+use.provider.staging=true
+provider.staging.pin.swiftfiles=false

Added: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/coaster-service.conf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/coaster-service.conf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/coaster-service.conf	2013-04-30 16:28:33 UTC (rev 6490)
@@ -0,0 +1,53 @@
+# Keep all interesting settings in one place
+# User should modify this to fit environment
+
+# Location of SWIFT. If empty, PATH is searched
+export SWIFT=
+
+# Where to copy worker.pl on the remote machine for sites.xml
+export WORKER_WORK=$HOME/work
+
+# How to launch workers: local, ssh, cobalt, or futuregrid
+export WORKER_MODE=cobalt
+
+# Kernel profile for cobalt jobs
+export KERNEL=zeptoos
+
+# SSH5B hosts to start workers on (ssh mode only)
+export WORKER_HOSTS="host1 host2 host3"
+
+# Do all the worker nodes you're using have a shared filesystem? (yes/no)
+export SHARED_FILESYSTEM=yes
+
+# Username to use on worker nodes
+export WORKER_USERNAME=$USER
+
+# Enable SSH tunneling? (yes/no)
+export SSH_TUNNELING=no
+
+# Directory to keep log files, relative to working directory when launching start-coaster-service
+export LOG_DIR=logs
+
+# Manually define ports. If not specified, an available port will be used
+export LOCAL_PORT=50321
+export SERVICE_PORT=50322
+
+# start-coaster-service tries to automatically detect the IP address of this system. Specify here if you have multiple network interfaces
+export IPADDR=172.17.9.151
+
+# Location of the swift-vm-boot scripts
+export SWIFTVMBOOT_DIR=$HOME/swift-vm-boot
+
+export JOBSPERNODE=4
+export JOBTHROTTLE=1000
+
+# Setting for WORKER_INIT_CMD
+export WORKER_ENVIRONMENT="WORKER_INIT_CMD=$PWD/worker-init.pl"
+
+# Swift information for creating sites.xml
+export PROJECT=MTCScienceApps
+export WORK=$HOME/work
+export QUEUE=default
+export MAXTIME=59
+export NODES=2
+

Added: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/getlanduse.pl
===================================================================
--- SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/getlanduse.pl	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/getlanduse.pl	2013-04-30 16:28:33 UTC (rev 6490)
@@ -0,0 +1,29 @@
+#!/usr/bin/perl -w
+
+# Input to this program should be a raw, greyscale RGB file
+# Usage: rgb_histogram.pl myfile.rgb
+
+my $image_filename = shift;
+open(IMAGEFILE, "$image_filename") || die "Unable to open $image_filename!\n";
+binmode IMAGEFILE;
+
+my @pixelcount;
+foreach my $count (0..255) { $pixelcount[$count] = 0; }
+
+# Read values, three bytes at a time
+$/ = \3; 
+foreach(<IMAGEFILE>) {
+   $pixelcount[unpack('C', $_)]++;
+}
+close(IMAGEFILE);
+
+ at sortedcount = sort {$b <=> $a} @pixelcount;
+
+foreach my $count (0..255) {
+   if($sortedcount[$count] == 0) { next; }
+   printf("%d %d %02x\n", $sortedcount[$count], $count, $count);
+}
+
+system("hostname -f 2>&1");
+
+sleep(1);


Property changes on: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/getlanduse.pl
___________________________________________________________________
Added: svn:executable
   + *

Added: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/run
===================================================================
--- SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/run	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/run	2013-04-30 16:28:33 UTC (rev 6490)
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+set -x
+
+start-coaster-service
+swift -config cf -sites.file sites.xml -tc.file tc ../modis.swift -modisdir=input/
+stop-coaster-service


Property changes on: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/run
___________________________________________________________________
Added: svn:executable
   + *

Added: SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/tc
===================================================================
--- SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/tc	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/MODIS/test.eureka/tc	2013-04-30 16:28:33 UTC (rev 6490)
@@ -0,0 +1 @@
+persistent-coasters perl /usr/bin/perl null null null




More information about the Swift-commit mailing list