This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Fit to TCX | |
# | |
# Copyright (c) 2012, Gustav Tiger <gustav@tiger.name> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a | |
# copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compile the C++ code creating a shared library (or shared object in UNIX) | |
$ clang++ TestJNI.cpp -o libTestJNI.so -fPIC -shared -std=c++11 -I$HOME/opt/java/include -I$HOME/opt/java/include/linux | |
Run the application | |
$ scala -save load.scala | |
dir = /home/archbox/opengl/jni/libTestJNI.so | |
Hello world java | |
i = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### This gist explains how to connect jupyterhub with Spark2 on CDH 5.13 Cluster. | |
Following below instructions, Spark can be configured with Jupyterhub on any cluster, standalone or locally etc | |
- Install jupyterhub by following instructions on official repo https://github.com/jupyterhub/jupyterhub | |
- Once installed, before configuring spark2 kernel first locate the jupyter's kernels directory. | |
On centos7, its under /usr/share/jupyter/kernels/ | |
- Assuming all jupyterhub kernel's are in /usr/share/jupyter/kernels/ | |
mkdir /usr/share/jupyter/kernels/pyspark2 | |
- Create pyspark2 kernel | |
touch /usr/share/jupyter/kernels/pyspark2/kernel.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ |