Modify the version of ozone-runner (#2078)
diff --git a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/ProfileServlet.java b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/ProfileServlet.java
index 56c4f78..59d6631 100644
--- a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/ProfileServlet.java
+++ b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/ProfileServlet.java
@@ -107,6 +107,10 @@
* // Java events:
* // alloc
* // lock
+ * Note for version usage:
+ * The default output format of the newest async profiler is HTML.
+ * If the user is using an older version such as 1.5, HTML is not supported.
+ * Please specify the corresponding output format.
*/
public class ProfileServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@@ -447,10 +451,10 @@
try {
return Output.valueOf(outputArg.trim().toUpperCase());
} catch (IllegalArgumentException e) {
- return Output.SVG;
+ return Output.FLAMEGRAPH;
}
}
- return Output.SVG;
+ return Output.FLAMEGRAPH;
}
private void setResponseHeader(final HttpServletResponse response) {
@@ -516,9 +520,11 @@
TRACES,
FLAT,
COLLAPSED,
+ // No SVG in 2.x asyncprofiler.
SVG,
TREE,
JFR,
+ // In 2.x asyncprofiler, this is how you get flamegraphs.
FLAMEGRAPH
}
diff --git a/hadoop-ozone/dist/pom.xml b/hadoop-ozone/dist/pom.xml
index 8cc3f13..8318347 100644
--- a/hadoop-ozone/dist/pom.xml
+++ b/hadoop-ozone/dist/pom.xml
@@ -28,7 +28,7 @@
<properties>
<file.encoding>UTF-8</file.encoding>
<downloadSources>true</downloadSources>
- <docker.ozone-runner.version>20210302-1</docker.ozone-runner.version>
+ <docker.ozone-runner.version>20210329-1</docker.ozone-runner.version>
</properties>
<build>