{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8669","labels_url":"https://api.github.com/repos/apache/spark/issues/8669/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8669/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8669/events","html_url":"https://github.com/apache/spark/pull/8669","id":105605923,"number":8669,"title":"[SPARK-2960][Deploy] Support executing Spark from symlinks (reopen)","user":{"login":"jerryshao","id":850797,"avatar_url":"https://avatars.githubusercontent.com/u/850797?v=3","gravatar_id":"","url":"https://api.github.com/users/jerryshao","html_url":"https://github.com/jerryshao","followers_url":"https://api.github.com/users/jerryshao/followers","following_url":"https://api.github.com/users/jerryshao/following{/other_user}","gists_url":"https://api.github.com/users/jerryshao/gists{/gist_id}","starred_url":"https://api.github.com/users/jerryshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerryshao/subscriptions","organizations_url":"https://api.github.com/users/jerryshao/orgs","repos_url":"https://api.github.com/users/jerryshao/repos","events_url":"https://api.github.com/users/jerryshao/events{/privacy}","received_events_url":"https://api.github.com/users/jerryshao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-09T14:18:08Z","updated_at":"2015-10-27T03:46:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8669","html_url":"https://github.com/apache/spark/pull/8669","diff_url":"https://github.com/apache/spark/pull/8669.diff","patch_url":"https://github.com/apache/spark/pull/8669.patch"},"body":"This PR is based on the work of @roji to support running Spark scripts from symlinks. Thanks for the great work @roji . Would you mind taking a look at this PR, thanks a lot.\r\n\r\nFor releases like HDP and others, normally it will expose the Spark executables as symlinks and put in `PATH`, but current Spark's scripts do not support finding real path from symlink recursively, this will make spark fail to execute from symlink. This PR try to solve this issue by finding the absolute path from symlink.\r\n\r\nInstead of using `readlink -f` like what this PR (https://github.com/apache/spark/pull/2386) implemented is that `-f` is not support for Mac, so here manually seeking the path through loop.\r\n\r\nI've tested with Mac and Linux (Cent OS), looks fine. \r\n\r\nThis PR did not fix the scripts under `sbin` folder, not sure if it needs to be fixed also?\r\n\r\nPlease help to review, any comment is greatly appreciated."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/151363932","html_url":"https://github.com/apache/spark/pull/8669#issuecomment-151363932","issue_url":"https://api.github.com/repos/apache/spark/issues/8669","id":151363932,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T03:46:58Z","updated_at":"2015-10-27T03:46:58Z","body":"**[Test build #44400 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/44400/consoleFull)** for PR 8669 at commit [`c796397`](https://github.com/apache/spark/commit/c796397da5159335de3c11e62ecedc427a9c5a64)."}}