macos
Pyspark: Exception: Java gateway process exited before sending the driver its port number
One possible reason is JAVA_HOME is not set because java is not installed. I encountered the same issue. It says at sc = pyspark.SparkConf(). I solved it by running which is from https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?
From the Apple Developer Forum (account required): “The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won’t run on those OS versions. If you need to run on older … Read more
How to tell if homebrew is installed on Mac OS X
brew help. If brew is there, you get output. If not, you get ‘command not found’. If you need to check in a script, you can work out how to redirect output and check $?.
mvn command not found in OSX Mavrerick
Try following these if these might help: Since your installation works on the terminal you installed, all the exports you did, work on the current bash and its child process. but is not spawned to new terminals. env variables are lost if the session is closed; using .bash_profile, you can make it available in all sessions, since when a bash session starts, it … Read more
mysqli_real_connect(): (HY000/2002): No such file or directory
PhpMyAdmin error on MacOS. I want answer I really have no idea what I need to do to resolve this.
“code .” Not working in Command Line for Visual Studio Code on OSX/Mac
1. Make sure you drag Visual Studio Code app into the -Applications- folder Otherwise (as noted in the comments) you’ll have to go through this process again after reboot 2. Next, open Visual Studio Code Open the Command Palette via (⇧⌘P) and type shell command to find the Shell Command: Update: use Uninstall ‘code’ command in PATH** command before > Install … Read more
How to set or change the default Java (JDK) version on macOS?
First run /usr/libexec/java_home -V which will output something like the following: Pick the version you want to be the default (1.6.0_65-b14-462 for arguments sake) then: or you can specify just the major version, like: Now when you run java -version you will see: Add the export JAVA_HOME… line to your shell’s init file. For Bash (as stated by antonyh): For Fish (as stated … Read more
How can I install a previous version of Python 3 in macOS using homebrew?
Short Answer To make a clean install of Python 3.6.5 use: If you prefer to recover a previously installed version, then: Long Answer There are two formulas for installing Python with Homebrew: python@2 and python.The first is for Python 2 and the second for Python 3. Note: You can find outdated answers on the web where it is mentioned python3 as … Read more
How do I update the password for Git?
To fix this on macOS, you can use A username and password prompt will appear with your next Git action (pull, clone, push, etc.). For Windows, it’s the same command with a different argument: