[ 
https://issues.apache.org/jira/browse/RANGER-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Selvamohan Neethiraj updated RANGER-187:
----------------------------------------
    Fix Version/s: 0.5.0

> Script parsing install.properties fails if there is space in the name value 
> pair.  It should be resilient to such user errors.
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-187
>                 URL: https://issues.apache.org/jira/browse/RANGER-187
>             Project: Ranger
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Alok Lal
>            Assignee: Alok Lal
>              Labels: install
>             Fix For: 0.5.0
>
>         Attachments: 
> 0001-ARGUS-187-trim-whitespace-s-around-sign-and-after-th.patch, 
> 0001-ARGUS-187-trim-whitespace-s-around-sign-and-after-th.patch
>
>
> 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:
> {code}
> [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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to