[Swift-devel] [Bug 92] New: URIs in mappers

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Sep 24 06:33:17 CDT 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=92

           Summary: URIs in mappers
           Product: Swift
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: hategan at mcs.anl.gov
        ReportedBy: benc at hawaga.org.uk
                CC: swift-devel at ci.uchicago.edu


(this was a message on swift-devel but I've moved it here because it needs
tracking - I'd forgotten about it...
http://mail.ci.uchicago.edu/pipermail/swift-devel/2007-September/001659.html)

I was looking at mappers using URIs in r1227, which I've never tried 
before.

I was expecting something like the following program to work (to produce a 
copy of the file mapped to the f variable into $PWD/here).

=================================
type file;

(file o) cat(file i) {
    app {
        cat stdin=@i stdout=@o;
    }
}

file f <"gsiftp://terminable.ci.uchicago.edu/etc/group">;

file out <"here">;

out = cat(f);
=================================

When I say 

file f <"/etc/group">;

or

file f <"file:///etc/group">;

I get files OK.

However, other uses are less successful:

file://localhost/etc/group dies like this:

=================================
Swift v0.2-dev r1227 (modified locally)

RunID: 20070918-1214-7dls8y23
cat started
cat failed
Execution failed:
        Exception in cat:
Arguments: []
Host: localhost
Directory: ftptest-20070918-1214-7dls8y23/cat-62kxdehi
stderr.txt: 

stdout.txt: 

----

Caused by:
        File not found: 
/Users/benc/work/cog/modules/vdsk/localhost/etc/group
=================================

with http:

file f <"http://www.hawaga.org.uk/ben/index.html">;

gives similar error ending:
        File not found: /Users/benc/work/cog/modules/vdsk/ben/index.html


and with gsiftp:

file f <"gsiftp://terminable.ci.uchicago.edu/etc/group">;

gives similar error ending:        

        File not found: /Users/benc/work/cog/modules/vdsk/etc/group

(I can get that http URL with wget, and the gsiftp one with g-u-c)

In the gsiftp case, I see that a subdirectory:

/var/tmp/ftptest-20070918-1217-gxh621s5/shared/etc

has been created in the run directory, but no group file has appeared 
there.


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list