Title: The script WordCount.py in the rdd directory has a couple of issues · Issue #8 · jleetutorial/python-spark-tutorial · GitHub
Open Graph Title: The script WordCount.py in the rdd directory has a couple of issues · Issue #8 · jleetutorial/python-spark-tutorial
X Title: The script WordCount.py in the rdd directory has a couple of issues · Issue #8 · jleetutorial/python-spark-tutorial
Description: I am running these scripts on Debian Stretch. Path issues I had to import os, then add this: projRootPath = os.path.dirname(os.path.realpath(__file__)) + "/../" lines = sc.textFile(projRootPath + "in/word_count.text") Otherwise I am unab...
Open Graph Description: I am running these scripts on Debian Stretch. Path issues I had to import os, then add this: projRootPath = os.path.dirname(os.path.realpath(__file__)) + "/../" lines = sc.textFile(projRootPath + "...
X Description: I am running these scripts on Debian Stretch. Path issues I had to import os, then add this: projRootPath = os.path.dirname(os.path.realpath(__file__)) + "/../" lines = sc.textFile(projRo...
Opengraph URL: https://github.com/jleetutorial/python-spark-tutorial/issues/8
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The script WordCount.py in the rdd directory has a couple of issues","articleBody":"I am running these scripts on Debian Stretch.\r\n\r\n# Path issues\r\n\r\nI had to `import os`, then add this:\r\n\r\n```python\r\n projRootPath = os.path.dirname(os.path.realpath(__file__)) + \"/../\"\r\n lines = sc.textFile(projRootPath + \"in/word_count.text\")\r\n```\r\nOtherwise I am unable to run the script from different points in the file system.\r\n\r\n# Python version\r\n\r\nIt does not work on python 2. To make it work I had to use this environment variable:\r\n\r\n```sh\r\nexport PYSPARK_PYTHON=python3\r\n```\r\n\r\nThis information could be added to a README file.\r\n\r\nI can provide a PR in case.","author":{"url":"https://github.com/tappoz","@type":"Person","name":"tappoz"},"datePublished":"2018-06-09T10:58:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8/python-spark-tutorial/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83b3ad02-4101-cab9-c989-d9032311859b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AFE:3676A1:1EDEB59:29969B4:6972C747 |
| html-safe-nonce | 7021d9efe1ea941e6e54da2b3bc7d558d21469133573dba816c9b10f9c24cba1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUZFOjM2NzZBMToxRURFQjU5OjI5OTY5QjQ6Njk3MkM3NDciLCJ2aXNpdG9yX2lkIjoiNzEyNDYyNTc1OTY0ODUzMjI5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3be183cc55030f92a0ebcc496b97c8c5edaa2b9eee1f4c935bd151576eafc2a8 |
| hovercard-subject-tag | issue:330876554 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jleetutorial/python-spark-tutorial/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4373edc81295dab2905e6f7ff59d7e0bd96b1cdb3e8fc8d4387a656e50406fce/jleetutorial/python-spark-tutorial/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4373edc81295dab2905e6f7ff59d7e0bd96b1cdb3e8fc8d4387a656e50406fce/jleetutorial/python-spark-tutorial/issues/8 |
| og:image:alt | I am running these scripts on Debian Stretch. Path issues I had to import os, then add this: projRootPath = os.path.dirname(os.path.realpath(__file__)) + "/../" lines = sc.textFile(projRootPath + "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tappoz |
| hostname | github.com |
| expected-hostname | github.com |
| None | aa656e37a6f46b81c2416d9c983f7c54e264ee31be17c0e6c9414b9f9f9c6eb4 |
| turbo-cache-control | no-preview |
| go-import | github.com/jleetutorial/python-spark-tutorial git https://github.com/jleetutorial/python-spark-tutorial.git |
| octolytics-dimension-user_id | 19826074 |
| octolytics-dimension-user_login | jleetutorial |
| octolytics-dimension-repository_id | 104780751 |
| octolytics-dimension-repository_nwo | jleetutorial/python-spark-tutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 104780751 |
| octolytics-dimension-repository_network_root_nwo | jleetutorial/python-spark-tutorial |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | add6bd61de5b348d2978a698a5796a7d0438e7be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width