mirror of
https://github.com/apache/sqoop.git
synced 2025-05-17 01:11:07 +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:
parent
8a1052cf9c
commit
d3ef140fe8
@ -168,6 +168,9 @@ prompted for that password each time you execute the job.
|
|||||||
You can enable passwords in the metastore by setting
|
You can enable passwords in the metastore by setting
|
||||||
+sqoop.metastore.client.record.password+ to +true+ in the configuration.
|
+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
|
Saved jobs and incremental imports
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -1029,7 +1029,19 @@ public Properties getMapColumnJava() {
|
|||||||
* @return the password as a string
|
* @return the password as a string
|
||||||
*/
|
*/
|
||||||
private String securePasswordEntry() {
|
private String securePasswordEntry() {
|
||||||
return new String(System.console().readPassword("Enter password: "));
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user