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

Dave Dykstra dwd at fnal.gov
Thu Feb 17 08:04:34 CST 2011


David,

Thanks.  I probably should have been able to figure that out because I
do now recall doing instructions last week to add 'tr' that way, but I
had forgotten about it and anyway didn't really know what the
consequences were for not adding it.

- Dave

On Thu, Feb 17, 2011 at 12:58:53AM -0500, David Kelly wrote:
> 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
> >

> one


> two

> three





More information about the Swift-user mailing list