Hey guys,
I am working on a connector which connects to a sharded mysql cluster as
the source. I built out the connector jar with its
sqoopconnector.properties.
And I tried to make sqoop pick up the jar a couple of ways
1) Add the path to the jar in "common.loader" property in
catalina.properties: This gives a NoClassDefFound on the
SqoopConnector.class since it is probably in tomcat's system loader, which
may be referenceable by external libs.
2) Randomly placing the connector jar in shared/server loader, which also
did not work.
Wound up adding the connector as a dependency in sqoop-server's pom and it
worked. (sort of validates the theory in 1)
I am probably a tomcat noob, so please let me know if there is a cleaner
way to do this or supported documentation .. Or if this is an open issue,
happy to work on a patch..
Thanks
Vinoth
|