Changes between Version 1 and Version 2 of waue/2011/0803


Ignore:
Timestamp:
Aug 3, 2011, 5:21:22 PM (13 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2011/0803

    v1 v2  
     1
     2 * error log
    13
    24{{{
    3 $ vim /opt/hadoop-0.20/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
     5#!text
     6org.apache.jasper.JasperException: Unable to compile class for JSP:
     7
     8An error occurred at line: 128 in the jsp file: /dfshealth.jsp
     9The method getFSImage() from the type FSNamesystem is not visible
     10125:              HttpServletRequest request)
     11126:   throws IOException {
     12127:      long underReplicatedBlocks = fsn.getUnderReplicatedBlocks();
     13128:      FSImage fsImage = fsn.getFSImage();
     14129:     
     15130:
     16131:      List<Storage.StorageDirectory> removedStorageDirs = fsImage.getRemovedStorageDirs();
     17
     18
     19An error occurred at line: 131 in the jsp file: /dfshealth.jsp
     20The method getRemovedStorageDirs() from the type FSImage is not visible
     21128:      FSImage fsImage = fsn.getFSImage();
     22129:     
     23130:
     24131:      List<Storage.StorageDirectory> removedStorageDirs = fsImage.getRemovedStorageDirs();
     25132:      String storageDirsSizeStr="", removedStorageDirsSizeStr="", storageDirsStr="", removedStorageDirsStr="", storageDirsDiv="", removedStorageDirsDiv="";
     26133:
     27134:      //FS Image storage configuration
     28
     29
     30Stacktrace:
     31        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
     32        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
     33        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
     34        org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
     35        org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
     36        org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
     37        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)
     38        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
     39        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
     40        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
     41        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
     42
     43
    444
    545}}}
    646
     47
     48 *  解決 dfshealth.jsp 的  bug
     49
     50 * vim /opt/hadoop-0.20/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
     51
    752{{{
    8 #!text
     53#!java
    954  public FSImage getFSImage() {
    1055    return dir.fsImage;
     
    1257
    1358}}}
     59
     60 * /opt/hadoop-0.20/src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSImage.java
     61
     62{{{
     63#!java
     64..(208)
     65  public List<StorageDirectory> getRemovedStorageDirs() {
     66          return this.removedStorageDirs;
     67  }
     68}}}