this post was submitted on 22 Jul 2024
10 points (100.0% liked)
technology
23890 readers
414 users here now
On the road to fully automated luxury gay space communism.
Spreading Linux propaganda since 2020
- Ways to run Microsoft/Adobe and more on Linux
- The Ultimate FOSS Guide For Android
- Great libre software on Windows
- Hey you, the lib still using Chrome. Read this post!
Rules:
- 1. Obviously abide by the sitewide code of conduct. Bigotry will be met with an immediate ban
- 2. This community is about technology. Offtopic is permitted as long as it is kept in the comment sections
- 3. Although this is not /c/libre, FOSS related posting is tolerated, and even welcome in the case of effort posts
- 4. We believe technology should be liberating. As such, avoid promoting proprietary and/or bourgeois technology
- 5. Explanatory posts to correct the potential mistakes a comrade made in a post of their own are allowed, as long as they remain respectful
- 6. No crypto (Bitcoin, NFT, etc.) speculation, unless it is purely informative and not too cringe
- 7. Absolutely no tech bro shit. If you have a good opinion of Silicon Valley billionaires please manifest yourself so we can ban you.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sorry for the late response,
I can't help for PySpark specifically cause I have no experience with it. In general tho you'll have to install the tooling you need to compile/run the program in WSL, I haven't used Spark in years so I don't know specifics but you'll want to have at least Java and Python installed here. On Ubuntu, you'll want the packages
default-jdk
,python3
,python3-pip
,python3-venv
(if you're using venv), as well aspython-is-python3
for convenience. If you're using venv, you might want to rerunpython -m venv env
again to make sure it has the files Bash needs, then dosource env/bin/activate
to activate the venv. You might also have to install pyspark from the Bash shell in case it needs to build anything platform specific. You can set environment variables in~/.bashrc
(It's the home dir in the Linux VM, not Windows so use the terminal to change this e.g.nano ~/.bashrc
orvim ~/.bashrc
if you're familiar with vi) with the shapeexport VARIABLE=VALUE
(put quotes around VALUE if it has spaces etc), then start a new shell to load those (doexec bash
to replace the currently running shell with a new process)From there you should be able to just run the code normally but in WSL instead
Thankfully, the problem has been resolved, so, after I finish with this project, I will have more time to get an actual programming set up on a non-VM NixOS that I have already installed.