We are using sqoop to ingest data onto HDFS from Oracle. Because we have some additional operational requirements, like publishing the status of sqoop import into a operational database, building sql queries to import, dynamically based on the parameters passed etc.. we are invoking Sqoop from our Java application. We are directly calling ImportTool.
The sample code is available here
I see that ImportTool is decrecated. So I have two questions
1. Is this way of using sqoop from within Java application something that people use?
2. Because ImportTool is depcrecated, what is the alternative recommended way?