luckyliush opened a new issue, #6830:
URL: https://github.com/apache/seatunnel/issues/6830

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
     The amount of data is 15 million rows. The speed of extracting hive data 
to mysql can only reach 13,000 records per second, and it takes nearly 30 
minutes to complete the extraction.
    But I set the seatunnel parallelism parameter to 10. After the data 
extraction task started, I used the show processlist command on the MySQL 
client and found that there was only one insert thread.
     Then I tested extracting hive data to the console. The same amount of data 
took less than 1 minute.
   
   ### SeaTunnel Version
   
   2.3.1 and 2.3.5
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 10
     job.mode = "BATCH"
   }
   
   source {
    Hive {
   table_name = ""
   metastore_uri = "${metastore_uri}"
    result_table_name = "Table_test"
   hdfs_site_path = ""
   hive_site_path = ""
       }
   }
   
   
   
   transform {
     sql {
       source_table_name="Table_test"
   query = "select xxx from Table_test"
   result_table_name = "Table_test2"
   }
   }
   
   
   sink {
       Jdbc {
   
   url = "${url}"
   driver = "${driver}"
   user = "${user}"
   password = "${password}"
   database = "${mysql_db}"
   batch_size = 20000
   table = ""
   query = "insert into table_name (xxx) 
values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   I use the seatunnel module on dolphinscheduler to run in cluster mode.
   I also submitted from the command line using: ./bin/seatunnel.sh --config 
./config/test.config
   ```
   
   
   ### Error Exception
   
   ```log
   No exception occurred, just did not meet expectations
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   Zeta
   
   ### Java or Scala Version
   
   1.8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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