Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-94

Failure installing hadoop-hbase on CentOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CDH3b4
    • Fix Version/s: CDH3b4
    • Component/s: HBase
    • Labels:
      None
    • Environment:
      CentOS 5.5

      Description

      Trying to install the CDH3b4 HBase package on CentOS 5.5 (using "yum install hadoop-hbase"), I got the following output:

      [...]
      Running Transaction
      /usr/bin/install: invalid user `hbase'
      /usr/bin/install: invalid user `hbase'
      error: %pre(hadoop-hbase-0.90.1+8-1.noarch) scriptlet failed, exit status 1
      error: install: %pre scriptlet failed (2), skipping hadoop-hbase-0.90.1+8-1
      [...]

      Looking into the SPEC file of the package, it adds the user with the following command:

      /usr/sbin/useradd -c "HBase" -s /sbin/nologin -r -d /var/run/hbase hbase

      Executing this gives:

      useradd: group hbase exists - if you want to add this user to that group, use -g.

      I got it to work like this:

      /usr/sbin/useradd -c "HBase" -s /sbin/nologin -r -d /var/run/hbase -g hbase hbase

      And then the installation of the package with yum succeeds.

        Attachments

          Activity

            People

            • Assignee:
              bruno Bruno Mahé
              Reporter:
              atm Aaron T. Myers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: