You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Dr. Wendell Urth (JIRA)" <ji...@apache.org> on 2014/06/06 18:24:03 UTC

[jira] [Updated] (SQOOP-1294) Newline or EOL character detected by --password-file parameter

     [ https://issues.apache.org/jira/browse/SQOOP-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dr. Wendell Urth updated SQOOP-1294:
------------------------------------

    Attachment: SQOOP-1294.patch

This patch adds a parameter that trims the loaded string off all trailing whitespace forms (via Java's String#trim)

> Newline or EOL character detected by --password-file parameter
> --------------------------------------------------------------
>
>                 Key: SQOOP-1294
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1294
>             Project: Sqoop
>          Issue Type: Bug
>          Components: connectors, connectors/mysql, connectors/sqlserver
>    Affects Versions: 1.4.3
>         Environment: Centos 6.5, CDH 4.5/4.6 with packaged Sqoop 1.4.3, ViM 7.2
>            Reporter: Devin Suiter
>         Attachments: SQOOP-1294.patch
>
>
> When importing using the --password-file parameter, I've found that if I create the file with the command 'vi filename', enter insert mode, type the password, write, and quit, the password is not recognized. Single- and double-quotes do not fix it. I've found that by running the command 'echo -n password > filename' the password will be recognized. It seems that the newline or EOL character is being read as part of the password. This has occurred with the MySQL connector and the MSSQLjdbc4 connector.



--
This message was sent by Atlassian JIRA
(v6.2#6252)