Grokbase Groups HBase dev May 2010
[ ]

stack resolved HBASE-2546.

Resolution: Fixed

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
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:
Index: core/src/main/java/org/apache/hadoop/hbase/master/
--- core/src/main/java/org/apache/hadoop/hbase/master/ (revision 944113)
+++ core/src/main/java/org/apache/hadoop/hbase/master/ (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("", this.rootdir.toString());
this.conf.set("fs.defaultFS", this.rootdir.toString());
this.fs = FileSystem.get(this.conf);
checkRootDir(this.rootdir, this.conf, this.fs);
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

Follow ups

Related Discussions

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

1 user in discussion

stack (JIRA): 2 posts



site design / logo © 2022 Grokbase