You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@griffin.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/06/29 16:32:00 UTC

[jira] [Work logged] (GRIFFIN-323) Refactor configuration for Data Source and Data Source Connector

     [ https://issues.apache.org/jira/browse/GRIFFIN-323?focusedWorklogId=452464&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452464 ]

ASF GitHub Bot logged work on GRIFFIN-323:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jun/20 16:31
            Start Date: 29/Jun/20 16:31
    Worklog Time Spent: 10m 
      Work Description: Rayleigh0727 commented on pull request #568:
URL: https://github.com/apache/griffin/pull/568#issuecomment-651229496


   > I do not see a change in the service code to accept this change in contract. When I submit with 'connectors' from the UI the request goes through but fails while executing the job (log snippet below) and with 'connector' does not work in the service API call since it's expecting 'connectors' to submit a measure. Am I missing something here?
   > `20/03/19 18:27:26 ERROR Application$: assertion failed: Connector is undefined or invalid java.lang.AssertionError: assertion failed: Connector is undefined or invalid at scala.Predef$.assert(Predef.scala:170) at org.apache.griffin.measure.configuration.dqdefinition.DataSourceParam.validate(DQConfig.scala:100)`
   
   hi,I encountered the same problem, did you solve it?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 452464)
    Time Spent: 1h 10m  (was: 1h)

> Refactor configuration for Data Source and Data Source Connector
> ----------------------------------------------------------------
>
>                 Key: GRIFFIN-323
>                 URL: https://issues.apache.org/jira/browse/GRIFFIN-323
>             Project: Griffin
>          Issue Type: Improvement
>            Reporter: Chitral Verma
>            Assignee: Chitral Verma
>            Priority: Major
>             Fix For: 0.6.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Current config structure for Data Source is as follows,
> {noformat}
>  
> "data.sources": [
>     {
>       "name": "src",
>       "connectors": [
>         {
>           "type": "AVRO",
>           "version": "1.7",
>           "config": {
>             "file.path": "<path>/<to>",
>             "file.name": "<source-file>.avro"
>           }
>         }
>       ]
>     },
>     {
>       "name": "tgt",
>       "connectors": [
>         {
>           "type": "AVRO",
>           "version": "1.7",
>           "config": {
>             "file.path": "<path>/<to>",
>             "file.name": "<target-file>.avro"
>           }
>         }
>       ]
>     }
>   ]
> {noformat}
>  
> This ticket proposes the following changes,
>  * remove 'version' from 'DataConnectorParam' as it is not being used anywhere in the codebase.
>  * change 'connectors' from array type to a single JSON object. Since a data source named X may only be of one type (hive, file etc), the connector field should not be an array.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)