Skip to content

Commit a7ae7b8

Browse files
authored
YARN-11597. Fix NPE when loading static files in SLSWebApp
1 parent d7d772d commit a7ae7b8

File tree

1 file changed

+1
-0
lines changed
  • hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/web

1 file changed

+1
-0
lines changed

hadoop-tools/hadoop-sls/src/main/java/org/apache/hadoop/yarn/sls/web/SLSWebApp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public void start() throws Exception {
136136
String webRootDir = getClass().getClassLoader().getResource("html").
137137
toExternalForm();
138138
staticHandler.setResourceBase(webRootDir);
139+
staticHandler.start();
139140

140141
Handler handler = new AbstractHandler() {
141142
@Override

0 commit comments

Comments
 (0)