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
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.Properties; | |
import org.I0Itec.zkclient.ZkClient; | |
import org.apache.kafka.clients.consumer.ConsumerRecord; | |
import org.apache.kafka.clients.consumer.ConsumerRecords; | |
import org.apache.kafka.clients.consumer.KafkaConsumer; |
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
import java.util.Map; | |
import java.util.Properties; | |
import java.util.TreeMap; | |
/** | |
* Shows a sorted list of all system properties | |
*/ | |
public class ShowSystemProperties { | |
public static void main(String[] argv) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"host_groups": [ | |
{ | |
"name": "host_group_client_1", | |
"configurations": [], | |
"components": [ | |
{ | |
"name": "ZOOKEEPER_CLIENT" | |
}, | |
{ |
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
#!/bin/bash | |
docker run --name cdh --hostname "quickstart.cloudera" --privileged=true -t -i -d \ | |
-p 80:80 \ | |
-p 7180:7180 \ | |
-p 8888:8888 \ | |
cloudera/quickstart /usr/bin/docker-quickstart | |
docker exec -ti cdh /home/cloudera/cloudera-manager --express |
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
# | |
# Some constants | |
# | |
aws_profile = "your_profile" | |
aws_region = "your_region" | |
s3_bucket = "your_bucket" | |
# | |
# Reading environment variables from aws credential file | |
# |
Do
$> brew install openssl
$> brew install swig
Now add these lines to your ~/.zshrc
file on Mac OS X
# this is very slow, see https://github.com/Homebrew/brew/issues/3327
# OPENSSL=$(brew --prefix openssl)
# this is much faster
To convert LaTeX to HTML5 with tufte-css layout one first needs to copy the file tufte.css
and the corresponding font directory et-book
from the tufte-css github repo into your working directory.
Then we need to extract the default html5 template from pandoc via
pandoc -D html5 > html5.html
This template must be modified and the tags <article>
and <section>
should be added around the body of the template like
OlderNewer