Grokbase Groups HBase dev May 2010
FAQ
Specify default filesystem in both the new and old way (needed if we are to run on 0.20 and 0.21 hadoop)
--------------------------------------------------------------------------------------------------------

Key: HBASE-2546
URL: https://issues.apache.org/jira/browse/HBASE-2546
Project: Hadoop HBase
Issue Type: Bug
Components: master
Reporter: stack
Assignee: stack
Fix For: 0.21.0


I couldn't start a distributed cluster because master wanted to keep using the local filesystem. Setting default filesystem using both old and new way seems the way to go:

{code}
Index: core/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
===================================================================
--- core/src/main/java/org/apache/hadoop/hbase/master/HMaster.java (revision 944113)
+++ core/src/main/java/org/apache/hadoop/hbase/master/HMaster.java (working copy)
@@ -165,6 +165,9 @@
// default localfs. Presumption is that rootdir is fully-qualified before
// we get to here with appropriate fs scheme.
this.rootdir = FSUtils.getRootDir(this.conf);
+ // Cover both bases, the old way of setting default fs and the new.
+ // We're supposed to run on 0.20 and 0.21 anyways.
+ this.conf.set("fs.default.name", this.rootdir.toString());
this.conf.set("fs.defaultFS", this.rootdir.toString());
this.fs = FileSystem.get(this.conf);
checkRootDir(this.rootdir, this.conf, this.fs);
{code}

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupdev @
categorieshbase, hadoop
postedMay 14, '10 at 5:31a
activeMay 14, '10 at 5:31a
posts2
users1
websitehbase.apache.org

1 user in discussion

stack (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase