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

pengfei.zhan resolved KYLIN-5715.
---------------------------------
    Resolution: Fixed

> When the character set of the operating system is zh_CN.UTF-8, the 
> hadoop_conf file in the KE installation directory before the upgrade cannot 
> be copied using the upgrade script
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5715
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5715
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: 5.0-beta
>            Reporter: Hongrong Cao
>            Assignee: Yinghao Lin
>            Priority: Critical
>             Fix For: 5.0.0
>
>         Attachments: image-2023-11-16-14-54-51-399.png, 
> image-2023-11-16-14-56-00-215.png
>
>
> The following steps in the upgrade.sh script do not copy the old environment 
> file directory successfully.
>  
> {quote}    logging "Copy Customize Directory"
>     OLDIFS=$IFS
>     IFS=$'\n'
>     for diff_log in $(diff -qr $OLD_KYLIN_HOME $NEW_KYLIN_HOME); do
>         if [[ $diff_log =~ (^Only in ${OLD_KYLIN_HOME}: )(.*) ]]; then
>             diff_file=${BASH_REMATCH[2]}
>             if [[ $diff_file == "meta_backups" || $diff_file == "appid" || 
> $diff_file == "work" ]]; then
>                 continue
>             fi
>             if prompt "'${OLD_KYLIN_HOME}/${diff_file}' -> 
> '${NEW_KYLIN_HOME}/'"; then
>                 cp -rfv ${OLD_KYLIN_HOME}/${diff_file} ${NEW_KYLIN_HOME}/ >> 
> $upgrade_log || fail
>             fi
>         fi
>     done
> {quote}
> During the execution of this script, the result of diff is "Only in" in 
> Chinese, not "Only in" in English, and the script needs to match the English 
> "Only in", so it fails to copy the old environment's hadoop_config directory 
> successfully in this step. which is required to match the English "Only in" 
> in the script, so the old environment's hadoop_conf cannot be copied 
> successfully in this step.
> Upgrade scripts need to take into account that differences in the character 
> set of the  environment and other factors may result in commands not 
> executing as expected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to