[
https://issues.apache.org/jira/browse/HBASE-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288606#comment-13288606
]
Zhihong Ted Yu commented on HBASE-6067:
---------------------------------------
@Daryn:
Looking at:
http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Class.html#getDeclaredMethod%28java.lang.String,%20java.lang.Class[]%29
I don't see why getDeclaredMethod wouldn't find the desired method from this.fs
w.r.t. setAccessible(), I didn't include it in patch v1 for this reason.
Then I found that getGetNumCurrentReplicas() was using the call. And:
{code}
public int getNumCurrentReplicas() throws IOException {
./src/hdfs/org/apache/hadoop/hdfs/DFSClient.java
{code}
> 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