[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73435450 Thank you @Liuchang0812 for working on this! --- 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 proj

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread Liuchang0812
Github user Liuchang0812 commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73369125 :) thanks @srowen --- 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 thi

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread srowen
Github user srowen commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73368543 Looks like everyone is cool with this, and it passes all tests. I can merge shortly if there are no objections. --- If your project is set up for it, you can reply to thi

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/spark/pull/4162 --- 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 enab

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73378772 I had one final minor comment, but otherwise LGTM. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If yo

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r24291969 --- Diff: ec2/spark_ec2.py --- @@ -1003,6 +1006,18 @@ def real_main(): DeprecationWarning ) +if opts.identity_file

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread SparkQA
Github user SparkQA commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73396904 [Test build #27029 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27029/consoleFull) for PR 4162 at commit [`fc37355`](https://githu

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread Liuchang0812
Github user Liuchang0812 commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r24295815 --- Diff: ec2/spark_ec2.py --- @@ -1003,6 +1006,18 @@ def real_main(): DeprecationWarning ) +if opts.identity_

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread SparkQA
Github user SparkQA commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73398401 [Test build #27029 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27029/consoleFull) for PR 4162 at commit [`fc37355`](https://gith

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-08 Thread AmplabJenkins
Github user AmplabJenkins commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73398404 Test PASSed. Refer to this link for build results (access rights to CI server needed): https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread AmplabJenkins
Github user AmplabJenkins commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73304383 Test PASSed. Refer to this link for build results (access rights to CI server needed): https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread SparkQA
Github user SparkQA commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73304375 [Test build #26924 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26924/consoleFull) for PR 4162 at commit [`01ed464`](https://gith

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread SparkQA
Github user SparkQA commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73292357 [Test build #26924 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26924/consoleFull) for PR 4162 at commit [`01ed464`](https://githu

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread JoshRosen
Github user JoshRosen commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73291745 Jenkins, this is ok to test. --- 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 ha

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73291572 One final comment @Liuchang0812 and I think this is good to go. @shivaram Can you have Jenkins trigger tests? I don't believe I have that permission. --- If yo

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r24262082 --- Diff: ec2/spark_ec2.py --- @@ -1003,6 +1006,18 @@ def real_main(): DeprecationWarning ) +if opts.identity_file

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread Liuchang0812
Github user Liuchang0812 commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73288219 @shivaram :) thanks for your suggestion. I'm very glad to contribute to spark. --- If your project is set up for it, you can reply to this email and have your repl

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread shivaram
Github user shivaram commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73285601 Thanks @Liuchang0812 - LGTM --- 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

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-06 Thread Liuchang0812
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_

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-05 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r24211576 --- Diff: ec2/spark_ec2.py --- @@ -1003,6 +1006,17 @@ def real_main(): DeprecationWarning ) +if opts.identity_file

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-05 Thread shivaram
Github user shivaram commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73152636 This is a pretty useful change - Can we print a message on how programmers can fix this ? AFAIK spark-ec2 only works on Mac/Linux, so we can just say that 'Please run ch

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-02-05 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-73150514 @pwendell / @shivaram - What's your take on this? I think its a minor but non-trivial usability improvement that we should take. --- If your project is set up

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-30 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72223944 OK, LGTM pending Python style tests. --- 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

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-30 Thread Liuchang0812
Github user Liuchang0812 commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72235154 ubuntu@ip-172-31-24-113:~/spark/ec2$ ../dev/lint-python PEP 8 checks passed. --- If your project is set up for it, you can reply to this email and have yo

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-30 Thread Liuchang0812
Github user Liuchang0812 commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72190513 @nchammas Done --- 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 fea

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72114356 > Should we just be propagating the SSH message rather than trying to duplicate logic here? Absolutely. That's being done in #4262. That said, it's stil

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread pwendell
Github user pwendell commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72113135 Hey on this one - doesn't ssh itself give a good error message if the key file does not have the correct permissions? Should we just be propagating the SSH message rathe

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72088000 OK, I think we're almost there. One final suggestion I'd make it to move these checks on the identity file to the [input parameter validation area](https://github.com/Li

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23794983 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +351,17 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread Liuchang0812
Github user Liuchang0812 commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72068788 Yes, I have tested it with some private keys。The check can pass iff only owner has read permission。 --- If your project is set up for it, you can reply to thi

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread nchammas
Github user nchammas commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72064539 No problem @Liuchang0812. Did you test your latest changes to make sure they work as expected? --- If your project is set up for it, you can reply to this email and hav

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-29 Thread Liuchang0812
Github user Liuchang0812 commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-72020501 @nchammas Thanks for your reviewing. You are so helful and nice. I'm very sorry for the mistake. --- If your project is set up for it, you can reply to th

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-27 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23629383 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +351,16 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-27 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23627130 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +351,16 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-27 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23626906 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +351,16 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-27 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23626504 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +351,16 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-27 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23626017 --- Diff: ec2/spark_ec2.py --- @@ -24,10 +24,12 @@ import hashlib import logging import os +import os.path import pipes import ra

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-25 Thread Liuchang0812
Github user Liuchang0812 commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23504896 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +350,15 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: pri

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-25 Thread Liuchang0812
Github user Liuchang0812 commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23504693 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +350,15 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: pri

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-25 Thread Liuchang0812
Github user Liuchang0812 commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23504683 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +350,15 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: pri

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-24 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23499969 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +350,15 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-24 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23499848 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +350,15 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-24 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23499744 --- Diff: ec2/spark_ec2.py --- @@ -349,6 +350,15 @@ def launch_cluster(conn, opts, cluster_name): if opts.identity_file is None: print >

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-23 Thread Liuchang0812
Github user Liuchang0812 commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23446495 --- Diff: ec2/spark_ec2.py --- @@ -346,9 +347,15 @@ def get_spark_ami(opts): # Returns a tuple of EC2 reservation objects for the master and slaves

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-22 Thread nchammas
Github user nchammas commented on a diff in the pull request: https://github.com/apache/spark/pull/4162#discussion_r23421637 --- Diff: ec2/spark_ec2.py --- @@ -346,9 +347,15 @@ def get_spark_ami(opts): # Returns a tuple of EC2 reservation objects for the master and slaves

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-22 Thread AmplabJenkins
Github user AmplabJenkins commented on the pull request: https://github.com/apache/spark/pull/4162#issuecomment-71035537 Can one of the admins verify this patch? --- 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 pro

[GitHub] spark pull request: [SPARK-5366][EC2] Check the mode of private ke...

2015-01-22 Thread Liuchang0812
GitHub user Liuchang0812 opened a pull request: https://github.com/apache/spark/pull/4162 [SPARK-5366][EC2] Check the mode of private key Check the mode of private key file. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Liuchang