Sqoop import failing with "exception: Java Heap space" when there are no records in Oracle source table. I used a fetchsize of 75000 in sqoop import.
sqoop import successfully ran when I removed fetch-size 75000 though no records in source table.
I am standardizing the Sqoop import job which can be used for many other tables. And suppose in production, if there are no records, job should not fail. how to avoid this situation. And why it is failing when using bigger fetch-size.
Thanks