You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/11 08:00:35 UTC
[GitHub] [pulsar] RobertIndie commented on pull request #15064: [feat][connector] Support 4paradigm/OpenMLDB jdbc sink connector
RobertIndie commented on PR #15064:
URL: https://github.com/apache/pulsar/pull/15064#issuecomment-1094675039
While testing, I found this exception when starting the connector. Could you please take a look? @vagetablechicken
```
2022-04-11T15:58:55,371+0800 [function-timer-thread-17-1] ERROR org.apache.pulsar.functions.runtime.RuntimeSpawner - public/default/jdbc-openmldb-sink Function Container is dead with following exception. Restarting.
java.lang.UnsatisfiedLinkError: 'long com._4paradigm.openmldb.sql_router_sdkJNI.new_SQLRouterOptions()'
at com._4paradigm.openmldb.sql_router_sdkJNI.new_SQLRouterOptions(Native Method) ~[?:?]
at com._4paradigm.openmldb.SQLRouterOptions.<init>(SQLRouterOptions.java:56) ~[?:?]
at com._4paradigm.openmldb.sdk.impl.SqlClusterExecutor.<init>(SqlClusterExecutor.java:66) ~[?:?]
at com._4paradigm.openmldb.sdk.impl.SqlClusterExecutor.<init>(SqlClusterExecutor.java:90) ~[?:?]
at com._4paradigm.openmldb.jdbc.SQLDriver.connect(SQLDriver.java:54) ~[?:?]
at java.sql.DriverManager.getConnection(DriverManager.java:677) ~[java.sql:?]
at java.sql.DriverManager.getConnection(DriverManager.java:189) ~[java.sql:?]
at org.apache.pulsar.io.jdbc.JdbcAbstractSink.open(JdbcAbstractSink.java:93) ~[?:?]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.setupOutput(JavaInstanceRunnable.java:857) ~[classes/:?]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.setup(JavaInstanceRunnable.java:223) ~[classes/:?]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:258) ~[classes/:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
```
<details>
<summary>Full exception context</summary>
<code><pre>
2022-04-11T15:58:13,069+0800 [main] INFO org.apache.pulsar.functions.utils.io.ConnectorUtils - Searching for connectors in /Users/aaronrobert/codebase/pulsar/connectors
2022-04-11T15:58:13,097+0800 [main] WARN org.apache.pulsar.functions.utils.io.ConnectorUtils - Connectors archive directory not found
2022-04-11T15:58:13,128+0800 [main] INFO org.apache.pulsar.common.nar.NarUnpacker - Created directory /var/folders/sx/ws7wtlmn3t1bhrdlsfbmlv6r0000gn/T/pulsar_localrunner_nars_3526555380500249181/pulsar-nar/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar-unpacked
2022-04-11T15:58:15,559+0800 [main] INFO org.apache.pulsar.common.nar.NarUnpacker - Extracting /Users/aaronrobert/codebase/pulsar/pulsar-io/jdbc/openmldb/target/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar to /var/folders/sx/ws7wtlmn3t1bhrdlsfbmlv6r0000gn/T/pulsar_localrunner_nars_3526555380500249181/pulsar-nar/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar-unpacked/ABc4BPN6ZjOQMHeC_JQ1xg
2022-04-11T15:58:19,304+0800 [main] WARN io.netty.resolver.dns.DnsServerAddressStreamProviders - Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
2022-04-11T15:58:24,580+0800 [main] INFO org.apache.pulsar.functions.runtime.RuntimeSpawner - public/default/jdbc-openmldb-sink-0 RuntimeSpawner starting function
2022-04-11T15:58:24,583+0800 [main] INFO org.apache.pulsar.common.nar.FileUtils - Jar file /Users/aaronrobert/codebase/pulsar/pulsar-io/jdbc/openmldb/target/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar contains META-INF/bundled-dependencies, it may be a NAR file
2022-04-11T15:58:24,583+0800 [main] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - Trying Loading file as NAR file: /Users/aaronrobert/codebase/pulsar/pulsar-io/jdbc/openmldb/target/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar
2022-04-11T15:58:25,331+0800 [main] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - Initialize function class loader for function jdbc-openmldb-sink at function cache manager, functionClassLoader: org.apache.pulsar.common.nar.NarClassLoader[/var/folders/sx/ws7wtlmn3t1bhrdlsfbmlv6r0000gn/T/pulsar_localrunner_nars_3526555380500249181/pulsar-nar/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar-unpacked/ABc4BPN6ZjOQMHeC_JQ1xg]
2022-04-11T15:58:25,361+0800 [main] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - ThreadContainer starting function with instanceId 0 functionId 9c836a56-83a4-416f-b9b7-bbabedad787f namespace default
2022-04-11T15:58:55,371+0800 [function-timer-thread-17-1] ERROR org.apache.pulsar.functions.runtime.RuntimeSpawner - public/default/jdbc-openmldb-sink Function Container is dead with following exception. Restarting.
java.lang.UnsatisfiedLinkError: 'long com._4paradigm.openmldb.sql_router_sdkJNI.new_SQLRouterOptions()'
at com._4paradigm.openmldb.sql_router_sdkJNI.new_SQLRouterOptions(Native Method) ~[?:?]
at com._4paradigm.openmldb.SQLRouterOptions.<init>(SQLRouterOptions.java:56) ~[?:?]
at com._4paradigm.openmldb.sdk.impl.SqlClusterExecutor.<init>(SqlClusterExecutor.java:66) ~[?:?]
at com._4paradigm.openmldb.sdk.impl.SqlClusterExecutor.<init>(SqlClusterExecutor.java:90) ~[?:?]
at com._4paradigm.openmldb.jdbc.SQLDriver.connect(SQLDriver.java:54) ~[?:?]
at java.sql.DriverManager.getConnection(DriverManager.java:677) ~[java.sql:?]
at java.sql.DriverManager.getConnection(DriverManager.java:189) ~[java.sql:?]
at org.apache.pulsar.io.jdbc.JdbcAbstractSink.open(JdbcAbstractSink.java:93) ~[?:?]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.setupOutput(JavaInstanceRunnable.java:857) ~[classes/:?]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.setup(JavaInstanceRunnable.java:223) ~[classes/:?]
at org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:258) ~[classes/:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
2022-04-11T15:58:55,395+0800 [function-timer-thread-17-1] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - Unloading JAR files for instanceId 0 functionId 9c836a56-83a4-416f-b9b7-bbabedad787f namespace default
2022-04-11T15:58:55,397+0800 [function-timer-thread-17-1] INFO org.apache.pulsar.common.nar.FileUtils - Jar file /Users/aaronrobert/codebase/pulsar/pulsar-io/jdbc/openmldb/target/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar contains META-INF/bundled-dependencies, it may be a NAR file
2022-04-11T15:58:55,397+0800 [function-timer-thread-17-1] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - Trying Loading file as NAR file: /Users/aaronrobert/codebase/pulsar/pulsar-io/jdbc/openmldb/target/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar
2022-04-11T15:58:55,920+0800 [function-timer-thread-17-1] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - Initialize function class loader for function jdbc-openmldb-sink at function cache manager, functionClassLoader: org.apache.pulsar.common.nar.NarClassLoader[/var/folders/sx/ws7wtlmn3t1bhrdlsfbmlv6r0000gn/T/pulsar_localrunner_nars_3526555380500249181/pulsar-nar/pulsar-io-jdbc-openmldb-2.11.0-SNAPSHOT.nar-unpacked/ABc4BPN6ZjOQMHeC_JQ1xg]
^C2022-04-11T15:58:59,284+0800 [Thread-0] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - Unloading JAR files for instanceId 0 functionId 9c836a56-83a4-416f-b9b7-bbabedad787f namespace default
2022-04-11T15:58:59,285+0800 [Thread-0] INFO org.apache.pulsar.client.impl.PulsarClientImpl - Client closing. URL: pulsar://localhost:6650
➜ openmldb git:(openmldb-connector) ✗ 2022-04-11T15:59:00,930+0800 [function-timer-thread-17-1] INFO org.apache.pulsar.functions.runtime.thread.ThreadRuntime - ThreadContainer starting function with instanceId 0 functionId 9c836a56-83a4-416f-b9b7-bbabedad787f namespace default
</pre></code>
</details>
--
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@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org