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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
