(:identity req)
is auth backend independent way to access user data- login and logout implementation depends on auth backend
:current-user
doesn't imply that authentication is required, route should also have:auth-rules
if authentication is required
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 | |
# Install sqoop and mysql connector. Store in s3 and load | |
# as bootstrap step. | |
bucket_location='<put your bucket here>' | |
sqoop_jar='sqoop-1.4.3.bin__hadoop-1.0.0' | |
sqoop_jar_gz=$sqoop_jar.tar.gz | |
mysql_dir='mysql-connector-java-5.1.24' | |
mysql_jar='mysql-connector-java-5.1.24-bin.jar' | |
mysql_dir_gz=$mysql_dir.tar.gz |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Three comparison points: | |
Presto + RCFile vs Impala + RCFile vs Impala + Parquet | |
Note: Query time, CPU utilization, Disk read tput (KBRead) | |
Impala v1.1.1 | |
Presto v0.52 | |
================================================================================================================================ | |
Presto + RCFile: | |
select ss_sold_date_sk, count(*) from store_sales_rcfile group by 1 order by 1 limit 2000; |
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/env python | |
"""Split large file into multiple pieces for upload to S3. | |
S3 only supports 5Gb files for uploading directly, so for larger CloudBioLinux | |
box images we need to use boto's multipart file support. | |
This parallelizes the task over available cores using multiprocessing. | |
Usage: | |
s3_multipart_upload.py <file_to_transfer> <bucket_name> [<s3_key_name>] |
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
# stacktrace java as one message | |
multiline { | |
#type => "all" # no type means for all inputs | |
pattern => "(^.+Exception: .+)|(^\s+at .+)|(^\s+... \d+ more)|(^\s*Caused by:.+)" | |
what => "previous" | |
} | |
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 | |
PACKAGE=$(basename "$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
{ | |
"system": { | |
"offload": { | |
"ipv4": { | |
"forwarding": "enable", | |
"gre": "enable", | |
"pppoe": "enable", | |
"vlan": "enable" | |
}, | |
"ipv6": { |
OlderNewer