Page 1 of 1

wrapper

Posted: Wed Sep 06, 2006 12:56 am
by ashik_baba
hi all,
i am trying to built my own wrapper.im input has two files and the columns are 'ordernumber' 'code' and i have take 'ordernumber' as key based on the i want to sort the data .and my output is one file.the UNIX command i am using is (sort -k 2 )where as k is the key column and i am considering only the values from the 2nd cheracter.when i am running the job i am getting the error message.
main_program: APT_PipeConnection: new connection 1 requests file descriptor -1, which was also requested by connection 0

Thanks in advance.

Posted: Wed Sep 06, 2006 1:21 am
by ray.wurlod
The two inputs are port 0 and port 1. For whatever reason you appear to have specified the same data source for each.

Posted: Fri Oct 20, 2006 10:37 am
by jhmckeever
Just thought I'd tag onto this old post that we also encountered this error because there appears to be a feature (bug?) in 7.0 where the '.op' file generated for a wrapped stage appears to be broken ...

Code: Select all

echo "{
wrapped,
kind = parallel,
usage = \"qascleankey.op \",
command = \"/home/dsadm/project/wrapped/qascleankey\",
port = {fd = 0, input = 0, schema = \"...\"},
port = {fd = 0, output = 0, schema = \"...\"}
}"
Changing the following line manually (not using the generate button) fixed our problem (second 'fd = 0' entry to 1) :

Code: Select all

port = {fd = 0, input = 0, schema = \"...\"},
port = {fd = 1, output = 0, schema = \"...\"}
HTH,
J.