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

TestGenerateDelegationToken: Master fails to start in Windows environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0, 1.2.0, 2.0.0
    • 1.2.0, 1.1.1, 2.0.0
    • test
    • None
    • Reviewed

    Description

      Master fails to start in the unit test org.apache.hadoop.hbase.security.token.TestGenerateDelegationToken in Windows environment:

      java.lang.RuntimeException: Master not initialized after 200000ms seconds
      	at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:225)
      	at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:445)
      	at org.apache.hadoop.hbase.security.token.TestGenerateDelegationToken.setUp(TestGenerateDelegationToken.java:125)
      

      This is due to incorrect HDFS path:

      2015-06-01 07:40:11,072 FATAL [myjenkins-win:59214.activeMasterManager] master.MasterFileSystem(465): Please fix invalid configuration for hbase.rootdir hdfs://127.0.0.1:59154/C:/tmp/hbase-jenkins/hbase
      java.lang.IllegalArgumentException: Pathname /C:/tmp/hbase-jenkins/hbase from hdfs://127.0.0.1:59154/C:/tmp/hbase-jenkins/hbase is not a valid DFS filename.
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:197)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.access$000(DistributedFileSystem.java:106)
      	at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
      	at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
      	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
      	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:424)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:146)
      	at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:126)
      	at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:649)
      	at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:182)
      	at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1646)
      	at java.lang.Thread.run(Thread.java:722)
      

      Attachments

        1. HBASE-13824.patch
          2 kB
          Stephen Yuan Jiang

        Activity

          People

            syuanjiang Stephen Yuan Jiang
            syuanjiang Stephen Yuan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: