- Vagrant
- Virtualbox
- CentOS 7
The following steps are based on a Vagrant VM box which does NOT use LVM for a root partition, which seems to be the case for the official CentOS box.
# Stack to create EC2 instances for ECS cluster. | |
# | |
# aws cloudformation deploy \ | |
# --stack-name app-cluster-prod \ | |
# --template-file ./aws-cluster-stack.yaml \ | |
# --parameter-overrides \ | |
# KeyName=DEFAULT \ | |
# SecurityGroups=group1,group2 \ | |
# ImageId=ami-123456 \ | |
# InstanceType=c5.large \ |
/* | |
Copyright 2017 Hidetake Iwata | |
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 | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.sql.*; | |
public class PrestoJDBC { | |
// JDBC driver name and database URL | |
static final String JDBC_DRIVER = "com.facebook.presto.jdbc.PrestoDriver"; | |
//static final String JDBC_DRIVER = "com.teradata.presto.jdbc42.Driver"; | |
static final String DB_URL = "jdbc:presto://ec2-xx-xx-xxx-xxx.ap-northeast-1.compute.amazonaws.com:8889/hive/default"; |
How to setup docker behing a HTTP proxy
mkdir /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/http-proxy.conf
Add proxy info