[Swift-devel] Re: URIs in mappers
Ben Clifford
benc at hawaga.org.uk
Mon Sep 24 06:33:38 CDT 2007
I put the below into bugzilla as bug 92.
On Tue, 18 Sep 2007, Ben Clifford wrote:
>
> 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.
>
>
More information about the Swift-devel
mailing list