incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixing hadoop1 issue.
Date Sat, 02 May 2015 14:02:04 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 4d934d786 -> f2bc7b395


Fixing hadoop1 issue.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/f2bc7b39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/f2bc7b39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/f2bc7b39

Branch: refs/heads/master
Commit: f2bc7b395aac0c92db85642c7762eb59047c96d3
Parents: 4d934d7
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Sat May 2 10:01:51 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Sat May 2 10:01:51 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/f2bc7b39/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
----------------------------------------------------------------------
diff --git a/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java b/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
index 34e3df9..8621944 100644
--- a/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
+++ b/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
@@ -249,7 +249,8 @@ public class HdfsDirectory extends Directory implements LastModified,
HdfsSymlin
     for (FSDataInputRandomAccess inputRandomAccess : values) {
       Path path = inputRandomAccess.getPath();
       long length = inputRandomAccess.length();
-      BlockLocation[] blockLocations = _fileSystem.getFileBlockLocations(path, 0, length);
+      FileStatus fileStatus = _fileSystem.getFileStatus(path);
+      BlockLocation[] blockLocations = _fileSystem.getFileBlockLocations(fileStatus, 0L,
length);
       for (BlockLocation blockLocation : blockLocations) {
         if (isLocal(blockLocation)) {
           local++;


Mime
View raw message