Skip to content

Commit

Permalink
Added Hive Metastore to Carbon Presto
Browse files Browse the repository at this point in the history
  • Loading branch information
ravipesala committed Dec 27, 2018
1 parent 50f7a33 commit b950424
Show file tree
Hide file tree
Showing 26 changed files with 590 additions and 1,389 deletions.
Expand Up @@ -369,6 +369,24 @@ public enum FileType {
LOCAL, HDFS, ALLUXIO, VIEWFS, S3
}

public static String addSchemeIfNotExists(String filePath) {
FileType fileType = getFileType(filePath);
switch (fileType) {
case LOCAL:
if (filePath.startsWith("file:")) {
return filePath;
} else {
return new Path("file://" + filePath).toString();
}
case HDFS:
case ALLUXIO:
case VIEWFS:
case S3:
default:
return filePath;
}
}

/**
* below method will be used to update the file path
* for local type
Expand Down
19 changes: 19 additions & 0 deletions integration/presto/pom.xml
Expand Up @@ -408,6 +408,25 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-hive</artifactId>
<version>${presto.version}</version>
<exclusions>
<exclusion>
<groupId>org.openjdk.jol</groupId>
<artifactId>jol-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit b950424

Please sign in to comment.