217.Sqoop Export – Using update-mode – allow-insert
Command to merge data using update-mode sqoop export –connect jdbc:mysql://ms.itversity.com:3306/retail_export –username retail_user –password itversity –export-dir /apps/hive/warehouse/training_sqoop_retail.db/daily_revenue –table training_daily_revenue –update-key order_date –update-mode allowinsert Command to connect to mysql mysql -u retail_user -h ms.itversity.com -p Command to connect to a database USE retail_export; To validate table SELECT count(1) FROM training_daily_revenue; SELECT * FROM training_daily_revenue WHERE order_date LIKE …
217.Sqoop Export – Using update-mode – allow-insert Read More »