Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Multiple tables export with Sqoop in a Oozie workflow

Solved Go to solution
Highlighted

Multiple tables export with Sqoop in a Oozie workflow

Hi,

What is the best way to have an Oozie action performing a multiple tables export using Sqoop?

Context:

  • I have a HDFS directory containing one file per destination table but the number of files is not constant over time
  • The filename allows me to know what is the name of the target table

I'd like to have one single Oozie action calling Sqoop to export all the files in the target database.

Is it something we can do? What are the available options?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Multiple tables export with Sqoop in a Oozie workflow

Ah just read that its an export. But again I don't think there is any automated way to do that.

So I suppose your only choice is to make a custom shell/ssh action that runs a script ( shell, python ... ) that lists the files from the directory and then executes sqoop jobs for them. Would be my approach.

2 REPLIES 2

Re: Multiple tables export with Sqoop in a Oozie workflow

Ah just read that its an export. But again I don't think there is any automated way to do that.

So I suppose your only choice is to make a custom shell/ssh action that runs a script ( shell, python ... ) that lists the files from the directory and then executes sqoop jobs for them. Would be my approach.

Re: Multiple tables export with Sqoop in a Oozie workflow

Hi @Benjamin Leonhardi, thanks for your answer, it confirms what I read so far. I'll go that way, thanks again.