FTP-2GB file

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
jyothisdasms
Participant
Posts: 33
Joined: Wed May 19, 2010 12:15 am
Location: Pune

FTP-2GB file

Post by jyothisdasms »

I want to FTP a 2GB file from 7.5 to 8.1 server.When i used ftp command only 1 GB is getting transfered.Can any one help me in this?
" Dream like you will live forever, live like you will die today."
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What is your OS and what is your system or file system's limit for file size? If you manually start a FTP command to get the file, does it come over correctly? Are there any FTP warning or error messages generated?
jyothisdasms
Participant
Posts: 33
Joined: Wed May 19, 2010 12:15 am
Location: Pune

Post by jyothisdasms »

OS is Unix.The file size is not exceeding the file system's limit.When i used FTP command in putty ,the following error messages are coming.



"Error Writing File : Error 0"

"Abor Command Successfull"
" Dream like you will live forever, live like you will die today."
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Do you have enough space in your destination directory? Try adding "TRACE ON" in your FTP command to see if you get more debugging information from the program.
jyothisdasms
Participant
Posts: 33
Joined: Wed May 19, 2010 12:15 am
Location: Pune

Post by jyothisdasms »

I gave the Trace On command as mentioned below

ftp>Put file name Trace On

Result is
PORT Command SuccessfulOpening Data connection for Trace
Error Writing file : Error 0
ABOR command Successful

Then i am geting 1gb of the file instead of 2gb
Is this what you explained? or anything else i have to do?

Thanks in Advance
" Dream like you will live forever, live like you will die today."
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

on a PUT command my guess remains that you don't have enough room in the target directory. What type of UNIX do you have and are both systems running the same OS main version?
munch9
Premium Member
Premium Member
Posts: 34
Joined: Fri Sep 15, 2006 7:26 am

Post by munch9 »

The size may not be exceeding the file system limit but it may be exceeding the users limit.

Log on to the destination machine using the same id as you do when running the FTP and enter the command. ulimit -a

This will show if the user is limited to the size of file they can create. Post the o/p here if you are unsure.
jyothisdasms
Participant
Posts: 33
Joined: Wed May 19, 2010 12:15 am
Location: Pune

Post by jyothisdasms »

I used the command ulimit -a and i am getting the o/p as

Time- Unlimited
file(Blocks)-2097151
data(Kbytes)-131072
Stack(Kbytes)-32768
memory(Kbytes)-32768
Coredump(blocks)-2097151
nofiles(descriptors)-10240

What does it mean?Cant i transfer a file of size > 131072KB?
Please help me to figure it out

Thanks in Advance!
" Dream like you will live forever, live like you will die today."
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I think that Munch9 has found the cause of your problem. If you are getting 1Gb and divide that by 2097151 that works out to a block size of 512 (a common block size for many UNIX and file system variants). Get your administrator to change that user's maximum file size.
munch9
Premium Member
Premium Member
Posts: 34
Joined: Fri Sep 15, 2006 7:26 am

Post by munch9 »

jyothisdasms, I can't see all of ArndW's response so he may have already covered it but yes, this is the issue.

You need your unix admin to increase the file size limit.
As you have already created the file on the 7.5 server just check the ulimit of that user and make the user on the 8.1 machine the same.
jyothisdasms
Participant
Posts: 33
Joined: Wed May 19, 2010 12:15 am
Location: Pune

Post by jyothisdasms »

Thank you guys

You are right..In 7.5 server file size limit is 'Unlimited'.That is why i am able to transfer files in that one .In 8.1 i have only limited file size as you said.
" Dream like you will live forever, live like you will die today."
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The limit is not in DataStage - it's in UNIX, which is why you can address the problem with the UNIX ulimit command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply