Tabnine Logo
FsckServlet.getServletContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getServletContext
method
in
org.apache.hadoop.hdfs.server.namenode.FsckServlet

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.FsckServlet.getServletContext (Showing top 5 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

final InetAddress remoteAddress = 
 InetAddress.getByName(request.getRemoteAddr());
final ServletContext context = getServletContext();    
final Configuration conf = NameNodeHttpServer.getConfFromContext(context);
origin: com.facebook.hadoop/hadoop-core

 @SuppressWarnings("unchecked")
 public void doGet(HttpServletRequest request,
          HttpServletResponse response
          ) throws ServletException, IOException {
  Map<String,String[]> pmap = request.getParameterMap();
  ServletContext context = getServletContext();
  NameNode nn = (NameNode) context.getAttribute("name.node");
  Configuration conf = (Configuration) context.getAttribute("name.conf");
  NamenodeFsck fscker = new NamenodeFsck(conf, nn, pmap, response);
  fscker.fsck();
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

final InetAddress remoteAddress = 
 InetAddress.getByName(request.getRemoteAddr());
final ServletContext context = getServletContext();    
final Configuration conf = NameNodeHttpServer.getConfFromContext(context);
origin: org.jvnet.hudson.hadoop/hadoop-core

 @SuppressWarnings("unchecked")
 public void doGet(HttpServletRequest request,
          HttpServletResponse response
          ) throws ServletException, IOException {
  Map<String,String[]> pmap = request.getParameterMap();
  try {
   ServletContext context = getServletContext();
   NameNode nn = (NameNode) context.getAttribute("name.node");
   Configuration conf = (Configuration) context.getAttribute("name.conf");
   NamenodeFsck fscker = new NamenodeFsck(conf, nn, pmap, response);
   fscker.fsck();
  } catch (IOException ie) {
   StringUtils.stringifyException(ie);
   LOG.warn(ie);
   String errMsg = "Fsck on path " + pmap.get("path") + " failed.";
   response.sendError(HttpServletResponse.SC_GONE, errMsg);
   throw ie;
  }
 }
}
origin: io.prestosql.hadoop/hadoop-apache

final InetAddress remoteAddress = 
 InetAddress.getByName(request.getRemoteAddr());
final ServletContext context = getServletContext();    
final Configuration conf = NameNodeHttpServer.getConfFromContext(context);
org.apache.hadoop.hdfs.server.namenodeFsckServletgetServletContext

Popular methods of FsckServlet

  • getUGI

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now