presto-spring-boot-autoconfigure

AutoConfigure for Presto

License

License

Categories

Categories

Spring Boot Container Microservices Ant Build Tools Data Auto Application Layer Libs Code Generators config Configuration
GroupId

GroupId

com.polarquant.data
ArtifactId

ArtifactId

presto-spring-boot-autoconfigure
Last Version

Last Version

1.0.1.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

presto-spring-boot-autoconfigure
AutoConfigure for Presto
Project URL

Project URL

https://github.com/ifengkou/spring-boot-starter-data-presto
Project Organization

Project Organization

PolarQuant, Inc.
Source Code Management

Source Code Management

https://github.com/ifengkou/spring-boot-starter-data-presto

Download presto-spring-boot-autoconfigure

How to add to project

<!-- https://jarcasting.com/artifacts/com.polarquant.data/presto-spring-boot-autoconfigure/ -->
<dependency>
    <groupId>com.polarquant.data</groupId>
    <artifactId>presto-spring-boot-autoconfigure</artifactId>
    <version>1.0.1.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.polarquant.data/presto-spring-boot-autoconfigure/
implementation 'com.polarquant.data:presto-spring-boot-autoconfigure:1.0.1.RELEASE'
// https://jarcasting.com/artifacts/com.polarquant.data/presto-spring-boot-autoconfigure/
implementation ("com.polarquant.data:presto-spring-boot-autoconfigure:1.0.1.RELEASE")
'com.polarquant.data:presto-spring-boot-autoconfigure:jar:1.0.1.RELEASE'
<dependency org="com.polarquant.data" name="presto-spring-boot-autoconfigure" rev="1.0.1.RELEASE">
  <artifact name="presto-spring-boot-autoconfigure" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.polarquant.data', module='presto-spring-boot-autoconfigure', version='1.0.1.RELEASE')
)
libraryDependencies += "com.polarquant.data" % "presto-spring-boot-autoconfigure" % "1.0.1.RELEASE"
[com.polarquant.data/presto-spring-boot-autoconfigure "1.0.1.RELEASE"]

Dependencies

compile (5)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter Optional jar 2.3.5.RELEASE
org.springframework.boot : spring-boot-starter-jdbc Optional jar 2.3.5.RELEASE
io.prestosql : presto-jdbc Optional jar 322
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.3.5.RELEASE
com.alibaba : druid Optional jar 1.1.24

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.12

Project Modules

There are no modules declared in this project.

spring-boot-starter-data-presto

presto-spring-boot-starter

  • druid connection pool
  • ssl enable
  • code completion in IDE
  • more configuration

Use

  1. add dependency
<dependency>
    <groupId>com.polarquant.data</groupId>
    <artifactId>presto-spring-boot-starter</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>
  1. configuration

application.properties

spring.data.presto.jdbc.driver=com.facebook.presto.jdbc.PrestoDriver
spring.data.presto.jdbc.url= jdbc:presto://ark2:4285/hive/default
spring.data.presto.jdbc.username=isuhadoop
spring.data.presto.jdbc.password=abc
spring.data.presto.jdbc.ssl.enabled=true
spring.data.presto.jdbc.ssl.key-store-path=/usr/local/conf/presto.jks
spring.data.presto.jdbc.ssl.key-store-password=abc
spring.data.presto.pool.initial-size=1
spring.data.presto.pool.max-wait-millis=60000
  1. use in spring boot

add spring-boot-starter-jdbc dependency to pom.xml

@Autowired
@Qualifier("prestoJdbcTemplate")
JdbcTemplate prestoJdbcTemplate;

//invoke
List<Map<String, Object>> results = prestoJdbcTemplate.queryForList(sql);

Example

see ./presto-started-example

Versions

Version
1.0.1.RELEASE
1.0.0.RELEASE