You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "Reamer (via GitHub)" <gi...@apache.org> on 2025/09/03 07:39:04 UTC

Re: [PR] [SPARK-43368] Use `libnss_wrapper` to fake passwd entry [spark-docker]

Reamer commented on PR #45:
URL: https://github.com/apache/spark-docker/pull/45#issuecomment-3248061571

   Hi @Yikun,
   This change has also been adopted by the Spark operator. See https://github.com/kubeflow/spark-operator/pull/2312
   I am an Openshift user myself and therefore ran into a regression. See:  https://github.com/kubeflow/spark-operator/issues/2644
   
   Have you also tested your commands for the home directory?
   
   I tested the home directory with the following small Java class. I don't know how Spark evaluates this.
   ```
   import javax.swing.filechooser.FileSystemView;
   import java.io.File;
   class Home {
       public static void main(String... args) {
           FileSystemView view = FileSystemView.getFileSystemView();
           File file = view.getHomeDirectory();
           String desktopPath = file.getPath();
           System.out.println(desktopPath);
       }
   }
   ```
   The output of the small program returns the following, which is obviously incorrect.
   ```
   java Home
   -anonymous uid}
   ```
   
   Is there a reason to evaluate the GECOS field later?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org