Skip to content

victornguen/ETLine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETLine

Проект, созданный в рамках Data Hack 2022, case #3.

Структура JSON конфигов

{
  // Config
  "tasks": [
    {
      "saveMode": "savemode", // Overwrite or Append
      "dbSource": {
        "connectionId": "string",
        "tables": [
          {
            "name": "string",
            "hwmColumnName": "string",
            "targetName": "string",
            "readOptions": {
              "key": "value"
            },
            "batchLoad": {
              "byColumn": "string",
              "partitionBy": "string", //date
              "interval": "string" // 1 month, 1 year 
            }
          },
        ]
      },
      //or
      "fileSource": {
        "connectionId": "string",
        "files": [
          {
            "path": "string",
            "hwmColumnName": "string",
            "targetName": "string",
            "readOptions": {
              "key": "value"
            },
            "batchLoad": {
              "byColumn": "string",
              "partitionBy": "string", //date
              "interval": "string" // 1 month, 1 year 
            }
          }
        ],
      },
      "target": {
        "connectionId": "string",
        "format": "string",
        "path": "string",
        "writeOptions": {
          "key": "value"
        }
      }
    }
  ],
  "sparkSessionConf": {
    "key": "value"
  }
}

Информация о системах источников хранится в отдельном файле

{
  "dbConnections": [
    {
      "connectionId": "string",
      "driver": "string",
      // postgresql or other
      "host": "string",
      // localhost:5432
      "dbName": "string",
      // name of database 
      "user": "string",
      "password": "string"
    }
  ],
  "hdfsConnections": [
    {
      "connectionId": "string",
      "url": "string"
    }
  ]
}

About

ETL Engine based on Apache Spark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages