I have a problem with sqoop tool. Split-by commad doesn't work. The complete command I'm using is this:
sqoop import --connect <url_string> \
--username <username> \
--password <pasword > \
--query 'SELECT * FROM test WHERE $CONDITIONS' \
--split-by col1 \
--target-dir ~/test2 \
--boundary-query "select min(col1), max(col1) from test"
It just says that --split-by command is not found.
I've tried with col1 beeing primary key, not null, and with no constraint at all. It's allways the same error.
When I'm not using split-by, and when col1 is primary key, it works, but with split-by it doesn't.
Can somebody, please, tell me is this command wrong or maybe it has something to do with sqoop version or the fact that I'm using postgresql database?