Bigtop
  1. Bigtop
  2. BIGTOP-988

HCatalog does not launch daemon process in a known directory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Component/s: None
    • Labels:
      None

      Description

      HCatalog launches the process in the current working directory, after which files may be created in the wrong location, and the hcatalog user (hive) may not even have permissions there!

        Activity

        Hide
        Sean Mackrory added a comment -

        That approach worked quite well. I tried both the HCatalog and HDFS NameNode init scripts. /proc/.../cwd was correct for all the processes. Services that override the start function will need to do this themselves, but AFAIK, they all do - and I agree with your suggestion - they all should continue to do so.

        Show
        Sean Mackrory added a comment - That approach worked quite well. I tried both the HCatalog and HDFS NameNode init scripts. /proc/.../cwd was correct for all the processes. Services that override the start function will need to do this themselves, but AFAIK, they all do - and I agree with your suggestion - they all should continue to do so.
        Hide
        Sean Mackrory added a comment -

        I just haven't gotten around to testing my fix yet, but that is essentially the approach I would take. init.d.tmpl would change to $WORKING_DIR after switching su'ing to $SVC_USER. By default, it is the string "~/", but services can change it (as, IMO, hcatalog should be switching to /var/run/hcatalog or something instead of hive's ~).

        Show
        Sean Mackrory added a comment - I just haven't gotten around to testing my fix yet, but that is essentially the approach I would take. init.d.tmpl would change to $WORKING_DIR after switching su'ing to $SVC_USER. By default, it is the string "~/", but services can change it (as, IMO, hcatalog should be switching to /var/run/hcatalog or something instead of hive's ~).
        Hide
        Roman Shaposhnik added a comment -

        It is unfortunate that HCatalog suffers from this particular issue. It needs to be fixed of course.

        On a broader scope why don't we have a policy in Bigtop of always starting our daemons with the CWD being their home?

        Thoughts?

        Show
        Roman Shaposhnik added a comment - It is unfortunate that HCatalog suffers from this particular issue. It needs to be fixed of course. On a broader scope why don't we have a policy in Bigtop of always starting our daemons with the CWD being their home? Thoughts?

          People

          • Assignee:
            Sean Mackrory
            Reporter:
            Sean Mackrory
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development