You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by "Nailcui (via GitHub)" <gi...@apache.org> on 2023/11/18 03:00:50 UTC
[PR] ZOOKEEPER-4770: zkSnapshotRecursiveSummaryToolkit.sh Error: Could not find or load main class [zookeeper]
Nailcui opened a new pull request, #2091:
URL: https://github.com/apache/zookeeper/pull/2091
When I execute the following code to analyze the snapshot file:
```
./bin/zkSnapshotRecursiveSummaryToolkit.sh /data/version-2/snapshot.c00000009 / 2
```
Getting this error:
```
Error: Could not find or load main class
```
I checked the source code and found that $JVMFLAGS was surrounded by quotation marks. This problem occurs when the variable $JVMFLAGS is empty.
```
"$JAVA" -cp "$CLASSPATH" "$JVMFLAGS" \
org.apache.zookeeper.server.SnapshotRecursiveSummary "$@"
```
The correct code should be like this
```
"$JAVA" -cp "$CLASSPATH" $JVMFLAGS \
org.apache.zookeeper.server.SnapshotRecursiveSummary "$@"
```
--
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: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ZOOKEEPER-4770: zkSnapshotRecursiveSummaryToolkit.sh Error: Could not find or load main class [zookeeper]
Posted by "maoling (via GitHub)" <gi...@apache.org>.
maoling commented on PR #2091:
URL: https://github.com/apache/zookeeper/pull/2091#issuecomment-1928950243
@nailcui
Thanks for your contribution.
--
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: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ZOOKEEPER-4770: zkSnapshotRecursiveSummaryToolkit.sh Error: Could not find or load main class [zookeeper]
Posted by "maoling (via GitHub)" <gi...@apache.org>.
maoling merged PR #2091:
URL: https://github.com/apache/zookeeper/pull/2091
--
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: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org