sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject sqoop git commit: SQOOP-1970: Add warning about trailing whitespace characters when using password file to User guide
Date Tue, 06 Jan 2015 01:52:46 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk 1eca8219c -> 8b6eb33f1


SQOOP-1970: Add warning about trailing whitespace characters when using password file to User
guide

(Jarek Jarcec Cecho via Abraham Elmahrek)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/8b6eb33f
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/8b6eb33f
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/8b6eb33f

Branch: refs/heads/trunk
Commit: 8b6eb33f1720f9b25732903a5519d91587e31c39
Parents: 1eca821
Author: Abraham Elmahrek <abe@apache.org>
Authored: Mon Jan 5 17:02:20 2015 -0800
Committer: Abraham Elmahrek <abe@apache.org>
Committed: Mon Jan 5 17:02:20 2015 -0800

----------------------------------------------------------------------
 src/docs/user/connecting.txt | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/8b6eb33f/src/docs/user/connecting.txt
----------------------------------------------------------------------
diff --git a/src/docs/user/connecting.txt b/src/docs/user/connecting.txt
index fd812c0..6f31c60 100644
--- a/src/docs/user/connecting.txt
+++ b/src/docs/user/connecting.txt
@@ -60,6 +60,15 @@ $ sqoop import --connect jdbc:mysql://database.example.com/employees \
     --username venkatesh --password-file ${user.home}/.password
 ----
 
+WARNING: Sqoop will read entire content of the password file and use it as
+a password. This will include any trailing white space characters such as
+new line characters that are added by default by most of the text editors.
+You need to make sure that your password file contains only characters
+that belongs to your password. On the command line you can use command
++echo+ with switch +-n+ to store password without any trailing white space
+characters. For example to store password +secret+ you would call
++echo -n "secret" > password.file+.
+
 Another way of supplying passwords is using the +-P+ argument which will
 read a password from a console prompt.
 


Mime
View raw message