In your query there should be space after table name, currently table name & \ is continues.
(e.g)–table departments_ls \
When I try with lines terminated as ‘:’ it copied 12 rows from mysql to hdfs during import, For export it copied back only 2 rows. But its working fine with \n though.
CREATE TABLE departments_ls AS SELECT * FROM retail_db.departments WHERE 1=2;