Skip to content

Commit d24584f

Browse files
committed
Upgraded dependencies for Manta SDK and Hadoop.
1 parent cb4d0c0 commit d24584f

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [1.0.2] - 2016-10-05
6+
### Changed
7+
- Upgraded Java Manta SDK to 2.4.3.
8+
- Upgraded Hadoop to 2.7.3.
9+
### Fixed
10+
- Changed detection of an embedded configuration encryption key
11+
and encryption key file path detection such that embedded keys
12+
will not trigger an error condition.
13+
514
## [1.0.1] - 2016-06-08
615
### Added
716
- We now recursively create missing paths when create() is called.

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
<failsafe.useSystemClassLoader>true</failsafe.useSystemClassLoader>
6262
<!-- Dependency versions -->
6363
<dependency.checkstyle.version>6.17</dependency.checkstyle.version>
64-
<dependency.java-manta.version>2.4.0</dependency.java-manta.version>
64+
<dependency.java-manta.version>2.4.3</dependency.java-manta.version>
6565
<dependency.testng.version>6.9.9</dependency.testng.version>
66-
<dependency.hadoop.version>2.7.2</dependency.hadoop.version>
66+
<dependency.hadoop.version>2.7.3</dependency.hadoop.version>
6767
<dependency.mockito.version>2.0.2-beta</dependency.mockito.version>
6868

6969
<!-- Plugin versions -->
@@ -149,7 +149,7 @@
149149
<url>http://www-us.apache.org/dist/hadoop/common/hadoop-${dependency.hadoop.version}/hadoop-${dependency.hadoop.version}.tar.gz</url>
150150
<unpack>true</unpack>
151151
<outputDirectory>${project.build.directory}/hadoop_home</outputDirectory>
152-
<md5>c442bd89b29cab9151b5987793b94041</md5>
152+
<md5>3455bb57e4b4906bbea67b58cca78fa8</md5>
153153
</configuration>
154154
</execution>
155155
</executions>

src/main/java/com/joyent/hadoop/fs/manta/MantaFileSystem.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,21 @@ public void initialize(final URI name, final Configuration conf) throws IOExcept
151151
ChainedConfigContext chained = new ChainedConfigContext(
152152
new EnvVarConfigContext(),
153153
new MapConfigContext(System.getProperties()),
154-
new HadoopConfigurationContext(conf),
155-
new DefaultsConfigContext()
154+
new HadoopConfigurationContext(conf)
156155
);
157156

157+
final DefaultsConfigContext defaultContext = new DefaultsConfigContext();
158+
159+
/* Primitive hack to keep configuration from error because private key content
160+
* was set at the same time as a key path. */
161+
if (chained.getPrivateKeyContent() != null) {
162+
final ChainedConfigContext overwritableDefaults = new ChainedConfigContext();
163+
overwritableDefaults.setMantaKeyPath(null);
164+
chained.overwriteWithContext(overwritableDefaults);
165+
} else {
166+
chained.overwriteWithContext(defaultContext);
167+
}
168+
158169
this.config = chained;
159170
this.client = new MantaClient(this.config);
160171

0 commit comments

Comments
 (0)