Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-537

We no longer wait on hdfs to exit safe mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.1.0, 0.2.0
    • 0.1.0, 0.2.0
    • None
    • None

    Description

      We used wait on hdfs to exit safe mode before going on to startup hbase but this feature is broken since we moved out of hadoop contrib. Now when you try start with hdfs in safe mode you get:

      08/03/21 04:39:56 FATAL hbase.HMaster: Not starting HMaster because:
      org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.dfs.SafeModeException: Cannot create directory /hbase010. Name node is in safe mode.
      Safe mode will be turned off automatically.
              at org.apache.hadoop.dfs.FSNamesystem.mkdirsInternal(FSNamesystem.java:1571)
              at org.apache.hadoop.dfs.FSNamesystem.mkdirs(FSNamesystem.java:1559)
              at org.apache.hadoop.dfs.NameNode.mkdirs(NameNode.java:422)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      

      If you are lucky, it appears on STDOUT/ERR but may just be stuffed into logs and all looks like its running properly.

      Noticed first by Lars George.

      Attachments

        1. patch.txt
          2 kB
          Jim Kellerman

        Activity

          People

            jimk Jim Kellerman
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: