aws emr list-clusters
Enable port forwarding on VirtualBox Machine from 2376 on host to 2376 on guest (Settings > Network > Adapter 1 NAT > Advanced > Port Forwarding), and then export the following in a shell. Docker Compose and other docker tools will work as expected.
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://localhost:2376"
For docker-machine users:
Note: replace {{server}} with your domain or ip
- Login as the ec2-user
ssh -i key.pem ec2-user@{{server}}
- Switch to administrator
sudo -i
-
Install docker-machine
-
Install docker-compose
# Before VPN
alias dc=docker-compose
alias dm=docker-machine
# Optional: use options --virtualbox-cpu-count "4" --virtualbox-memory "4096"
This file contains hidden or 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
To remove all containers and images: | |
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This file contains hidden or 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
{ | |
"settings" : { | |
"analysis" : { | |
"analyzer" : { | |
"default" : { | |
"tokenizer" : "whitespace", | |
"filter" : [ "thesaurus_synonyms", "lowercase", "snow_en" ] | |
}, | |
"make_analyzer" : { | |
"tokenizer" : "whitespace", |
This file contains hidden or 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
//xs:element[starts-with(@type, 'xs:')]/@name | |
| //xs:simpleType[ | |
xs:restriction[not(xs:length) and | |
not(xs:minInclusive and xs:maxInclusive) and | |
not(xs:maxLength) and not(xs:enumeration) and | |
not(starts-with(@base, 'xs:dateTime')) and | |
not(xs:pattern[not(empty(@value))])] | |
]/@name |