Thanks for your comment. I found out that the problem is the content of my password file. I should use -n option while using echo command. For instance, echo -n password > .password This is the reason in my case. However, It is apparent that your comment will help at other cases. Again, Thank you.
Best regards, - Mungeol On Tue, Dec 30, 2014 at 1:00 AM, Dhandapani, Karthik <[email protected]> wrote: > Hi, > > Check your permissions of /tester subdirectory and permissions of file > .password. > > We have drwx------ permissions for the subdirectory to the user running the > job and -rw------- permissions for the .password file for the user running > the job. > > > Thanks, > Karthik > > > -----Original Message----- > From: Mungeol Heo [mailto:[email protected]] > Sent: Monday, December 29, 2014 1:58 AM > To: [email protected] > Subject: Access deny while using '--password-file' option > > Hi, > > It is OK when I use '--password' option. > However, if I try to use '--password-file' option, it gives me ' > Access denied for user 'tester'@'10.0.2.82' (using password: YES)'. > > BTW, the path of password file is /user/tester/.password at HDFS, and I am > using sqoop2 at CDH 5.1.2-1.cdh5.1.2.p0.3. > > Any help will be great. > Thanks. > > - Mungeol
