Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-24-2018 02:39 AM
Created 03-24-2018 10:10 PM
If you are talking about a Sqoop Import, that's the only tag with your question :), it is always highly recommended to use an Integral column as split-by. But since you have only string/varchar columns in your data source, you can try following options based on the data that you have.
WHERE clause and run sqoop few times with num-mappers=1, orLet know if you need any other help!
Created 03-24-2018 10:10 PM
If you are talking about a Sqoop Import, that's the only tag with your question :), it is always highly recommended to use an Integral column as split-by. But since you have only string/varchar columns in your data source, you can try following options based on the data that you have.
WHERE clause and run sqoop few times with num-mappers=1, orLet know if you need any other help!
Created 03-27-2018 12:32 AM
If the answer helped solving your query, please mark the answer as accepted 🙂
Created 03-27-2018 09:06 AM
thank you for answering my questions sir, do you mean I have to alter the table in mysql when adding surrogate int PK?
Created 07-08-2018 04:04 AM
I want to use the third option on the split-by but i am not seeing example of how to pass in that value. I have tried with single quote 'cast(id as unsigned)' and it throws error saying column not found on the sqoop run.