Spark CLI cries bad permissions on Windows

Description

The dcos spark run command fails on Windows with Permissions '0o666' for configuration file 'C:\Users\harpreet\.dcos\dcos.toml' are too open. File must only be accessible by owner. Aborting...

Tested on:

  • Windows 10 64 bit

  • DC/OS CLI 0.4.10 precompiled Binary

  • spark 1.0.1-2.0.0

  • Poweshell
    (But I expect this to happen on all Windows machines with a recent spark cli installed)

Here is the complete command line output :

DC/OS CLI introduced file permissions check for the config file in 0.4.6 but it skipped the check on Windows since the check was based on *nix permissions.

On further inspection of subcommand code I noticed that the subcommand's version of config.py does not skip windows

I guess that the spark subcommand needs to be updated to use the latest code that skips the check on Windows

Activity

Show:
TB
November 3, 2016, 8:45 PM

This is a bug in the version of the CLI they are using. If they upgrade their CLI to any other version it will work. (We are on v0.4.14 now)

HarpreetG
November 3, 2016, 9:14 PM

This is a bug in dcos_spark-0.5.19 which was built against dcos lib with the bug.

Assignee

Michael Gummelt

Labels

None
Configure