Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-187

Script parsing install.properties fails if there is space in the name value pair. It should be resilient to such user errors.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • None

    Description

      Logging the following on behalf of Bennet Daniel:

      When I was testing hive manual installation we faced this issue, I had a space between the = and the value (REPOSITORY_NAME= datalake_hive)

      This lead to the below:

      [root@ip-172-31-37-9 ranger-hive-plugin]# ./enable-hive-plugin.sh
      + ./enable-hive-plugin.sh
      + Wed Nov  5 01:12:52 UTC 2014 : Saving /usr/hdp/2.2.0.0-1756/hive/conf/xasecure-audit.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.xasecure-audit.xml.20141105-011252 ...
      + Wed Nov  5 01:12:52 UTC 2014 : Saving /usr/hdp/2.2.0.0-1756/hive/conf/xasecure-hive-security.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.xasecure-hive-security.xml.20141105-011252 ...
      + Wed Nov  5 01:12:52 UTC 2014 : Saving /usr/hdp/2.2.0.0-1756/hive/conf/xasecure-policymgr-ssl.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.xasecure-policymgr-ssl.xml.20141105-011252 ...
      ./enable-hive-plugin.sh: line 295: [: /etc/ranger/: binary operator expected
      chmod: cannot access `datalake_hive': No such file or directory
      chmod: cannot access `datalake_hive/policycache': No such file or directory
      chown: cannot access `datalake_hive': No such file or directory
      + Wed Nov  5 01:12:52 UTC 2014 : Saving current config file: /usr/hdp/2.2.0.0-1756/hive/conf/hiveserver2-site.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.hiveserver2-site.xml.20141105-011252 ...
      + Wed Nov  5 01:12:52 UTC 2014 : Saving current config file: /usr/hdp/2.2.0.0-1756/hive/conf/xasecure-audit.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.xasecure-audit.xml.20141105-011252 ...
      + Wed Nov  5 01:12:52 UTC 2014 : Saving current config file: /usr/hdp/2.2.0.0-1756/hive/conf/xasecure-hive-security.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.xasecure-hive-security.xml.20141105-011252 ...
      + Wed Nov  5 01:12:53 UTC 2014 : Saving current config file: /usr/hdp/2.2.0.0-1756/hive/conf/xasecure-policymgr-ssl.xml to /usr/hdp/2.2.0.0-1756/hive/conf/.xasecure-policymgr-ssl.xml.20141105-011252 ...
      ./enable-hive-plugin.sh: line 426: [: /etc/ranger/: unary operator expected
      ERROR:Please enter the Credential File Store with proper file path
      ++ printf '\033]0;%s@%s:%s\007' root ip-172-31-37-9 /usr/hdp/2.2.0.0-1756/ranger-hive-plugin
      

      Attachments

        Activity

          People

            alok Alok Lal
            alok Alok Lal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: