Github user Liuchang0812 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4162#discussion_r24229266
  
    --- Diff: ec2/spark_ec2.py ---
    @@ -1003,6 +1006,17 @@ def real_main():
                 DeprecationWarning
             )
     
    +    if opts.identity_file is not None:
    +        if not os.path.exists(opts.identity_file):
    +            print >> stderr,\
    +                "ERROR: The identity file '{f}' doesn't 
exist.".format(f=opts.identity_file)
    +            sys.exit(1)
    +
    +        file_mode = os.stat(opts.identity_file).st_mode
    +        if not (file_mode & S_IRUSR) or not oct(file_mode)[-2:] == '00':
    +            print >> stderr, "ERROR: The identity file must be accessible 
only by you."
    --- End diff --
    
    Ok. Thanks for suggestion. I will fix this soon.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to