summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordoufenghu <[email protected]>2024-03-17 20:26:12 +0800
committerdoufenghu <[email protected]>2024-03-17 20:26:12 +0800
commitaf576fbfa4ab21c69e3fc3f1ae249c406208de16 (patch)
treea44f3a58e71c88705c2591589af4aee0a9a21a2a
parent25994fade7720a43021b25004ade13c71f941e88 (diff)
[Feature][Shaded] Add guava-shaded module will output guava-shaded-33.0.0-jre.jar. Add yan-session job running command for README.md.
-rw-r--r--README.md9
-rw-r--r--groot-shaded/guava-shaded/pom.xml91
-rw-r--r--groot-shaded/pom.xml1
-rw-r--r--pom.xml4
4 files changed, 101 insertions, 4 deletions
diff --git a/README.md b/README.md
index 9c08686..6f3109e 100644
--- a/README.md
+++ b/README.md
@@ -96,12 +96,17 @@ Can be started by a daemon with `-d`.
- Run the following command to start the groot-stream server for Standalone Mode:
```shell
cd "groot-stream-${version}"
-./bin/start.sh -c ./config/grootstream_job_example.yaml --target remote -d -n inline-to-print-job
+./bin/start.sh -c ./config/grootstream_job_example.yaml --target remote -n inline-to-print-job -d
+```
+- Run the following command to start the groot-stream server for Yarn Session Mode:
+```shell
+cd "groot-stream-${version}"
+./bin/start.sh -c ./config/grootstream_job_example.yaml --target yarn-session -Dyarn.application.id=application_XXXX_YY -n inline-to-print-job -d
```
- Run the following command to start the groot-stream server for Yarn Per-job Mode:
```shell
cd "groot-stream-${version}"
-./bin/start.sh -c ./config/grootstream_job_example.yaml --target yarn-per-job -d -n inline-to-print-job
+./bin/start.sh -c ./config/grootstream_job_example.yaml --target yarn-per-job -n inline-to-print-job -d
```
### Configuring
diff --git a/groot-shaded/guava-shaded/pom.xml b/groot-shaded/guava-shaded/pom.xml
new file mode 100644
index 0000000..2ce1eeb
--- /dev/null
+++ b/groot-shaded/guava-shaded/pom.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.geedgenetworks</groupId>
+ <artifactId>groot-shaded</artifactId>
+ <version>${revision}</version>
+ </parent>
+
+ <artifactId>guava-shaded</artifactId>
+ <name>Groot : Shaded : Guava</name>
+
+ <properties>
+ <guava.version>33.0.0-jre</guava.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>${guava.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <finalName>guava-shaded-${guava.version}</finalName>
+ <createSourcesJar>true</createSourcesJar>
+ <shadeSourcesContent>true</shadeSourcesContent>
+ <shadedArtifactAttached>false</shadedArtifactAttached>
+ <createDependencyReducedPom>false</createDependencyReducedPom>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <relocations>
+ <relocation>
+ <pattern>com.google</pattern>
+ <shadedPattern>${grootstream.shaded.package}.com.google</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${basedir}/target/guava-shaded-${guava.version}.jar</file>
+ <type>jar</type>
+ <classifier>optional</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+
+
+</project> \ No newline at end of file
diff --git a/groot-shaded/pom.xml b/groot-shaded/pom.xml
index 422515c..2fe1720 100644
--- a/groot-shaded/pom.xml
+++ b/groot-shaded/pom.xml
@@ -17,6 +17,7 @@
<module>hbase-client-shaded</module>
<module>protobuf-shaded</module>
<module>http-client-shaded</module>
+ <module>guava-shaded</module>
</modules>
<properties>
diff --git a/pom.xml b/pom.xml
index ca8b732..73a6cfe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
</modules>
<properties>
- <revision>1.2.0-rc</revision>
+ <revision>1.2.0</revision>
<java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>${java.version}</maven.compiler.source>
@@ -52,7 +52,7 @@
<jsonpath.version>2.4.0</jsonpath.version>
<fastjson2.version>2.0.32</fastjson2.version>
<hutool.version>5.8.22</hutool.version>
- <galaxy.version>2.0.1</galaxy.version>
+ <galaxy.version>2.0.2</galaxy.version>
<guava-retrying.version>2.0.0</guava-retrying.version>
<ipaddress.version>5.3.3</ipaddress.version>
<aviator.version>5.2.6</aviator.version>