Getting Started With Superset: Airbnb’s data exploration platform
These instructions are for Amazon Linux Version 2
sudo yum update -y
sudo yum install python3 -y
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Put a SecureString parameter in SSM Parameter Store | |
Parameters: | |
KmsKeyId: | |
Type: String | |
Description: The KMS Key you want to use to encrypt the string. | |
SSMParameterKey: | |
Type: String | |
Description: The Parameter Store Key | |
SSMParameterValue: |
import pkg_resources | |
installed_packages = pkg_resources.working_set | |
for package in sorted(installed_packages, lambda x: x.key): | |
print "{}=={}".format(package.key, package.version) |
awscli==1.14.45 | |
boto3==1.5.35 | |
botocore==1.8.49 | |
colorama==0.3.7 | |
docutils==0.14 | |
futures==3.2.0 | |
jmespath==0.9.3 | |
numpy==1.14.0 | |
pandas==0.22.0 | |
pip==9.0.1 |
These instructions are for Amazon Linux Version 2
sudo yum update -y
sudo yum install python3 -y
def s3_to_pandas(client, bucket, key, header=None): | |
# get key using boto3 client | |
obj = client.get_object(Bucket=bucket, Key=key) | |
gz = gzip.GzipFile(fileobj=obj['Body']) | |
# load stream directly to DF | |
return pd.read_csv(gz, header=header, dtype=str) | |
def s3_to_pandas_with_processing(client, bucket, key, header=None): |
#! /usr/bin/env python | |
import threading | |
import subprocess | |
import traceback | |
import shlex | |
class Command(object): | |
""" | |
Enables to run subprocess commands in a different thread with TIMEOUT option. |
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" } |
docker-compose.yml
and config.yml
in the same directory on one of your volumes on the NAS.docker-compose up -d
curl --head http://NAS-IP:55000
--registry-mirror=http://NAS-IP:55000
curl http://NAS-IP:55000/v2/_catalog
# vim: set fileencoding=utf-8 : | |
# | |
# How to store and retrieve gzip-compressed objects in AWS S3 | |
########################################################################### | |
# | |
# Copyright 2015 Vince Veselosky and contributors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
Many users when are given server access, do not have root (or sudo) privileges and can not simply do
sudo apt-get install python-pip
.
Here's an easy way you can install and use pip without root (or sudo) access in a local directory.
Note : This works without easy_install
too.