You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "VGalaxies (via GitHub)" <gi...@apache.org> on 2023/08/19 02:05:49 UTC
[GitHub] [incubator-hugegraph] VGalaxies opened a new pull request, #2289: fix: assemble executable jar for pd and store
VGalaxies opened a new pull request, #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289
<!--
Thank you very much for contributing to Apache HugeGraph, we are happy that you want to help us improve it!
Here are some tips for you:
1. If this is your first time, please read the [contributing guidelines](https://github.com/apache/hugegraph/blob/master/CONTRIBUTING.md)
2. If a PR fix/close an issue, type the message "close xxx" (xxx is the link of related
issue) in the content, GitHub will auto link it (Required)
3. Name the PR title in "Google Commit Format", start with "feat | fix | perf | refactor | doc | chore",
such like: "feat(core): support the PageRank algorithm" or "fix: wrong break in the compute loop" (module is optional)
skip it if you are unsure about which is the best component.
4. One PR address one issue, better not to mix up multiple issues.
5. Put an `x` in the `[ ]` to mark the item as CHECKED. `[x]` (or click it directly after
published)
-->
## Purpose of the PR
fix https://github.com/apache/incubator-hugegraph/pull/2275
<!--
Please explain more context in this section, clarify why the changes are needed.
e.g:
- If you propose a new API, clarify the use case for a new API.
- If you fix a bug, you can clarify why it is a bug, and should be associated with an issue.
-->
refer to https://hugegraph.feishu.cn/wiki/UfL0w2m8Aiekl9kHsedc8jQKnN7#QuiKdmz2ZoY3WMxqkiaczvc6nKb
## Main Changes
<!-- Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. These change logs are helpful for better ant faster reviews.)
For example:
- If you introduce a new feature, please show detailed design here or add the link of design documentation.
- If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
- If there is a discussion in the mailing list, please add the link. -->
Due to the change of `hugegraph-pd`'s parent from `spring-boot-starter-parent` to `hugegraph`, and `hugegraph`'s parent being `apache`, along with modifications to the `artifactId` of certain sub-modules (for example, `hugegraph-pd` to `hg-pd-service`), the following steps need to be taken:
1. Modify the descriptor of the `maven-assembly-plugin`, which involves adjusting the collected jar package names accordingly.
2. Update the corresponding jar package names in the startup script.
3. Since `hugegraph-pd` is started using SpringBoot, the `spring-boot-maven-plugin` needs to be reconfigured.
## Verifying these changes
<!-- Please pick the proper options below -->
- [x] Trivial rework / code cleanup without any test coverage. (No Need)
- [ ] Already covered by existing tests, such as *(please modify tests here)*.
- [ ] Need tests and can be verified as follows:
- xxx
## Does this PR potentially affect the following parts?
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] Nope
- [ ] Dependencies (add/update license info) <!-- Don't forget to add/update the info in "LICENSE" & "NOTICE" files (both in root & dist module) -->
- [x] Modify configurations
- [ ] The public API
- [ ] Other affects (typed here)
## Documentation Status
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `Doc - TODO` <!-- Your PR changes impact docs and you will update later -->
- [ ] `Doc - Done` <!-- Related docs have been already added or updated -->
- [x] `Doc - No Need` <!-- Your PR changes don't impact/need docs -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1299937571
##########
hugegraph-pd/hg-pd-service/pom.xml:
##########
@@ -138,11 +144,13 @@
<executions>
<execution>
<configuration>
- <classifier>spring-boot</classifier>
<mainClass>
org.apache.hugegraph.pd.boot.HugePDServer
</mainClass>
</configuration>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
Review Comment:
we need some comment here?
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -115,7 +115,7 @@ echo "Starting HugeGraphPDServer..."
# Turn on security check
exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
Review Comment:
could also add `process name` param for it..... refer server/toolchain/computer, so as `store`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308568144
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -114,8 +114,8 @@ fi
echo "Starting HugeGraphPDServer..."
# Turn on security check
-exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
- ${LIB}/hugegraph-pd-*.jar >> ${OUTPUT} 2>&1 &
+exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \
Review Comment:
```suggestion
exec ${JAVA} -Dname="HugeGraphPD" ${JAVA_OPTIONS} -jar \
```
TODO:
we could better get the `jar` version for the process suffix, like `HugeGraphServer-1.0` | `HugeGraphPD-1.5` to let users know the version directly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#issuecomment-1686078633
could also refer the toolchain PR:
https://github.com/apache/incubator-hugegraph-toolchain/commit/025c5ab86be0bb4f3a0c4c1d1d8834580715388a#diff-a97944bbb4e440a8f7f8ef46f83479ecaa1cd8da2fb1e88437b2acab9d8f842f
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308568144
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -114,8 +114,8 @@ fi
echo "Starting HugeGraphPDServer..."
# Turn on security check
-exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
- ${LIB}/hugegraph-pd-*.jar >> ${OUTPUT} 2>&1 &
+exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \
Review Comment:
```suggestion
exec ${JAVA} -Dname="HugeGraphPD" ${JAVA_OPTIONS} -jar \
```
**TODO:**
@VGalaxies we could better get the `jar` version for the ** suffix of name**, like `HugeGraphServer-1.0` | `HugeGraphPD-1.5` to let users know the version directly
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -114,8 +114,8 @@ fi
echo "Starting HugeGraphPDServer..."
# Turn on security check
-exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
- ${LIB}/hugegraph-pd-*.jar >> ${OUTPUT} 2>&1 &
+exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \
Review Comment:
```suggestion
exec ${JAVA} -Dname="HugeGraphPD" ${JAVA_OPTIONS} -jar \
```
**TODO:**
@VGalaxies we could better get the `jar` version for the **suffix of name**, like `HugeGraphServer-1.0` | `HugeGraphPD-1.5` to let users know the version directly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308573724
##########
hugegraph-pd/hg-pd-service/pom.xml:
##########
@@ -138,11 +144,13 @@
<executions>
<execution>
<configuration>
- <classifier>spring-boot</classifier>
<mainClass>
org.apache.hugegraph.pd.boot.HugePDServer
</mainClass>
</configuration>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
Review Comment:
> refer to [docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#packaging](https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#packaging)
fine, better to add url refer for it in future, currently leave this in PR context
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308568144
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -114,8 +114,8 @@ fi
echo "Starting HugeGraphPDServer..."
# Turn on security check
-exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
- ${LIB}/hugegraph-pd-*.jar >> ${OUTPUT} 2>&1 &
+exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \
Review Comment:
```suggestion
exec ${JAVA} -Dname="HugeGraphPD" ${JAVA_OPTIONS} -jar \
```
**TODO:**
@VGalaxies we could better get the `jar` version for the **name suffix**, like `HugeGraphServer-1.0` | `HugeGraphPD-1.5` to let users know the version directly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin merged pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin merged PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308568144
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -114,8 +114,8 @@ fi
echo "Starting HugeGraphPDServer..."
# Turn on security check
-exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
- ${LIB}/hugegraph-pd-*.jar >> ${OUTPUT} 2>&1 &
+exec ${JAVA} -Dname="HugeGraphPd" ${JAVA_OPTIONS} -jar \
Review Comment:
```suggestion
exec ${JAVA} -Dname="HugeGraphPD" ${JAVA_OPTIONS} -jar \
```
**TODO:**
we could better get the `jar` version for the process suffix, like `HugeGraphServer-1.0` | `HugeGraphPD-1.5` to let users know the version directly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] VGalaxies commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "VGalaxies (via GitHub)" <gi...@apache.org>.
VGalaxies commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308404361
##########
hugegraph-pd/hg-pd-dist/src/assembly/static/bin/start-hugegraph-pd.sh:
##########
@@ -115,7 +115,7 @@ echo "Starting HugeGraphPDServer..."
# Turn on security check
exec ${JAVA} ${JAVA_OPTIONS} -jar -Dspring.config.location=${CONF}/application.yml \
Review Comment:
add `process name` param for `pd`
`store` already added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] VGalaxies commented on a diff in pull request #2289: fix: assemble executable jar for pd and store
Posted by "VGalaxies (via GitHub)" <gi...@apache.org>.
VGalaxies commented on code in PR #2289:
URL: https://github.com/apache/incubator-hugegraph/pull/2289#discussion_r1308403332
##########
hugegraph-pd/hg-pd-service/pom.xml:
##########
@@ -138,11 +144,13 @@
<executions>
<execution>
<configuration>
- <classifier>spring-boot</classifier>
<mainClass>
org.apache.hugegraph.pd.boot.HugePDServer
</mainClass>
</configuration>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
Review Comment:
refer to https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#packaging
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org