Skip to content

Commit

Permalink
[HOTFIX] Upgraded jars to work S3 with presto
Browse files Browse the repository at this point in the history
There is a duplicate jar aws-java-sdk and low version jars avoid connecting to S3 in presto. Those jars are upgraded in this PR and updated doc.

This closes #3110
  • Loading branch information
ravipesala authored and kumarvishal09 committed Jan 29, 2019
1 parent b82cd1b commit 3f63f91
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 32 deletions.
Expand Up @@ -52,6 +52,7 @@
import org.apache.carbondata.core.util.path.CarbonTablePath;

import com.google.gson.Gson;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;

/**
Expand Down Expand Up @@ -655,7 +656,7 @@ public SegmentUpdateDetails[] readLoadMetadata() {
// get the updated status file identifier from the table status.
String tableUpdateStatusIdentifier = getUpdatedStatusIdentifier();

if (null == tableUpdateStatusIdentifier) {
if (StringUtils.isEmpty(tableUpdateStatusIdentifier)) {
return new SegmentUpdateDetails[0];
}

Expand Down
18 changes: 5 additions & 13 deletions docs/presto-guide.md
Expand Up @@ -254,23 +254,15 @@ Now you can use the Presto CLI on the coordinator to query data sources in the c
```
Required properties
fs.s3a.access.key={value}
fs.s3a.secret.key={value}
hive.s3.aws-access-key={value}
hive.s3.aws-secret-key={value}
Optional properties
fs.s3a.endpoint={value}
hive.s3.endpoint={value}
```
* In case you want to query carbonstore on s3 using S3 api put following additional properties inside $PRESTO_HOME$/etc/catalog/carbondata.properties
```
fs.s3.awsAccessKeyId={value}
fs.s3.awsSecretAccessKey={value}
```
* In case You want to query carbonstore on s3 using S3N api put following additional properties inside $PRESTO_HOME$/etc/catalog/carbondata.properties
```
fs.s3n.awsAccessKeyId={value}
fs.s3n.awsSecretAccessKey={value}
```

Please refer <a>https://prestodb.io/docs/current/connector/hive.html</a> for more details on S3 integration.

### Generate CarbonData file

Expand Down
27 changes: 9 additions & 18 deletions integration/presto/pom.xml
Expand Up @@ -32,6 +32,7 @@

<properties>
<presto.version>0.210</presto.version>
<httpcore.version>4.4.9</httpcore.version>
<dev.path>${basedir}/../../dev</dev.path>
<jacoco.append>true</jacoco.append>
</properties>
Expand Down Expand Up @@ -376,7 +377,7 @@
<dependency>
<groupId>com.facebook.presto.hadoop</groupId>
<artifactId>hadoop-apache2</artifactId>
<version>2.7.3-1</version>
<version>2.7.4-3</version>
<exclusions>
<exclusion>
<groupId>org.antlr</groupId>
Expand Down Expand Up @@ -522,23 +523,8 @@
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.7.4</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
Expand All @@ -560,6 +546,11 @@
<artifactId>httpcore</artifactId>
<version>${httpcore.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 3f63f91

Please sign in to comment.