spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Assigned] (SPARK-23680) does not accept arbitrary UIDs, returning as an error
Date Wed, 14 Mar 2018 15:44:00 GMT


Apache Spark reassigned SPARK-23680:

    Assignee:     (was: Apache Spark)

> does not accept arbitrary UIDs, returning as an error
> -------------------------------------------------------------------
>                 Key: SPARK-23680
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Kubernetes
>    Affects Versions: 2.3.0
>         Environment: OpenShift
>            Reporter: Ricardo Martinelli de Oliveira
>            Priority: Major
>              Labels: easyfix
> Openshift supports running pods using arbitrary UIDs ([] 
to improve security. Although was developed to cover this feature, the script
is returning an error[1].
> The issue is that the script uses getent to find the passwd entry of the current UID,
and if the entry is not found it creates an entry in /etc/passwd. According to the getent
man page:
> {code:java}
>        One of the following exit values can be returned by getent:
>           0         Command completed successfully.
>           1         Missing arguments, or database unknown.
>           2         One or more supplied key could not be found in the
>           3         Enumeration not supported on this database.
> {code}
> And since the script begin with a "set -ex" command, which means it turns on debug and
breaks the script if the command pipelines returns an exit code other than 0.--
> Having that said, this line below must be changed to remove the "-e" flag from set command:
>  [1]

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message