I hereby claim:
- I am conorfennell on github.
- I am conorfennell (https://keybase.io/conorfennell) on keybase.
- I have a public key whose fingerprint is BEC2 979F 714E 8062 9451 FFC7 EC51 456C AFF9 3BBC
To claim this, I am signing this object:
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
I hereby claim:
To claim this, I am signing this object:
val sc: SparkContext // An existing SparkContext. | |
val sqlContext = new org.apache.spark.sql.SQLContext(sc) | |
// Create the DataFrame | |
val df = sqlContext.read.json("examples/src/main/resources/people.json") | |
// Show the content of the DataFrame | |
df.show() | |
// age name | |
// null Michael |
import org.scalatest.FunSpec | |
import scala.collection.mutable.Stack | |
class ExampleSpec extends FunSpec { | |
describe("A Stack") { | |
it("should pop values in last-in-first-out order") { | |
val stack = new Stack[Int] | |
stack.push(1) |
realm=Sonatype Nexus | |
host=127.0.0.1 | |
user=admin | |
password=admin123 |
"\e\e[C": forward-word | |
"\e\e[D": backward-word |
# Install go/golang with homebrew | |
brew install go --cross-compile-common | |
# Set following env variables in ~/.bashrc or ~/.zshrc | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export GOBIN=$GOPATH/bin | |
export PATH=$PATH:$GOPATH | |
export PATH=$PATH:$GOROOT/bin |
pt-get -qq update | |
apt-get remove apt-listchanges | |
apt-get install curl |
echo "exclude.internal.topics=false" > /tmp/consumer.config | |
#Only consume the latest consumer offsets | |
./kafka-console-consumer.sh --consumer.config /tmp/consumer.config \ | |
--formatter "kafka.coordinator.group.GroupMetadataManager\$OffsetsMessageFormatter" \ | |
--bootstrap-server ${BOOTSTRAP_SERVER} --topic __consumer_offsets |
169.254.169.254