Skip to content

Instantly share code, notes, and snippets.

View RussellSpitzer's full-sized avatar
🤷‍♀️
...

Russell Spitzer RussellSpitzer

🤷‍♀️
...
View GitHub Profile

Configuration Reference

Cassandra Authentication Parameters

Property Name Default Description
spark.cassandra.auth.conf.factory DefaultAuthConfFactory name of a Scala module or class implementing AuthConfFactory providing custom authentication configuration
spark.cassandra.auth.username None Login name for password authentication
spark.cassandra.auth.password None password for password authentication

Configuration Reference

All parameters should be prefixed with spark.cassandra.

Cassandra Authentication Parameters

DefaultAuthConfFactory
Property NameDefaultDescription
auth.conf.factory
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.apache.hadoop.fs;
import com.google.common.annotations.VisibleForTesting;
import java.io.Closeable;
import java.io.FileNotFoundException;
@RussellSpitzer
RussellSpitzer / mods.js
Created April 8, 2016 17:46
AutoDrive v1
if(! (!this.collisionDetection || !this.collisionMap || !this.collisionMap.loaded)) {
if (this.speed < 7) {
this.key.forward = true
} else {
this.key.forward = false
}
var x = Math.round(this.collisionMap.pixels.width / 2 + this.dummy.position.x * this.collisionPixelRatio);
var z = Math.round(this.collisionMap.pixels.height / 2 + this.dummy.position.z * this.collisionPixelRatio);
var pos = new THREE.Vector3(x, 0, z);
if(! (!this.collisionDetection || !this.collisionMap || !this.collisionMap.loaded)) {
//Breaking is for losers
this.key.forward = true
var x = Math.round(this.collisionMap.pixels.width / 2 + this.dummy.position.x * this.collisionPixelRatio);
var z = Math.round(this.collisionMap.pixels.height / 2 + this.dummy.position.z * this.collisionPixelRatio);
var pos = new THREE.Vector3(x, 0, z);
//console.log(x, z, this.collisionMap.pixels.width, this.collisionMap.pixels.height, this.dummy.position.x, this.dummy.position.z)
```python
df = sqlContext.createDataFrame([("test", 1)])
```
```python
df.show()
```
```python
df = sqlContext.createDataFrame([("test", 1)])
```
```python
df.show()
```
df = sqlContext.createDataFrame([("test", 1)])
df.show()
{
"cluster_name": "blades",
"private_key_path": "/Users/russellspitzer/.ssh/blade",
"ssh_user": "root",
"hosts": [
{
"host_name": "blade-8-3a",
"ip_address": "blade-8-3a",
"private_host_name": "blade-8-3a",
"private_ip_address": "blade-8-3a"
@RussellSpitzer
RussellSpitzer / gist:fef1e482cffe01ebc856c96c19f2ee0d
Created August 12, 2016 22:49
RelevantPortionofCassandra-env.sh
if [ "$JVM_VERSION" \< "1.8.0" ] ; then
### Start CMS GC Settings
# Used if Java version is not 1.8+, G1GC is used for Java 1.8+.
# some JVMs will fill up their heap when accessed via JMX, see CASSANDRA-6541
JVM_OPTS="$JVM_OPTS -XX:+CMSClassUnloadingEnabled"
# CMS GC tuning options
JVM_OPTS="$JVM_OPTS -Xmn${HEAP_NEWSIZE}"
JVM_OPTS="$JVM_OPTS -XX:+UseParNewGC"
JVM_OPTS="$JVM_OPTS -XX:+UseConcMarkSweepGC"