Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

App Timeline Server failed to start with read-only webhdfs

App Timeline Server failed to start with read-only webhdfs

New Contributor

Timeline server fails to start because ambari-server is trying to set hdfs permission using read-only webhdfs:
timelinestderr.txt

timelineoutput.txt

With webhdfs disabled it works fine and with read-write webhdfs too. Write-operations are disabled by

"dfs.web.authentication.filter" set to

public class ReadOnlyAuthenticationFilter extends AuthFilter {
  @Override
  public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
    throws IOException, ServletException
  {
    final HttpServletRequest httpRequest = (HttpServletRequest)request;
    HttpServletResponse httpResponse = (HttpServletResponse) response;
    if (!"GET".equals(httpRequest.getMethod())) {
      httpResponse.sendError(HttpServletResponse.SC_FORBIDDEN, "WebHDFS is configured to allow read-only operations");
    } else {
      super.doFilter(request, response, filterChain);
    }
  }
}

Is there a way to force ambari server to use hdfs instead of webhdfs?