Skip to content

Commit

Permalink
Hadoop file system: 1.4.3
Browse files Browse the repository at this point in the history
added buffered fs input stream
  • Loading branch information
chrislusf committed Jul 30, 2020
1 parent 703057b commit 6b41c52
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 113 deletions.
2 changes: 1 addition & 1 deletion other/java/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.chrislusf</groupId>
<artifactId>seaweedfs-client</artifactId>
<version>1.4.1</version>
<version>1.4.3</version>

<parent>
<groupId>org.sonatype.oss</groupId>
Expand Down
2 changes: 1 addition & 1 deletion other/java/client/pom.xml.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.chrislusf</groupId>
<artifactId>seaweedfs-client</artifactId>
<version>1.4.1</version>
<version>1.4.3</version>

<parent>
<groupId>org.sonatype.oss</groupId>
Expand Down
2 changes: 1 addition & 1 deletion other/java/client/pom_debug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.chrislusf</groupId>
<artifactId>seaweedfs-client</artifactId>
<version>1.4.1</version>
<version>1.4.3</version>

<parent>
<groupId>org.sonatype.oss</groupId>
Expand Down
2 changes: 1 addition & 1 deletion other/java/hdfs2/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</snapshotRepository>
</distributionManagement>
<properties>
<seaweedfs.client.version>1.4.1</seaweedfs.client.version>
<seaweedfs.client.version>1.4.3</seaweedfs.client.version>
<hadoop.version>2.9.2</hadoop.version>
</properties>
</project>
2 changes: 1 addition & 1 deletion other/java/hdfs2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<properties>
<seaweedfs.client.version>1.4.1</seaweedfs.client.version>
<seaweedfs.client.version>1.4.3</seaweedfs.client.version>
<hadoop.version>2.9.2</hadoop.version>
</properties>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public FSDataInputStream open(Path path, int bufferSize) throws IOException {
path = qualify(path);

try {
InputStream inputStream = seaweedFileSystemStore.openFileForRead(path, statistics, bufferSize);
return new FSDataInputStream(new BufferedSeaweedInputStream(inputStream, 16 * 1024 * 1024));
FSInputStream inputStream = seaweedFileSystemStore.openFileForRead(path, statistics, bufferSize);
return new FSDataInputStream(new BufferedFSInputStream(inputStream, 16 * 1024 * 1024));
} catch (Exception ex) {
LOG.warn("open path: {} bufferSize:{}", path, bufferSize, ex);
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package seaweed.hdfs;

import org.apache.hadoop.fs.FSInputStream;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
Expand Down Expand Up @@ -207,8 +208,8 @@ public OutputStream createFile(final Path path,

}

public InputStream openFileForRead(final Path path, FileSystem.Statistics statistics,
int bufferSize) throws IOException {
public FSInputStream openFileForRead(final Path path, FileSystem.Statistics statistics,
int bufferSize) throws IOException {

LOG.debug("openFileForRead path:{} bufferSize:{}", path, bufferSize);

Expand Down
2 changes: 1 addition & 1 deletion other/java/hdfs3/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</snapshotRepository>
</distributionManagement>
<properties>
<seaweedfs.client.version>1.4.1</seaweedfs.client.version>
<seaweedfs.client.version>1.4.3</seaweedfs.client.version>
<hadoop.version>3.1.1</hadoop.version>
</properties>
</project>
2 changes: 1 addition & 1 deletion other/java/hdfs3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<properties>
<seaweedfs.client.version>1.4.1</seaweedfs.client.version>
<seaweedfs.client.version>1.4.3</seaweedfs.client.version>
<hadoop.version>3.1.1</hadoop.version>
</properties>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public FSDataInputStream open(Path path, int bufferSize) throws IOException {
path = qualify(path);

try {
InputStream inputStream = seaweedFileSystemStore.openFileForRead(path, statistics, bufferSize);
return new FSDataInputStream(new BufferedSeaweedInputStream(inputStream, 16 * 1024 * 1024));
FSInputStream inputStream = seaweedFileSystemStore.openFileForRead(path, statistics, bufferSize);
return new FSDataInputStream(new BufferedFSInputStream(inputStream, 16 * 1024 * 1024));
} catch (Exception ex) {
LOG.warn("open path: {} bufferSize:{}", path, bufferSize, ex);
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package seaweed.hdfs;

import org.apache.hadoop.fs.FSInputStream;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
Expand Down Expand Up @@ -207,8 +208,8 @@ public OutputStream createFile(final Path path,

}

public InputStream openFileForRead(final Path path, FileSystem.Statistics statistics,
int bufferSize) throws IOException {
public FSInputStream openFileForRead(final Path path, FileSystem.Statistics statistics,
int bufferSize) throws IOException {

LOG.debug("openFileForRead path:{} bufferSize:{}", path, bufferSize);

Expand Down

0 comments on commit 6b41c52

Please sign in to comment.