embulk-output-redshift 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -6
- data/build.gradle +1 -1
- data/classpath/aws-java-sdk-core-1.11.253.jar +0 -0
- data/classpath/aws-java-sdk-kms-1.11.253.jar +0 -0
- data/classpath/aws-java-sdk-s3-1.11.253.jar +0 -0
- data/classpath/commons-codec-1.9.jar +0 -0
- data/classpath/commons-logging-1.2.jar +0 -0
- data/classpath/{embulk-output-jdbc-0.8.0.jar → embulk-output-jdbc-0.8.1.jar} +0 -0
- data/classpath/{embulk-output-postgresql-0.8.0.jar → embulk-output-postgresql-0.8.1.jar} +0 -0
- data/classpath/embulk-output-redshift-0.8.1.jar +0 -0
- data/classpath/embulk-util-aws-credentials-0.2.21.jar +0 -0
- data/classpath/httpclient-4.5.2.jar +0 -0
- data/classpath/httpcore-4.4.4.jar +0 -0
- data/classpath/ion-java-1.0.2.jar +0 -0
- data/classpath/jackson-databind-2.6.7.1.jar +0 -0
- data/classpath/jackson-dataformat-cbor-2.6.7.jar +0 -0
- data/classpath/jmespath-java-1.11.253.jar +0 -0
- data/src/main/java/org/embulk/output/redshift/RedshiftCopyBatchInsert.java +17 -0
- metadata +17 -14
- data/classpath/aws-java-sdk-core-1.10.77.jar +0 -0
- data/classpath/aws-java-sdk-kms-1.10.77.jar +0 -0
- data/classpath/aws-java-sdk-s3-1.10.77.jar +0 -0
- data/classpath/commons-codec-1.6.jar +0 -0
- data/classpath/commons-logging-1.1.3.jar +0 -0
- data/classpath/embulk-output-redshift-0.8.0.jar +0 -0
- data/classpath/embulk-util-aws-credentials-0.2.8.jar +0 -0
- data/classpath/httpclient-4.3.6.jar +0 -0
- data/classpath/httpcore-4.3.3.jar +0 -0
- data/classpath/jackson-dataformat-cbor-2.5.3.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2d854b3e26ff0e2ccee483017fc9450d8652b5d
|
4
|
+
data.tar.gz: d70bb02e125e2559c1f78b5bc7dcc60bbb66db38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9ef7df4a29ee2349b8b33e9da685402c4567b2f00e922d4c63d135da0d9c9c876315b7e360a171da5feba08ad9b2dc758dbc39f4612d0cce5cbccf42eb2795
|
7
|
+
data.tar.gz: a6a6f12f171f003cffd9ce0edd10e014160b9430610dd7769588dad28aa8209751bd060cce4bc5ab2cbb63f36700545f79d852823e74726163c3a45de836316f
|
data/README.md
CHANGED
@@ -19,11 +19,11 @@ Redshift output plugin for Embulk loads records to Redshift.
|
|
19
19
|
- **schema**: destination schema name (string, default: "public")
|
20
20
|
- **temp_schema**: schema name for intermediate tables. by default, intermediate tables will be created in the schema specified by `schema`. replace mode doesn't support temp_schema. (string, optional)
|
21
21
|
- **table**: destination table name (string, required)
|
22
|
-
- **create_table_constraint
|
23
|
-
- **create_table_option
|
22
|
+
- **create_table_constraint**: table constraint added to `CREATE TABLE` statement, like `CREATE TABLE <table_name> (<column1> <type1>, <column2> <type2>, ..., <create_table_constraint>) <create_table_option>`.
|
23
|
+
- **create_table_option**: table option added to `CREATE TABLE` statement, like `CREATE TABLE <table_name> (<column1> <type1>, <column2> <type2>, ..., <create_table_constraint>) <create_table_option>`.
|
24
24
|
- **access_key_id**: deprecated. `aws_access_key_id` should be used (see "basic" in `aws_auth_method`).
|
25
25
|
- **secret_access_key**: deprecated. `aws_secret_access_key` should be used (see "basic" in `aws_auth_method`).
|
26
|
-
- **aws_auth_method**: name of mechanism to authenticate requests ("basic", "env", "instance", "profile", "properties", "anonymous", or "
|
26
|
+
- **aws_auth_method**: name of mechanism to authenticate requests ("basic", "env", "instance", "profile", "properties", "anonymous", "session" or "default". default: "basic")
|
27
27
|
|
28
28
|
- "basic": uses `access_key_id` and `secret_access_key` to authenticate.
|
29
29
|
|
@@ -62,14 +62,21 @@ Redshift output plugin for Embulk loads records to Redshift.
|
|
62
62
|
|
63
63
|
- **aws_session_token**: session token (string, required)
|
64
64
|
|
65
|
+
- "default": uses AWS SDK's default strategy to look up available credentials from runtime environment. This method behaves like the combination of the following methods.
|
66
|
+
|
67
|
+
1. "env"
|
68
|
+
1. "properties"
|
69
|
+
1. "profile"
|
70
|
+
1. "instance"
|
71
|
+
|
65
72
|
- **iam_user_name**: IAM user name for uploading temporary files to S3. The user should have permissions of `s3:GetObject`, `s3:PutObject`, `s3:DeleteObject`, `s3:ListBucket` and `sts:GetFederationToken`. And furthermore, the user should have permission of `s3:GetBucketLocation` if Redshift region and S3 bucket region are different. (string, default: "", but we strongly recommend that you use IAM user for security reasons. see below.)
|
66
73
|
- **s3_bucket**: S3 bucket name for temporary files
|
67
74
|
- **s3_key_prefix**: S3 key prefix for temporary files (string, default: "")
|
68
75
|
- **delete_s3_temp_file**: whether to delete temporary files uploaded on S3 (boolean, default: true)
|
69
76
|
- **options**: extra connection properties (hash, default: {})
|
70
|
-
- **retry_limit
|
71
|
-
- **retry_wait
|
72
|
-
- **max_retry_wait
|
77
|
+
- **retry_limit**: max retry count for database operations (integer, default: 12)
|
78
|
+
- **retry_wait**: initial retry wait time in milliseconds (integer, default: 1000 (1 second))
|
79
|
+
- **max_retry_wait**: upper limit of retry wait, which will be doubled at every retry (integer, default: 1800000 (30 minutes))
|
73
80
|
- **mode**: "insert", "insert_direct", "truncate_insert", "replace" or "merge". See below. (string, required)
|
74
81
|
- **merge_keys**: key column names for merging records in merge mode (string array, required in merge mode)
|
75
82
|
- **batch_size**: size of a single batch insert (integer, default: 16777216)
|
data/build.gradle
CHANGED
@@ -4,7 +4,7 @@ dependencies {
|
|
4
4
|
|
5
5
|
compile "com.amazonaws:aws-java-sdk-s3:1.10.77"
|
6
6
|
compile "com.amazonaws:aws-java-sdk-sts:1.10.77"
|
7
|
-
|
7
|
+
compile 'org.embulk.input.s3:embulk-util-aws-credentials:0.2.21'
|
8
8
|
|
9
9
|
testCompile project(':embulk-output-jdbc').sourceSets.test.output
|
10
10
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -172,6 +172,23 @@ public class RedshiftCopyBatchInsert
|
|
172
172
|
}
|
173
173
|
}
|
174
174
|
|
175
|
+
// Add \ before \, \n, \t
|
176
|
+
// Remove \0
|
177
|
+
@Override
|
178
|
+
protected String escape(char c)
|
179
|
+
{
|
180
|
+
switch (c) {
|
181
|
+
case '\n':
|
182
|
+
return "\\\n";
|
183
|
+
case '\t':
|
184
|
+
return "\\\t";
|
185
|
+
case '\r':
|
186
|
+
return String.valueOf(c);
|
187
|
+
default:
|
188
|
+
return super.escape(c);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
175
192
|
private BasicSessionCredentials generateReaderSessionCredentials(String s3KeyName)
|
176
193
|
{
|
177
194
|
Policy policy = new Policy()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-redshift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -19,20 +19,23 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- build.gradle
|
22
|
-
- classpath/aws-java-sdk-core-1.
|
23
|
-
- classpath/aws-java-sdk-kms-1.
|
24
|
-
- classpath/aws-java-sdk-s3-1.
|
22
|
+
- classpath/aws-java-sdk-core-1.11.253.jar
|
23
|
+
- classpath/aws-java-sdk-kms-1.11.253.jar
|
24
|
+
- classpath/aws-java-sdk-s3-1.11.253.jar
|
25
25
|
- classpath/aws-java-sdk-sts-1.10.77.jar
|
26
|
-
- classpath/commons-codec-1.
|
27
|
-
- classpath/commons-logging-1.
|
28
|
-
- classpath/embulk-output-jdbc-0.8.
|
29
|
-
- classpath/embulk-output-postgresql-0.8.
|
30
|
-
- classpath/embulk-output-redshift-0.8.
|
31
|
-
- classpath/embulk-util-aws-credentials-0.2.
|
32
|
-
- classpath/httpclient-4.
|
33
|
-
- classpath/httpcore-4.
|
34
|
-
- classpath/
|
26
|
+
- classpath/commons-codec-1.9.jar
|
27
|
+
- classpath/commons-logging-1.2.jar
|
28
|
+
- classpath/embulk-output-jdbc-0.8.1.jar
|
29
|
+
- classpath/embulk-output-postgresql-0.8.1.jar
|
30
|
+
- classpath/embulk-output-redshift-0.8.1.jar
|
31
|
+
- classpath/embulk-util-aws-credentials-0.2.21.jar
|
32
|
+
- classpath/httpclient-4.5.2.jar
|
33
|
+
- classpath/httpcore-4.4.4.jar
|
34
|
+
- classpath/ion-java-1.0.2.jar
|
35
|
+
- classpath/jackson-databind-2.6.7.1.jar
|
36
|
+
- classpath/jackson-dataformat-cbor-2.6.7.jar
|
35
37
|
- classpath/jcl-over-slf4j-1.7.12.jar
|
38
|
+
- classpath/jmespath-java-1.11.253.jar
|
36
39
|
- classpath/postgresql-9.4-1205-jdbc41.jar
|
37
40
|
- lib/embulk/output/redshift.rb
|
38
41
|
- src/main/java/org/embulk/output/RedshiftOutputPlugin.java
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|