Skip to content

Instantly share code, notes, and snippets.

@Jammink2
Created February 3, 2017 05:56
Show Gist options
  • Save Jammink2/88ce4fd13ebfca9e395306ff0a7d69cb to your computer and use it in GitHub Desktop.
Save Jammink2/88ce4fd13ebfca9e395306ff0a7d69cb to your computer and use it in GitHub Desktop.
NOTE: These are possibly the worst setup instructions I have ever read. Never EVER send your community across Oracle's shit site to go looking for things. You do NOT EVER dump people on Oracle's page to hopefully find the right SDK. Same thing goes for amazon's poor and convoluted documentation. You give them end to end instructions for setup, tell them EXACTLY what binaries to download (list the most common platform)Otherwise, NOBODY will - nor should - spend their precious time trying to your solution.
Unfortunately, the documentation is too non-specific -
Install Java JDK For MacOS
Follow the MacOS Java JDK installation instructions on the Oracle web site.
#after installing JDK; before starting splice
sudo nano ~/.bash_profile
export JAVA_HOME=`/usr/libexec/java_home`
IMO, we should NEVER do this. There is a risk that someone in our community will install the wrong version natively to their machine, and then they've hosed their Java installation. I've done this (although not now). And I've seen developers in my community do this, time and time again, and it's not pretty.
Instead, can we get an exact link to the exact JDK version we want people to use?
Install JDK:
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
Which one do I need? Consult with someone.
Probably this one? jdk-7u80-macosx-x64.dmg (downloaded)
You can also do 1.8
1. Downloading Splice Machine:
# this seems to work
wget https://s3.amazonaws.com/splice-releases/2.0.1.18/standalone/splice_machine-2.0.1.18_standalone.tar.gz
2. Optional - move downloaded tarball
3. Install Splice Machine
#create a splicemachine subdirectory and install Splice machine
tar -xzf splice_machine-2.0.1.18_standalone.tar.gz
4. Start Using Splice Machine
# http://doc.splicemachine.com/Administrators/InstallingSpliceMachine/StandaloneInstall.html#Start
cd splicemachine
./bin/start-splice.sh
./bin/sqlshell.sh
See link above
# http://doc.splicemachine.com/Administrators/InstallingSpliceMachine/StandaloneInstall.html#Start
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I'm able to get this to fall down the same way as on my Linux VM, when running data imports from loadall.sql:
splice> call SYSCS_UTIL.IMPORT_DATA('SPLICE' , 'T_HEADER' , null , '/Users/John/Downloads/splicemachine/splicemachine/demodata/data/theader.csv' , ',' , null , null , 'yyyy-MM-dd' , null , 0 , null , null , null);
ERROR 08006: A network protocol error was encountered and the connection has been terminated: the requested command encountered an unarchitected and implementation-specific condition for which there was no architected message (additional information may be available in the derby.log file on the server)
ERROR 08006: DERBY SQL error: SQLCODE: -1, SQLSTATE: 08006, SQLERRMC: A communications error has been detected: {0}.::SQLSTATE: XJ001Java exception: 'Yarn application has already ended! It might have been killed or unable to launch application master.: org.apache.spark.SparkException'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment