Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.9.1
-
CentOS Linux release 7.4.1708
Description
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 "$@"
Thank you, I will solve it.
Attachments
Issue Links
- links to