sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dr. Wendell Urth (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-1294) Newline or EOL character detected by --password-file parameter
Date Fri, 06 Jun 2014 16:24:03 GMT

     [ 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)

Mime
View raw message