Day: March 16, 2023

202.Sqoop Import – Understanding Execution Flow while importing into Hive Table

Command to import data into hive table with log files sqoop import –connect jdbc:mysql://ms.itversity.com:3306 –username retail_user –password itversity –table orders –hive-import –hive-database training_sqoop_retail –hive-overwrite –verbose 2>sqoopimport.err 1>sqoopimport.out Command to get list of files as specified Is -Itr sqoopimport.* To view file view sqoopimport.err Command to import data into hive table with log files without using …

202.Sqoop Import – Understanding Execution Flow while importing into Hive Table Read More »

201.Sqoop Import – Managing Table using Hive Import – Error out – create-hive-table

Command to import table into hive and give error if table already exists sqoop import –connect jdbc:mysql://ms.itversity.com:3306/retail_db –username retail_user –password itversity –table orders –hive-import –hive-database training_sqoop_retail –create-hive-table To validate files in directory hadoop fs -Is /user/training/orders Command to remove files in directory hadoop fs -rm -R /user/training/orders Command to import data into hive sqoop import …

201.Sqoop Import – Managing Table using Hive Import – Error out – create-hive-table Read More »