Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Avinash avinash-mishra

🎯
Focusing
View GitHub Profile
@avinash-mishra
avinash-mishra / AWS-CLI.md
Last active Sep 10, 2018 — forked from stevenyap/AWS-CLI.md
AWS S3 Command Line
View AWS-CLI.md

S3 Syncing

# sync from bucket to local
aws s3 sync <bucket> <target_folder> <options>
aws s3 sync s3://mybucket . --acl public-read

aws s3 sync --region ap-northeast-1 s3://[移動元バケット名] s3://[移動先バケット名]
@avinash-mishra
avinash-mishra / cassandra-cluster-ec2-linux.md
Created Apr 4, 2017 — forked from diegopacheco/cassandra-cluster-ec2-linux.md
How to setup a Cassandra 2.x Cluster in AWS EC2 / Amazon Linux
View cassandra-cluster-ec2-linux.md

Cassandra 2.x Cluster on AWS EC2

Install java 8

# Remove java 7
sudo yum remove -y java

# Install basic packages
sudo yum install -y git
View Kafka MultiNode - MultiBroker Cluster.md
@avinash-mishra
avinash-mishra / mysql2cassandra.py
Created Sep 23, 2016 — forked from erincerys/mysql2cassandra.py
Dumps a MySQL table and reformulates it into JSON to be ingested into a Cassandra table
View mysql2cassandra.py
#! /usr/bin/env python
#
# mysql2cassandra.py
# Dump a MySQL result set to file and then import into a Cassandra column family
#
# Configuration
# mysql_params [host, port, user, password, db] MySQL conenction parameters
# mysql_columns [colname, colname2, ...] Columns for building MySQL query
# The column that will hold values of the row key in the Cassandra column family must be first