hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6067) HBase won't start when hbase.rootdir uses ViewFileSystem
Date Mon, 04 Jun 2012 17:28:23 GMT

    [ https://issues.apache.org/jira/browse/HBASE-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288708#comment-13288708
] 

Daryn Sharp commented on HBASE-6067:
------------------------------------

This code demonstrates that {{getDeclaredMethod}} only returns a method explicitly defined
in the class.
{code}
import java.lang.reflect.*;

public class Test {
  public static void main(String[] args) throws Exception {
    String m;
    try {
      m = B.class.getDeclaredMethod("method").toString();
    } catch (Exception e) {
      m = e.toString();
    }
    System.out.println("getDeclaredMethod: "+m);
    try {
      m = B.class.getMethod("method").toString();
    } catch (Exception e) {
      m = e.toString();
    }
    System.out.println("getMethod: "+m);
  }
  static class A { public void method() {} }
  static class B extends A { }
}
{code}

Produces the output:
{code}
getDeclaredMethod: java.lang.NoSuchMethodException: Test$B.method()
getMethod: public void Test$A.method()
{code}

Per the docs and my testing, the get method calls only return public methods, so the {{setAccessible}}
is a no-op.
                
> HBase won't start when hbase.rootdir uses ViewFileSystem
> --------------------------------------------------------
>
>                 Key: HBASE-6067
>                 URL: https://issues.apache.org/jira/browse/HBASE-6067
>             Project: HBase
>          Issue Type: Improvement
>          Components: regionserver
>            Reporter: Eli Collins
>            Assignee: Zhihong Ted Yu
>             Fix For: 0.96.0, 0.94.1, 0.92.3
>
>         Attachments: 6067-v2.txt, 6067.txt
>
>
> HBase currently doesn't work with HDFS federation (hbase.rootdir with a client that uses
viewfs) because HLog#init uses FileSystem#getDefaultBlockSize and getDefaultReplication. These
throw an exception because there is no default filesystem in a viewfs client so there's no
way to determine a default block size or replication factor. They could use the versions of
these methods that take a path, however these were introduced in HADOOP-8014 and are not yet
available in Hadoop 1.x.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message