[ 
https://issues.apache.org/jira/browse/SQOOP-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267367#comment-14267367
 ] 

Jarek Jarcec Cecho commented on SQOOP-1821:
-------------------------------------------

I really like the option 2) with the variant to provide a configuration 
property that will contain directory where users are suppose to drop connectors 
and that {{ConnectorManager}} will search in it's {{initialize}} method and 
scan for connector jars and add them to the current classpath (e.g. Sqoop App 
classpath). This solution should work both when running in Tomcat and for tools 
that are running outside of Tomcat. As this is specific to Sqoop, I would 
suggest to put this configuration property into {{sqoop.properties}} file with 
some reasonable default (something like {{./lib/}}?) rather then putting it to 
{{catalina.properties}}.

> External connector loading in Sqoop2
> ------------------------------------
>
>                 Key: SQOOP-1821
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1821
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.99.5
>            Reporter: Veena Basavaraj
>            Assignee: Veena Basavaraj
>             Fix For: 1.99.5
>
>
> Edit this wiki to begin with
> https://cwiki.apache.org/confluence/display/SQOOP/Setting+up+Sqoop+2#SettingupSqoop2-InstallinganewconnectortoSqoop2
> Also, add the same to the .rst of need be
> relevant code that loads all connectors 
> https://github.com/apache/sqoop/blob/sqoop2/core/src/main/java/org/apache/sqoop/connector/ConnectorManagerUtils.java#L44
> NOTE : External contributors had issues with getting a new sqoop connector 
> working seamlessly with the Sqoop2. They had to do some hacks to include this 
> new jar into the class path. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to