embulk-input-remote 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ea2dc9f5f71195a19ac5f0a5a3e96d4020a02b2
4
- data.tar.gz: 4081a11e980990e00243581ec48016cd6bd15bbe
3
+ metadata.gz: 16eac682d2976b476c1ecfd472a5b1a5cf466a79
4
+ data.tar.gz: 8a35909c67a6698da3c2316a334db2359c7829fc
5
5
  SHA512:
6
- metadata.gz: 93cfc49c50e5844ad4e9a9b51ea8513d2e8f422866d8c52542f2b306605a78896f1d805bd68a7e21e77114af525e1c3f5510c98b1b74f94743360a79074eb54a
7
- data.tar.gz: 34c3fcb851fa472051aeaa77182bfcf89ff2f8b3ee021681cd3904e53ffb31e55719bb33949ed2326ebfc29a2996c4ad3ccd97117358f8abb0c469df5cd67c37
6
+ metadata.gz: fcccf3be60c766fbf165e33ee3d69d606c09cfee22eb8c0c96cf80fd72c4201fbeb0ac91c1d7999d7d2e4094fe3f4ffdf2b6b1f4d8f76b690d5a02e4e04ab5e1
7
+ data.tar.gz: caa457262c61d56ca484aa48d099c81e6e4577411456f1b7a903b398c2bb1198c3139046aa112566fbddc83eb638ffb01d1c96ad66e12f90d0093ae0f2352bb8
data/README.md CHANGED
@@ -43,6 +43,27 @@ in:
43
43
  # password: {password}
44
44
  ```
45
45
 
46
+ ## Note
47
+ When this plugin run on Linux, task is sometimes blocked.
48
+ The cause is java.security.SecureRandom. Solution is the following.
49
+
50
+ ### set JVM_OPTION "-Djava.security.egd"
51
+
52
+ ```bash
53
+ $ export JAVA_TOOL_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
54
+ $ embulk run config.yml
55
+ ```
56
+
57
+ ### rewrite ${JAVA_HOME}/jre/lib/security/java.security
58
+
59
+ ```
60
+ # securerandom.source=file:/dev/random # before
61
+ securerandom.source=file:/dev/./urandom # after
62
+ ```
63
+
64
+ ### see also
65
+
66
+ http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom
46
67
 
47
68
  ## Build
48
69
 
data/build.gradle CHANGED
@@ -13,11 +13,12 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.2"
16
+ version = "0.1.3"
17
17
 
18
18
  dependencies {
19
19
  compile "org.embulk:embulk-core:0.6.1"
20
20
  compile "com.hierynomus:sshj:0.11.0"
21
+ compile "com.jcraft:jzlib:1.1.3"
21
22
  provided "org.embulk:embulk-core:0.6.1"
22
23
  testCompile "junit:junit:4.+"
23
24
  }
@@ -114,7 +114,6 @@ public class RemoteFileInputPlugin
114
114
  if (!exists(target, task)) {
115
115
  continue;
116
116
  }
117
- // This host will fail when "open" method is called.
118
117
  }
119
118
  builder.add(target);
120
119
  }
@@ -55,6 +55,7 @@ public class SSHClient implements Closeable {
55
55
  }
56
56
 
57
57
  public void scpDownload(String path, OutputStream stream) throws IOException {
58
+ client.useCompression();
58
59
  client.newSCPFileTransfer().download(path, new InMemoryDestFileImpl(stream));
59
60
  }
60
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinichi ISHIMURA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,7 +59,7 @@ files:
59
59
  - src/test/java/org/embulk/input/TestRemoteFileInputPlugin.java
60
60
  - classpath/bcpkix-jdk15on-1.51.jar
61
61
  - classpath/bcprov-jdk15on-1.51.jar
62
- - classpath/embulk-input-remote-0.1.2.jar
62
+ - classpath/embulk-input-remote-0.1.3.jar
63
63
  - classpath/jzlib-1.1.3.jar
64
64
  - classpath/sshj-0.11.0.jar
65
65
  homepage: https://github.com/kamatama41/embulk-input-remote