Hello i try to insert as400 table to hive table, so i create a hive table with the same schema of the as400 table but i add a columns processedate (timestamp) this is my hive table:
CREATE external TABLE IF NOT EXISTS default.AS400TEST (
One INT,
Two STRING,
..
N INT
)
PARTITIONED BY (processedate TIMESTAMP)
STORED AS TEXTFILE
location '/tmp/AS400TEST;
I run this sqoop command:
sqoop import --verbose --driver $DRIVER_CLASS --connect $URL --username $LOGIN --password $PASSWORD \
--table $TABLE \
--target-dir $DIR \
-m 1 --hive-import --hive-table default.AS400TEST \
--hive-partition-key "processedate"
My problem is that the map remains on 0% for more than 30 min and i kill the job. did i need to change Something?
Another question: how to insert the column timestamp with sqoop?