sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Jarcec Cecho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-1294) Newline or EOL character detected by --password-file parameter
Date Wed, 23 Jul 2014 15:24:38 GMT

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

Jarek Jarcec Cecho updated SQOOP-1294:
--------------------------------------

    Description: 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.  (was: 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.)

> 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
>              Labels: newbie
>         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