Skip to content

Commit

Permalink
Update version for hadoop dependencies in mapr profile
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenMPhillips committed Jun 5, 2015
1 parent 287f52d commit 1de6aed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
Expand Up @@ -56,6 +56,7 @@

import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import org.apache.hadoop.fs.Path;

public abstract class EasyFormatPlugin<T extends FormatPluginConfig> implements FormatPlugin {
private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(EasyFormatPlugin.class);
Expand Down Expand Up @@ -171,7 +172,7 @@ CloseableRecordBatch getReaderBatch(FragmentContext context, EasySubScan scan) t
readers.add(getRecordReader(context, dfs, work, scan.getColumns()));
if (scan.getSelectionRoot() != null) {
String[] r = scan.getSelectionRoot().split("/");
String[] p = work.getPath().split("/");
String[] p = Path.getPathWithoutSchemeAndAuthority(new Path(work.getPath())).toString().split("/");
if (p.length > r.length) {
String[] q = ArrayUtils.subarray(p, r.length, p.length - 1);
partitionColumns.add(q);
Expand Down
Expand Up @@ -140,7 +140,7 @@ public ScanBatch getBatch(FragmentContext context, ParquetRowGroupScan rowGroupS
}
if (rowGroupScan.getSelectionRoot() != null) {
String[] r = rowGroupScan.getSelectionRoot().split("/");
String[] p = e.getPath().split("/");
String[] p = Path.getPathWithoutSchemeAndAuthority(new Path(e.getPath())).toString().split("/");
if (p.length > r.length) {
String[] q = ArrayUtils.subarray(p, r.length, p.length - 1);
partitionColumns.add(q);
Expand Down
4 changes: 1 addition & 3 deletions exec/jdbc/pom.xml
Expand Up @@ -129,8 +129,7 @@
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>2.4.1-mapr-1408-SNAPSHOT</version>
<artifactId>hadoop-common</artifactId>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
Expand All @@ -141,7 +140,6 @@
<artifactId>servlet-api-2.5</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Expand Up @@ -1137,7 +1137,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.4.1-mapr-1408</version>
<version>2.5.1-mapr-1503</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
Expand Down Expand Up @@ -1229,7 +1229,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.4.1-mapr-1408</version>
<version>2.5.1-mapr-1503</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
Expand Down Expand Up @@ -1320,12 +1320,12 @@
<dependency>
<groupId>com.mapr.fs</groupId>
<artifactId>libprotodefs</artifactId>
<version>4.0.1-mapr</version>
<version>4.1.0-mapr</version>
</dependency>
<dependency>
<groupId>com.mapr.fs</groupId>
<artifactId>mapr-hbase</artifactId>
<version>4.0.1-mapr</version>
<version>4.1.0-mapr</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
Expand Down Expand Up @@ -1356,7 +1356,7 @@
<dependency>
<groupId>com.mapr.hadoop</groupId>
<artifactId>maprfs</artifactId>
<version>4.0.1-mapr</version>
<version>4.1.0-mapr</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
Expand All @@ -1377,7 +1377,7 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.4.1-mapr-1408</version>
<version>2.5.1-mapr-1503</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand All @@ -1393,7 +1393,7 @@
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>0.98.7-mapr-1501-m7-4.0.1</version>
<version>0.98.9-mapr-1503-m7-4.1.0</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
Expand Down Expand Up @@ -1457,7 +1457,7 @@
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
<classifier>tests</classifier>
<version>0.98.7-mapr-1501-m7-4.0.1</version>
<version>0.98.9-mapr-1503-m7-4.1.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down

0 comments on commit 1de6aed

Please sign in to comment.