-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# FAQ | ||
|
||
* [Add jar to component's classpath](#add-jar) | ||
|
||
|
||
<div id="add-jar"/> | ||
# Add jar to component's classpath | ||
|
||
Because sometimes, a specific jar has to be added to a component (for example, an udf or a custom authentication), it is possible to add an extra configuration. | ||
|
||
* For the standalone mode, add `<component name>.extraClasspath=<groupId>:<artifactId>:<version>[,<groupId>:<artifactId>:<version>]` into file `hadoop-unit-default.properties` | ||
|
||
ex: | ||
|
||
```text | ||
pulsar.extraClasspath=com.clevercloud:biscuit-pulsar:1.0-SNAPSHOT,org.apache.logging.log4j:log4j-api:2.10.0 | ||
``` | ||
|
||
* For maven plugin mode, add the property `<<component name>>.extraClasspath><groupId>:<artifactId>:<version>[,<groupId>:<artifactId>:<version>]</<component name>.extraClasspath>` into the component's declaration | ||
|
||
ex: | ||
|
||
```xml | ||
<componentArtifact implementation="fr.jetoile.hadoopunit.ComponentArtifact"> | ||
<componentName>PULSAR</componentName> | ||
<artifactId>hadoop-unit-pulsar</artifactId> | ||
<groupId>fr.jetoile.hadoop</groupId> | ||
<version>${hadoop-unit.version}</version> | ||
<mainClass>fr.jetoile.hadoopunit.component.PulsarBootstrap</mainClass> | ||
<properties> | ||
<pulsar.extraClasspath>com.clevercloud:biscuit-pulsar:1.0-SNAPSHOT</pulsar.extraClasspath> | ||
</properties> | ||
</componentArtifact> | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters