You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2010/05/14 07:30:46 UTC

[jira] Created: (HBASE-2546) Specify default filesystem in both the new and old way (needed if we are to run on 0.20 and 0.21 hadoop)

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.


[jira] Resolved: (HBASE-2546) Specify default filesystem in both the new and old way (needed if we are to run on 0.20 and 0.21 hadoop)

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-2546.
--------------------------

    Resolution: Fixed

Committed.

> 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.