[
https://issues.apache.org/jira/browse/HADOOP-13030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15261254#comment-15261254
]
Xiao Chen commented on HADOOP-13030:
------------------------------------
Thank you [~andrew.wang]! Attached a patch based on branch-2.8.
Verified the same way, works. (had to add {{export
CATALINA_BASE=$HADOOP_CATALINA_HOME}} to test-source.sh due to kms.sh diff).
> Handle special characters in passwords in KMS startup script
> ------------------------------------------------------------
>
> Key: HADOOP-13030
> URL: https://issues.apache.org/jira/browse/HADOOP-13030
> Project: Hadoop Common
> Issue Type: Bug
> Components: kms
> Affects Versions: 2.6.0
> Reporter: Xiao Chen
> Assignee: Xiao Chen
> Fix For: 3.0.0
>
> Attachments: HADOOP-13030-repro.tar.gz, HADOOP-13030.01.patch,
> HADOOP-13030.02.patch, HADOOP-13030.03.patch, HADOOP-13030.b28.patch
>
>
> {{kms.sh}} currently cannot handle special characters.
> {code}
> sed -e 's/_kms_ssl_keystore_pass_/'${KMS_SSL_KEYSTORE_PASS}'/g' \
> -e 's/_kms_ssl_truststore_pass_/'${KMS_SSL_TRUSTSTORE_PASS}'/g' \
> "${HADOOP_CATALINA_HOME}/conf/ssl-server.xml.conf" \
> > "${HADOOP_CATALINA_HOME}/conf/ssl-server.xml"
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)