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

   ### 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
   
   An error is reported when using the ST-V2 version JDBC source:
   ERROR BaseTaskExecuteCommand:118 - 
Plugin[org.apache.seatunnel.spark.jdbc.source.Jdbc] contains invalid config, 
error: please specify [table] as non-empty
   But the error seems to be a V1 method.
   
   When I add the table parameter in the configuration file source, I can solve 
the error. But I can't find the problem in the source code.
   
   eg:
   table = "test"
   
   
   ### SeaTunnel Version
   
   2.3.0-beta-release
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 2
     job.mode = "BATCH"
   }
   
   source {
      Jdbc {     
           url = "jdbc:mysql://xxxxxxx:3306/xxxx?serverTimezone=GMT%2b8"
           driver = "com.mysql.jdbc.Driver"
           connection_check_timeout_sec = 100
           user = "root"
           password = "xxx"
           query = "select * from test" 
       }
   }
   
   
   transform {
   }
   
   sink {
   Console {
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-spark.sh --master local[4] --deploy-mode client 
--config ./config/test_jdbc.config
   ```
   
   
   ### Error Exception
   
   ```log
   INFO  AbstractPluginDiscovery:107 - Load plugin: 
PluginIdentifier{engineType='spark', pluginType='source', pluginName='Jdbc'} 
from classpath
   2022-11-15 14:35:42 INFO  AbstractPluginDiscovery:107 - Load plugin: 
PluginIdentifier{engineType='spark', pluginType='sink', pluginName='Console'} 
from classpath
   2022-11-15 14:35:42 ERROR BaseTaskExecuteCommand:118 - 
Plugin[org.apache.seatunnel.spark.jdbc.source.Jdbc] contains invalid config, 
error: please specify [table] as non-empty
   ```
   
   
   ### Flink or Spark Version
   
   spark : 2.4.0
   
   ### Java or Scala Version
   
   java 1.8
   scala 2.11.12
   
   ### Screenshots
   
   
![image](https://user-images.githubusercontent.com/41284456/201872213-5de56de7-57b5-4fc4-9347-83c658186b69.png)
   
![image](https://user-images.githubusercontent.com/41284456/201872486-78eb52d9-d85c-44bb-b0f8-82dbde1071a9.png)
   
   
   ### 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