Skip to content

Commit

Permalink
extract common code for spark3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Dec 21, 2021
1 parent e24879e commit 858d134
Show file tree
Hide file tree
Showing 22 changed files with 35 additions and 1,885 deletions.
2 changes: 1 addition & 1 deletion nebula-exchange_spark_3.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
<spark.version>3.0.0</spark.version>
<version.scala.binary>2.12</version.scala.binary>
<scala.version>2.12.13</scala.version>
<scala.version>2.12.10</scala.version>
<spark-csv.version>1.5.0</spark-csv.version>
<scalatest.version>3.2.0</scalatest.version>
<scala-logging.version>3.9.2</scala-logging.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

package com.vesoft.nebula.exchange

import com.vesoft.nebula.exchange.config.{SourceCategory}
import com.vesoft.nebula.exchange.utils.HDFSUtils
import com.vesoft.nebula.exchange.config.SchemaConfigEntry
import com.vesoft.nebula.common.config.SourceCategory
import com.vesoft.nebula.common.config.SchemaConfigEntry
import com.vesoft.nebula.common.utils.HDFSUtils
import org.apache.spark.TaskContext

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ package com.vesoft.nebula.exchange

import org.apache.spark.sql.{DataFrame, SparkSession}
import java.io.File
import com.vesoft.nebula.exchange.config.{

import com.vesoft.nebula.common.Argument
import com.vesoft.nebula.common.config.{
ClickHouseConfigEntry,
Configs,
DataSourceConfigEntry,
Expand All @@ -23,7 +25,7 @@ import com.vesoft.nebula.exchange.config.{
SinkCategory,
SourceCategory
}
import com.vesoft.nebula.exchange.processor.{EdgeProcessor, VerticesProcessor}

import com.vesoft.nebula.exchange.reader.{
CSVReader,
ClickhouseReader,
Expand All @@ -39,16 +41,12 @@ import com.vesoft.nebula.exchange.reader.{
ParquetReader,
PulsarReader
}
import com.vesoft.nebula.exchange.processor.EdgeProcessor
import com.vesoft.nebula.exchange.processor.ReloadProcessor
import com.vesoft.nebula.exchange.processor.VerticesProcessor
import org.apache.log4j.Logger
import org.apache.spark.SparkConf

final case class Argument(config: String = "application.conf",
hive: Boolean = false,
directly: Boolean = false,
dry: Boolean = false,
reload: String = "")

final case class TooManyErrorsException(private val message: String) extends Exception(message)

/**
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 858d134

Please sign in to comment.