nashlibby opened a new issue, #3295:
URL: https://github.com/apache/incubator-seatunnel/issues/3295

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   import data from hive to clickhouse
   
   ### SeaTunnel Version
   
   2.1.3
   
   ### SeaTunnel Config
   
   ```conf
   env {
     # You can set spark configuration here
     # see available properties defined by spark: 
https://spark.apache.org/docs/latest/configuration.html#available-properties
     spark.app.name = "dmp"
     spark.executor.instances = 5
     spark.executor.cores = 2
     spark.executor.memory = "4g"
     spark.sql.catalogImplementation = "hive"
   }
   
   source {
     Hive {
       pre_sql = "select * from dmp_release.t1"
       result_table_name = "t1"
     }
   }
   
   transform {
     # split data by specific delimiter
   
     # you can also use other filter plugins, such as sql
     # sql {
     #   sql = "select * from accesslog where request_time > 1000"
     # }
   
     # If you would like to get more information about how to configure 
seatunnel and see full list of filter plugins,
     # please go to 
https://seatunnel.apache.org/docs/spark/configuration/transform-plugins/Sql
   }
   
   sink {
      clickhouse {
           host = "localhost:8123"
           database = "dmp_release"
           table = "t1"
           fields = ["id", "name"]
           username = "default"
           password = ""
      }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-spark.sh --config config/spark.batch.conf -e client -m 
'local[*]'
   ```
   
   
   ### Error Exception
   
   ```log
   INFO AbstractPluginDiscovery: Load plugin: 
PluginIdentifier{engineType='spark', pluginType='source', pluginName='Hive'} 
from classpath
   Exception in thread "main" java.util.ServiceConfigurationError: 
org.apache.seatunnel.spark.BaseSparkSink: Provider 
org.apache.seatunnel.spark.hive.sink.Hive could not be instantiated
   ```
   
   
   ### Flink or Spark Version
   
   spark-2.4.8
   
   ### Java or Scala Version
   
   jdk 1.8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to