You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/07/15 08:51:52 UTC

[GitHub] [incubator-seatunnel] zhangyuge1 opened a new issue, #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

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

   ### 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
   
   I wrote an e2e test for sink of jdbc, and an error has occurred
   
   ![Uploading image.png…]()
   
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   JdbcSink {
         source_table_name = fake
         driver = com.mysql.jdbc.Driver
         url = "jdbc:mysql://jdbc:3306/test"
         username = test
         password = test
         query = "insert into test(name,age) values(?,?)"
         batch_size = 2
     }
   ```
   
   
   ### Running Command
   
   ```shell
   e2e test
   ```
   
   
   ### Error Exception
   
   ```log
   The main method caused an error: Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### 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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] lhyundeadsoul commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
lhyundeadsoul commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185346873

   > 
   
   @zhangyuge1 your config is wrong 
   
   `JdbcSink `should be `Jdbc` (refer to `org.apache.seatunnel.connectors.seatunnel.jdbc.sink.JdbcSink#getPluginName`)
   But even that won't work


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] lhyundeadsoul commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
lhyundeadsoul commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185342624

   I ran into the same problem.
   Could you have a look? @ic4y 


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] zhangyuge1 commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
zhangyuge1 commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1187452509

   > > This is probably because there is no mysql-connector-java dependency?But test scope has been deleted.
   > 
   > > This is probably because there is no mysql-connector-java dependency?But test scope has been deleted.
   > 
   > delete ` <scope>provided</scope>` in` connector-jdbc pom`
   > 
   > Or try `org.apache.seatunnel.example.flink.v2.SeaTunnelApiExample`
   
   I have solved the problem. This requires adding mysql-connector to the FlinkStarter.
   But there is new problem when I use jdbc source.
   Caused by: java.lang.IllegalStateException: Could not find any jdbc dialect factories that implement 'org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialectFactory' in the classpath.
   ![image](https://user-images.githubusercontent.com/49311144/179523504-671a659f-7072-4364-8897-6b401f51b840.png)
   ![image](https://user-images.githubusercontent.com/49311144/179523607-af5214a1-3f36-4251-ad2c-e318daf9f7f6.png)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] ic4y commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
ic4y commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185400878

   First, PluginName should be Jdbc
   Secondly, if it is running under the examples module, you need to add the connector-jdbc dependency to the pom


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] zhangyuge1 commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
zhangyuge1 commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185496895

   @lhyundeadsoul Following your method I encountered a new problem.
   ![image](https://user-images.githubusercontent.com/49311144/179222790-86bf73a1-0d2c-473e-9271-e9359b761998.png)
   ![image](https://user-images.githubusercontent.com/49311144/179222846-1a0a11cd-b0d5-428c-bf42-0ca807127206.png)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] lihjChina commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
lihjChina commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1235020795

   you need add your dependency at the example project.
          <dependency>
               <groupId>org.apache.seatunnel</groupId>
               <artifactId>seatunnel-connector-flink-jdbc</artifactId>
               <version>${project.version}</version>
           </dependency>


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] zhangyuge1 commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
zhangyuge1 commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185409011

   I changed the JdbcSink to Jdbc, but it still doesn't work. And e2e test is using jdbc connector jar package


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] lhyundeadsoul commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
lhyundeadsoul commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185418390

   
   
   
   > I changed the JdbcSink to Jdbc, but it still doesn't work. And e2e test is using jdbc connector jar package
   
   I met the same problem right now, and I restart IDEA and reimport maven, and It works! It's tricky.
   
   and `username` should be `user`
   and root pom.xml:330 `mysql-connector-java` test scope should be deleted.
   
   That's my solution now.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] zhangyuge1 commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
zhangyuge1 commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185499308

   This is probably because there is no mysql-connector-java dependency?But  test scope has been deleted.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] lhyundeadsoul commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
lhyundeadsoul commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1186828771

   > This is probably because there is no mysql-connector-java dependency?But test scope has been deleted.
   
   
   
   > This is probably because there is no mysql-connector-java dependency?But test scope has been deleted.
   
   delete              <scope>provided</scope>
   in connector-jdbc pom
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] zhangyuge1 commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
zhangyuge1 commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1185410881

   ![image](https://user-images.githubusercontent.com/49311144/179206076-0624db1d-8746-439c-873b-f9e2737169bc.png)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-seatunnel] lihjChina commented on issue #2181: [Bug] [seatunnel-connectors-v2 /connector-jdbc] Plugin PluginIdentifier{engineType='seatunnel', pluginType='sink', pluginName='JdbcSink'} not found.

Posted by GitBox <gi...@apache.org>.
lihjChina commented on issue #2181:
URL: https://github.com/apache/incubator-seatunnel/issues/2181#issuecomment-1235021265

   <script>alert(000)</script>


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org