ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-18853) Provide an option for not encoding double quote in custom hbase-site
Date Fri, 11 Nov 2016 01:24:58 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-18853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655763#comment-15655763
] 

Ted Yu commented on AMBARI-18853:
---------------------------------

I used the following code in hbase:
{code}
    Configuration conf = TEST_UTIL.getConfiguration();
    conf.set("a", "&#39;hello&#39;");
    String a = conf.get("a");
{code}
The value for variable a is "&#39;hello&#39;"

> Provide an option for not encoding double quote in custom hbase-site
> --------------------------------------------------------------------
>
>                 Key: AMBARI-18853
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18853
>             Project: Ambari
>          Issue Type: Improvement
>            Reporter: Ted Yu
>
> The double quote I entered in config entry under 'Custom hbase-site' is encoded as "&#34;"
when saved to disk:
> {code}
>     <property>
>       <name>hbase.it.clustermanager.ssh.cmd</name>
>       <value>/usr/bin/ssh %1$s %2$s%3$s%4$s &#34;sudo su - hbase -c \&#34;%5$s\&#34;&#34;</value>
>     </property>
> {code}
> The encoding shouldn't be performed since the value would be passed to chaos monkey to
execute certain command.
> There should be an option to disable the encoding.



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

Mime
View raw message