mirror of
https://github.com/apache/sqoop.git
synced 2025-05-06 17:01:59 +08:00
SQOOP-1419: Sqoop2: From/To: Check TO connection is enabled
(Abraham Elmahrek via Jarek Jarcec Cecho)
This commit is contained in:
parent
69f03d47b6
commit
1d4b9e96cf
@ -288,6 +288,11 @@ public MSubmission submit(long jobId, HttpEventContext ctx) {
|
||||
"Connection id: " + fromConnection.getPersistenceId());
|
||||
}
|
||||
|
||||
if (!toConnection.getEnabled()) {
|
||||
throw new SqoopException(FrameworkError.FRAMEWORK_0010,
|
||||
"Connection id: " + toConnection.getPersistenceId());
|
||||
}
|
||||
|
||||
SqoopConnector fromConnector =
|
||||
ConnectorManager.getInstance().getConnector(job.getConnectorId(ConnectorType.FROM));
|
||||
SqoopConnector toConnector =
|
||||
|
Loading…
Reference in New Issue
Block a user