Page 1 of 1

mmap()failed. Invalid argument

Posted: Sun Mar 31, 2013 12:05 pm
by abc123
I am getting this error on a 101 line file. This only happens on line 101. If I take the first 100 lines and try to load, it loads fine. Things I have tried:

1)Went through all posts in the forum to find the resolution.

2)Checked that line thoroughly and checked with other lines. No difference at all.

3)Did: od -c. Found nothing different.

4)Tried to use fixtool. Got the message:
This is not a UniVerse file.

5)Did a view data of the file in the source sequential file. Looks fine.

My job is:
seq file -> transformer -> lookup -> oracle enterprise1
^
|
oracle enterprise2

The oracle enterprise2 stage is really with the lookup stage. dsxchange shifts the positions after posting.

More info:
1)My config file has only one node.
2)Another error I get later is:
sendWriteSignal() failed on node xxxx

Any ideas?

Posted: Sun Mar 31, 2013 4:00 pm
by ray.wurlod
Is there a line terminator at the end of line number 101?

Posted: Sun Mar 31, 2013 10:45 pm
by abc123
No but I have set:
Final delimiter=none

Posted: Sun Mar 31, 2013 11:19 pm
by Rakesh311
Hi
What is the exact error you getting.
It can be of various reasons like -duplicate value for key,Look up Fail


Regards,
Rakesh

Posted: Mon Apr 01, 2013 3:18 am
by ray.wurlod
Final Delimiter is not the same as Record Delimiter. How have you set Record Delimiter?

If you open the file using vi and position to the end of the file (0G) is the cursor at the end of the last line or on a new empty line? This will tell you whether or not there's a line terminator on the final line.

Posted: Mon Apr 01, 2013 8:28 am
by abc123
It is at the end of the last line. When I did:
od -c
the record delimiter shows as \r \n

This job has been running for over two year successfully with large files.

Posted: Mon Apr 01, 2013 1:31 pm
by ray.wurlod
You're on UNIX yet you have DOS-style line terminators. All values in the final column are likely to have an unwanted \r at their end. Change the format to set Record Delimiter String to "DOS style".