You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "huangsheng (Jira)" <ji...@apache.org> on 2023/07/03 11:23:00 UTC
[jira] [Commented] (KYLIN-5605) When starting kylin in the FI environment, if the Kerberos configuration KAP_KERBEROS_ENABLED is empty, the spark jar replacement will not be performed, resulting in startup failure
[ https://issues.apache.org/jira/browse/KYLIN-5605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739586#comment-17739586 ]
huangsheng commented on KYLIN-5605:
-----------------------------------
h1. Root Cause
FI platform known issues, execute "kerberosEnabled=`${KYLIN_HOME}/bin/get-properties.sh kylin.kerberos.enabled`" can not get kerberosEnabled (empty)
!image-2023-07-03-19-19-11-529.png!
As a result, the spark jars are not replaced in the future, and kylin cannot be started
!image-2023-07-03-19-20-11-766.png!
h1. Fix Design
The replace-jars-under-spark.sh script makes the following changes
!image-2023-07-03-19-21-09-252.png!
{code:java}
function get_config_from_props_file() {
configKey=$1
configValue=
if [ -f ${KYLIN_HOME}/conf/kylin.properties.override ]; then
configValue=$(grep -Ev '^$|^\s*#' ${KYLIN_HOME}/conf/kylin.properties.override | grep -E ''"${configKey}"'' | awk -F= '/^'"${configKey}"'=/ { val=$2 } END { print val }')
fi
if [[ -z "${configValue}" && -f ${KYLIN_HOME}/conf/kylin.properties ]]; then
configValue=$(grep -Ev '^$|^\s*#' ${KYLIN_HOME}/conf/kylin.properties | grep -E ''"${configKey}"'' | awk -F= '/^'"${configKey}"'=/ { val=$2 } END { print val }')
fi
echo "${configValue}"
return 1
}
if [ -z "${kerberosEnabled}" ]; then
kerberosEnabled=$(get_config_from_props_file '(kylin|kap).kerberos.enabled')
fi {code}
Determine whether the result of kerberosEnabled=`${KYLIN_HOME}/bin/get-properties.sh kylin.kerberos.enabled` is empty. If it is empty, directly obtain the value of the configuration item in kylin.properties.override/kylin.properties by grep.
> When starting kylin in the FI environment, if the Kerberos configuration KAP_KERBEROS_ENABLED is empty, the spark jar replacement will not be performed, resulting in startup failure
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KYLIN-5605
> URL: https://issues.apache.org/jira/browse/KYLIN-5605
> Project: Kylin
> Issue Type: Bug
> Components: Environment
> Affects Versions: 5.0-alpha
> Reporter: huangsheng
> Assignee: huangsheng
> Priority: Major
> Fix For: 5.0-alpha
>
> Attachments: image-2023-07-03-19-19-11-529.png, image-2023-07-03-19-20-11-766.png, image-2023-07-03-19-21-09-252.png
>
>
> When starting kylin in the FI environment, if the Kerberos configuration KAP_KERBEROS_ENABLED is empty, the jar package replacement will not be performed, resulting in startup failure
--
This message was sent by Atlassian Jira
(v8.20.10#820010)