5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-16 17:00:53 +08:00

SQOOP-453. Oozie does not work with Sqoop metastore.

(Cheolsoo Park via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1330263 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jarek Jarcec Cecho 2012-04-25 13:13:58 +00:00
parent 8a1052cf9c
commit d3ef140fe8
2 changed files with 16 additions and 1 deletions

View File

@ -168,6 +168,9 @@ prompted for that password each time you execute the job.
You can enable passwords in the metastore by setting
+sqoop.metastore.client.record.password+ to +true+ in the configuration.
Note that you have to set +sqoop.metastore.client.record.password+ to +true+
if you are executing saved jobs via Oozie because Sqoop cannot prompt the user
to enter passwords while being executed as Oozie tasks.
Saved jobs and incremental imports
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1029,7 +1029,19 @@ public Properties getMapColumnJava() {
* @return the password as a string
*/
private String securePasswordEntry() {
try {
return new String(System.console().readPassword("Enter password: "));
} catch (NullPointerException e) {
LOG.error("It seems that you have launched a Sqoop metastore job via");
LOG.error("Oozie with sqoop.metastore.client.record.password disabled.");
LOG.error("But this configuration is not supported because Sqoop can't");
LOG.error("prompt the user to enter the password while being executed");
LOG.error("as Oozie tasks. Please enable sqoop.metastore.client.record");
LOG.error(".password in sqoop-site.xml, or provide the password");
LOG.error("explictly using --password in the command tag of the Oozie");
LOG.error("workflow file.");
return null;
}
}
/**