Sqoop import failed

    at javax.security.auth.Subject.doAs(Subject.java:422)        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2307)        at org.apache.hadoop.ipc.Client.getRpcResponse(Client.java:1552)        at org.apache.hadoop.ipc.Client.call(Client.java:1496)        at org.apache.hadoop.ipc.Client.call(Client.java:1396)        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)        at com.sun.proxy.$Proxy10.mkdirs(Unknown Source)        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.mkdirs(ClientNamenodeProtocolTranslatorPB.java:603)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:498)        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:278)        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:194)        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:176)        at com.sun.proxy.$Proxy11.mkdirs(Unknown Source)        at org.apache.hadoop.hdfs.DFSClient.primitiveMkdir(DFSClient.java:3061)        ... 13 more17/06/08 14:19:22 INFO mapreduce.Job: Counters: 2        Job Counters                 Total time spent by all maps in occupied slots (ms)=0                Total time spent by all reduces in occupied slots (ms)=017/06/08 14:19:22 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead17/06/08 14:19:22 INFO mapreduce.ImportJobBase: Transferred 0 bytes in 15.2164 seconds (0 bytes/sec)17/06/08 14:19:22 WARN mapreduce.Counters: Group org.apache.hadoop.mapred.Task$Counter is deprecated. Use org.apache.hadoop.mapreduce.TaskCounter instead17/06/08 14:19:22 INFO mapreduce.ImportJobBase: Retrieved 0 records.17/06/08 14:19:22 ERROR tool.ImportTool: Error during import: Import job failed!

Could you paste the code you are trying to run?

[jeetendrasingh@gw01 ~]$ sqoop import \

–connect “jdbc:mysql://nn01.itversity.com:3306/retail_db”
–username retail_dba
–password itversity
–table departments
–target-dir=/usr/jeetendrasingh/demo/departments