I’m getting the following error when attempting to write to HDFS as part of my sqoop application
/*
could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and no node(s) are excluded in this operation.
*/
This error is caused by the block replication system of HDFS since it could not manage to make any copies of a specific block within the focused file
Please find the below sqoop command
sqoop import
–connect “jdbc:mysql://ip-172-31-13-154:3306/retail_db”
–username sqoopuser
–password NHkkP876rp \
–table weather
–target-dir /user/…