[Swift-user] "Could not find valid host" on tutorial examples

David Kelly dk0966 at cs.ship.edu
Wed Feb 16 23:58:53 CST 2011


Hi Dave,

Looks like you stumbled across a bug in the tutorials. I submitted fixes for
these at one point, but it seems it somehow has been reintroduced in 0.91.
Here is what you can do to get the tutorial scripts working.

Add the following line to swift-0.91/etc/tc.data:
localhost    wc        /usr/bin/wc    INSTALLED    INTEL32::LINUX    null

Create the required input files that the script uses (one.txt, two.txt,
three.txt) in the examples directory. You can use the ones I have attached.

Another problem you may run into is with a typo in regexp.script. The
corrected version is attached.

Hope this helps! Let me know if you run into any other issues with the
tutorial scripts.

Regards,
David


On Wed, Feb 16, 2011 at 5:54 PM, Dave Dykstra <dwd at fnal.gov> wrote:

> I have been getting the following error on both the tutorial 3.6.1 regexp
> mapper and 3.6.2 fixed array mapper example:
>
>    Swift svn swift-r3826 cog-r2988
>
>    RunID: 20110216-1644-pddxkqn3
>    Progress:
>    Execution failed:
>            Could not find any valid host for task "Task(type=UNKNOWN,
> identity=urn:cog-1297896282664)" with constraints {tr=wc,
> filenames=[Ljava.lang.String;@3465b738, trfqn=wc,
> filecache=org.griphyn.vdl.karajan.lib.cache.CacheMapAdapter at 1dfd868}
>
> For completeness, here's the fixedarray.swift that the above error was
> generated from, as taken directly from swift-0.91/examples/swift:
>
>    type messagefile {}
>    type countfile {}
>
>    (countfile t) countwords (messagefile f) {
>        app {
>            wc "-w" @filename(f) stdout=@filename(t);
>        }
>    }
>
>    string inputNames = "one.txt two.txt three.txt";
>    string outputNames = "one.count two.count three.count";
>
>    messagefile inputfiles[] <fixed_array_mapper;files=inputNames>;
>    countfile outputfiles[] <fixed_array_mapper;files=outputNames>;
>
>    outputfiles[0] = countwords(inputfiles[0]);
>    outputfiles[1] = countwords(inputfiles[1]);
>    outputfiles[2] = countwords(inputfiles[2]);
>
> At this stage in my experience with swift I have no idea what to do
> about it, can anyone here help?
>
> - Dave
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20110217/0ec612ba/attachment.html>
-------------- next part --------------
one
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc.data
Type: application/octet-stream
Size: 930 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20110217/0ec612ba/attachment.obj>
-------------- next part --------------
two
-------------- next part --------------
three
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp.swift
Type: application/octet-stream
Size: 303 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20110217/0ec612ba/attachment-0001.obj>


More information about the Swift-user mailing list