I have a MySQL table called dept which I load to Hive EXTERNAL table dept table as incremental append check-column last-value based on a time stamp column ts.
This is working fine and now I want to add dynamic partition to my hive table dept based on dept_name and ts columns.
I know that I can create table dynamic partition outside sqoop but need help in loading data to dynamic partitions. I saw one example using --hive-partition-key & --hive-partition-value but there the value is hard coded. Without hard coding the hive-partition-values, can I load data automatically to corresponding partitions using SQOOP say (dept1,timestamp1/dept1,timestamp2..etc) and (dept2,timestamp1/dept2,timestamp2...etc)?