How to import data files in parallel

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Johnny0638
Participant
Posts: 5
Joined: Tue May 26, 2015 8:27 am

How to import data files in parallel

Post by Johnny0638 »

We use the osh scripts to run the DS jobs, and we have configure the config.apt file to run it in 3 servers 6 nodes.
But we found that the import progress is only run in 1 server, the other operaters is running in 3 servers.
We have huge data files, and the import progress take too much time, i think it is the bottleneck in performance.
How to import data files in parallel?
Thanks!
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Unless your input sequential file has a fixed line length, your reader process must run sequentially and can only run on one server and on one node.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Have you thought of taking a sample file for the import table definition?

something like:

Code: Select all

head -1000 source_file.txt > source_sample.txt
IHTH (I Hope This Helps),
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Import as in the operator, Roy... i.e. read the file.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: How to import data files in parallel

Post by ray.wurlod »

Johnny0638 wrote:How to import data files in parallel?
Specify the multiple readers per node property.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply