Add des module in datalake-handler 82/111782/5
authorKai <lukai@chinamobile.com>
Thu, 27 Aug 2020 07:54:11 +0000 (15:54 +0800)
committerKai <lukai@chinamobile.com>
Thu, 27 Aug 2020 10:53:16 +0000 (18:53 +0800)
Issue-ID: DCAEGEN2-2230
Signed-off-by: Kai Lu <lukai@chinamobile.com>
Change-Id: I13a4907462edc68ec26523bf856083b21b32dee7

components/datalake-handler/des/pom.xml
components/datalake-handler/des/src/main/java/org/onap/datalake/des/controller/DataExposureController.java
components/datalake-handler/feeder/pom.xml
components/datalake-handler/pom.xml

index c0346ce..9554052 100644 (file)
        <parent>
                <groupId>org.onap.dcaegen2.services.components</groupId>
                <artifactId>datalake-handler</artifactId>
-               <version>1.2.0-SNAPSHOT</version>
+               <version>1.1.0-SNAPSHOT</version>
        </parent>
 
        <groupId>org.onap.dcaegen2.services.components.datalake-handler</groupId>
        <artifactId>des</artifactId>
        <packaging>jar</packaging>
-       <name>DataLake Exposure Service</name>
+       <name>DataLake Extraction Service</name>
 
        <properties>
                <swagger.version>2.9.2</swagger.version>
                <dependency>
                        <groupId>org.onap.dcaegen2.services.components.datalake-handler</groupId>
                        <artifactId>feeder</artifactId>
+                       <version>${project.version}</version>
                </dependency>
 
        </dependencies>
index e71ba6b..925afb8 100644 (file)
@@ -102,7 +102,7 @@ public class DataExposureController {
                String query = sub.replace(sqlTemplate);
                log.info("Going to start Datalake Data Exposure Service ... query=" + query);
                // https://prestodb.io/docs/current/installation/jdbc.html
-               String url = String.format("jdbc:presto://dl-presto:8080/%s/%s", dataExposure.getDb().getPrestoCatalog(),
+               String url = String.format("jdbc:presto://dl-presto:8080/%s/%s", dataExposure.getDb().getHost(),
                                dataExposure.getDb().getDatabase());
                Properties properties = new Properties();
                properties.setProperty("user", "test");
index 468ac67..d310312 100644 (file)
 
        <build>
                <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <classifier>exec</classifier>
+                </configuration>
+            </plugin>
                        <plugin>
                                <groupId>com.spotify</groupId>
                                <artifactId>dockerfile-maven-plugin</artifactId>
index bf70982..17cd124 100644 (file)
@@ -21,6 +21,7 @@
                <module>feeder</module>
                <module>admin</module>
                <module>collector</module>
+               <module>des</module>
        </modules>
 
        <properties>
                                </configuration>
                        </plugin>
 
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.8.0</version>
+            </plugin>
+
                </plugins>
        </build>