Cannot create directory while sqoop import


Hi i am trying to do sqoop import and i see there is an IOExceptio like cannot create directory

Encountered IOException running import job: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot cr
eate directory /user/nethakanirahul9115/.staging. Name node is in safe mode

here is my sqoop import

sqoop import --connect “jdbc:mysql://cxln2.c.thelab-240901.internal:3306/retail_db” --table orders --username=sqoopuser --password NHkkP876rp --target-dir /user/nethakanirahul9115/retail_db_orders

pitucre attached


Could you try now?

One of the machine that was having namenode had to be restarted. It takes sometime for a namenode to come to normal state.

Now, it seems to be fine.