Home Forums HDP on Linux – Installation HBase Master can not Start

Tagged: 

This topic contains 6 replies, has 3 voices, and was last updated by  Alejandro Fernandez 4 months, 1 week ago.

  • Creator
    Topic
  • #57398

    坤霖 李
    Participant

    I have successful installed HDP 2.1 in Centos 6.5.I can start all service of HDP component but hbase-master.
    When I try to start the service I am getting the following error

      Traceback (most recent call last):
      File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HBASE/package/scripts/hbase_master.py”, line 71, in <module>
      HbaseMaster().execute()
      File “/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py”, line 105, in execute
      method(env)
      File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HBASE/package/scripts/hbase_master.py”, line 43, in start
      self.configure(env) # for security
      File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HBASE/package/scripts/hbase_master.py”, line 38, in configure
      hbase(name=’master’)
      File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HBASE/package/scripts/hbase.py”, line 40, in hbase
      params.HdfsDirectory(None, action=”create”)
      File “/usr/lib/python2.6/site-packages/resource_management/core/base.py”, line 149, in __init__
      self.env.run()
      File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 150, in run
      self.run_action(resource, action)
      File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 116, in run_action
      provider_action()
      File “/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_directory.py”, line 105, in action_create
      not_if=format(“su – {hdp_hdfs_user} -c ‘hadoop fs -ls {dir_list_str}’”)
      File “/usr/lib/python2.6/site-packages/resource_management/core/base.py”, line 149, in __init__
      self.env.run()
      File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 150, in run
      self.run_action(resource, action)
      File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 116, in run_action
      provider_action()
      File “/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py”, line 236, in action_run
      wait_for_finish=self.resource.wait_for_finish, timeout=self.resource.timeout)
      File “/usr/lib/python2.6/site-packages/resource_management/core/shell.py”, line 36, in checked_call
      return _call(command, logoutput, True, cwd, env, preexec_fn, user, wait_for_finish, timeout)
      File “/usr/lib/python2.6/site-packages/resource_management/core/shell.py”, line 90, in _call
      err_msg = (“Execution of ‘%s’ returned %d. %s”) % (command[-1], code, out)
      UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe9 in position 133: ordinal not in range(128)

    I tried to add ‘#encoding:utf-8′ in all of ‘xxx.py’.But it is still fail.Does anyone know what’s wrong with hbase-master?

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #57562

    Alejandro Fernandez
    Participant

    Looks like the é character appears in the command. Was there a folder or file name that happened to contain that character?
    The command returned a non-zero error code, and the python script tried to print the error message, but that raised can exception in shell.py while trying to concatenate a non-unicode character with the rest of the error message.

    Collapse
    #57492

    坤霖 李
    Participant

    I kill the hdfs folder ‘/hadoop/hdfs’,and restart hbase-master service.it is working now.

    Collapse
    #57490

    坤霖 李
    Participant

    But I got some error message,and hbase-master stopped.
    Erroe Message:

      2014-07-21 10:01:22,804 WARN [master:vm202:60000] hdfs.DFSClient: DFS Read
      org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block: BP-61822306-172.16.1.200-1405493185923:blk_1073741825_1001 file=/apps/hbase/data/hbase.version
      at org.apache.hadoop.hdfs.DFSInputStream.chooseDataNode(DFSInputStream.java:880)
      at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:560)
      at org.apache.hadoop.hdfs.DFSInputStream.readWithStrategy(DFSInputStream.java:790)
      at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:837)
      at java.io.DataInputStream.read(DataInputStream.java:149)
      at org.apache.hadoop.io.IOUtils.readFully(IOUtils.java:192)
      at org.apache.hadoop.hbase.util.FSUtils.getVersion(FSUtils.java:482)
      at org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:569)
      at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:456)
      at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:147)
      at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:128)
      at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:792)
      at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:609)
      at java.lang.Thread.run(Thread.java:745)
      2014-07-21 10:01:22,805 FATAL [master:vm202:60000] master.HMaster: Unhandled exception. Starting shutdown.
      org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block: BP-61822306-172.16.1.200-1405493185923:blk_1073741825_1001 file=/apps/hbase/data/hbase.version
      at org.apache.hadoop.hdfs.DFSInputStream.chooseDataNode(DFSInputStream.java:880)
      at org.apache.hadoop.hdfs.DFSInputStream.blockSeekTo(DFSInputStream.java:560)
      at org.apache.hadoop.hdfs.DFSInputStream.readWithStrategy(DFSInputStream.java:790)
      at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:837)
      at java.io.DataInputStream.read(DataInputStream.java:149)
      at org.apache.hadoop.io.IOUtils.readFully(IOUtils.java:192)
      at org.apache.hadoop.hbase.util.FSUtils.getVersion(FSUtils.java:482)
      at org.apache.hadoop.hbase.util.FSUtils.checkVersion(FSUtils.java:569)
      at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:456)
      at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:147)
      at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:128)
      at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:792)
      at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:609)
      at java.lang.Thread.run(Thread.java:745)
      2014-07-21 10:01:22,805 INFO [master:vm202:60000] master.HMaster: Aborting
      2014-07-21 10:01:22,806 DEBUG
    Collapse
    #57489

    坤霖 李
    Participant

    Thank Jeff for reminding me.When I change ‘$LANG=zh_TW.UTF-8′, it is working.

    Collapse
    #57488

    坤霖 李
    Participant

    Thanks for Jeff’s reply.When I run ‘echo $LANG’ command,get ‘zh_Tw.big5′.

    Collapse
    #57405

    Jeff Sposetti
    Moderator

    What’s the output of “echo $LANG” from a command prompt?

    Collapse
Viewing 6 replies - 1 through 6 (of 6 total)