Bhavya Soni
06/19/2023, 9:23 AMapache-flink==1.14.4
apache-flink-libraries==1.14.4
pyflink==1.0
I am facing an error regarding from pyflink.connector.gcp.pubsub import PubSubSource
ModuleNotFoundError: No module named 'pyflink.connector'.
I want to use the pubsub connector to stream the data to SIEM servers. I came across this documentation https://nightlies.apache.org/flink/flink-docs-release-1.17/api/python/reference/pyflink.datastream/connectors.html and wanted to know that is there any available implementation for pubsub connector in flink for python?Ari Huttunen
06/19/2023, 9:56 AMBhavya Soni
06/19/2023, 9:58 AMapache-flink==1.17.0
apache-flink-libraries==1.17.0
That didn't help.Martijn Visser
06/19/2023, 11:25 AMBhavya Soni
06/19/2023, 12:55 PMapache-flink in my requirements.txt and I am able to import pyflink.datastream but not the pyflink.connector.Martijn Visser
06/19/2023, 1:33 PMBhavya Soni
06/20/2023, 5:47 AMDian Fu
06/20/2023, 8:37 AMDian Fu
06/20/2023, 8:38 AMBhavya Soni
06/20/2023, 8:48 AMDian Fu
06/20/2023, 9:08 AMBhavya Soni
06/20/2023, 12:13 PMflink:1.17.1 and I assume that all the necessary jar files will be available inside the container environment to build the connector/wrapper.Bhavya Soni
06/20/2023, 12:18 PMTypeError: Could not found the Java class 'org.apache.flink.streaming.connectors.gcp.pubsub.PubSubSource.newBuilder'. The Java dependencies could be specified via command line argument '--jarfile' or the config option 'pipeline.jars' in the same environment so I tried to add the jar files manually under /dist-packages/pyflink/lib directory. That also didn't solve the error.Martijn Visser
06/20/2023, 12:23 PMBhavya Soni
06/20/2023, 1:21 PM/dist-packages/pyflink/lib directory. That also didn't solve the error.Bhavya Soni
06/20/2023, 1:24 PMMartijn Visser
06/20/2023, 2:14 PMlib folderMartijn Visser
06/20/2023, 2:14 PMBhavya Soni
06/20/2023, 3:40 PMMartijn Visser
06/20/2023, 4:24 PMBhavya Soni
06/21/2023, 5:17 AMBhavya Soni
06/21/2023, 9:52 AMflink-connector-gcp-pubsub-3.0.1-1.17.jar using https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/dev/python/dependency_management/
but it also didn't help.Dian Fu
06/21/2023, 9:53 AMBhavya Soni
06/21/2023, 10:02 AMBhavya Soni
06/21/2023, 11:45 AM