I have a docker image as located here
https://github.com/Landoop/fast-data-dev which has all the good stuff that I am using for development. I've tried to add a JDBC connector to push into a Kafka topic however am getting this error. I've made a consumer in Java which is working fine however I would like to use KafkaConnect
Invalid value java.sql.SQLException: No suitable driver found for jdbc:sqlserver://servername for configuration Couldn't open connection to jdbc:sqlserver://servername
name=JdbcSourceConnector
connector.class=io.confluent.connect.jdbc.JdbcSourceConnector
connection.user=user
connection.password=password
tasks.max=1
connection.url=jdbc:sqlserver://servername
topic.prefix=test
table.whitelist=dbo.IB_WEBLOG_DUMMY_small
query=SELECT * FROM IB_WEBLOG_DUMMY_small
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter=org.apache.kafka.connect.json.JsonConverter
poll.interval.ms=5000
table.poll.interval.ms=120000
mode=bulk
What should I be looking into to fix this problem?
Your JDBC driver’s JAR file is not in Kafka Connect’s classpath. Put it there and you will be good to go:
One option is to install the JDBC driver jar alongside the connector. The packaged connector is installed in the share/java/kafka-connect-jdbc directory, relative to the installation directory. If you have installed from Debian or RPM packages, the connector will be installed in /usr/share/java/kafka-connect-jdbc. If you installed from zip or tar files, the connector will be installed in the path given above under the directory where you unzipped the Confluent Platform archive.
Alternatively, you can set the CLASSPATH variable before running connect-standalone or connect-distributed. For example:
$ CLASSPATH=/usr/local/firebird/* ./bin/connect-distributed ./config/connect-distributed.properties
Alternatively, put all the SQL Server JDBC JAR files in the libs dir under the root folder of Apache Kafka. But that would pollute the classpath and is better to be avoided in production.
Related
I want to use the airflow 2.01 docker-compose file from apaches github.
here is the link docker-compose.yaml and here is the link to the dockerfiledockerfile
I want to use a Dag which should grab data out of my SQL Server database. Actually I get the following error:
no module named pymssql
After I manually installed it, I get an error like no module named pyodbc.
When I want to install this manually I get an gcc error, that it is not possible to install.
Does anyone have any clue about this?
Is there any docker-compose file which is able to handle SQL Server connection for Airflow 2?
Thanks in advance
I have tried to connect to Firebird database file using IBExpert and Flamerobin always got this error "Unable to complete network request to localhost"
Is there any changes in Firebird 3.0 with embedded version, because I can connect to version 2.5.5 without any problem?
I solved the problem and now it works great.
The problem happens if Firebird plugins folder is missing and need to put it in the root with exe file like this:
exe file
db file
fbclient.dll
plugins folder
engine12.dll ( only this file needed from plugins folder )
To let Flamerobin work you need to put fbclient.dll and plugins folder in Flamerobin folder!
I want to connect to Microsoft SQL server 2012 by using SOAP-UI. I have downloaded JTDS-JDBC jar (jtds-1.3.1 Executable Jar File) and store this SoapUI-PRo-5.0.0\bin\ext folder.
Now while writing groovy code by Data Source Step, which Driver should i select.
How can I confirm that this jar file is loaded successfully when soapui is start up.
Try net.sourceforge.jtds.jdbc.Driver() Did you see the documentation?
You should see a message in the soapui log, like:
INFO:Adding [C:\Program Files\SmartBear\soapUI-...\bin\ext\....jar] to extensions classpath
Mmm. I put the postgre jar on the lib folder of hsql database manager but then I tried to use the database manager an error occurs "java.lang.ClassNotFoundException:org.postgresql.Driver".
It is not enough to put the jar in the lib folder. You need to include the jar in the command line that you use to execute DatabaseManager. An example for Windows below:
java -cp /path/to/hsqldb.jar;/path/to/postgres/pg.jdbc3.jar org.hsqldb.util.DatabaseManagerSwing
I am trying to install the jasper WAR file manually for the community edition on a Tomcat server on Unix OS. I am following the steps from the documentation skipping the sample databases.
js-ant create-js-db
js-ant init-js-db-ce
js-ant import-minimal-ce
js-ant deploy-webapp-ce
I am able to successfully build the first two steps however step 3 fails. Here is the complete log https://gist.github.com/shruti-palshikar/d3f75f1157028e963a3c
Are there any configurations that are needed prior to this build that I am missing? Any help is appreciated!
I have done WAR installation on windows machine , see if this could help you:-
Download the following files:-
The WAR file distribution comes in file named jasperreports-server-cp-4.5.0-bin.zip
in the compressed ZIP format. Download the WAR distribution file from
http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperServer%204.5.0/ .
Download the JDBC driver, mysql-connector-java-5.1.18-bin.jar
http://dev.mysql.com/downloads/connector/j/
After downloading WAR file download Apache Tomcat exe file and install on your system.
There are two way to install JasperReport server by manually or auto, but we are installing it manually.
Before start installing you need to set JAVA_HOME environment variable on your system.
JAVA_HOME="path of jdk folder"
e.g: JAVA_HOME=C:\Program Files\jdk1.7.0_01
To install the WAR file distribution using the manual buildomatic steps:-
1- If you’re using MySQL, place a MySQL JDBC driver in
<js-install>/buildomatic/conf_source/db/mysql/jdbc.
2- Start database (MySQL) server.
3- Stop your Application server(Apache tomcat).
4- Copy mysql_master.properties file from
<js-install>/buildomatic/sample_conf
and paste it to
<js-install>/buildomatic and rename it to default_master.properties.
5- Edit default_master.properties file and change the setting of database server and application server according to your system.
6- Open a Command Prompt as Administrator on Windows and go to buildomatic directory of JasperReport server and run these commands:-
a:- js-ant create-js-db (Creates the JasperReports Server repository database)
b:- js-ant create-sugarcrm-db (Optional) Creates the sample databases
js-ant create-foodmart-db
c:- js-ant load-sugarcrm-db (Optional) Loads sample data into the sample databases
js-ant load-foodmart-db
js-ant update-foodmart-db
d:- js-ant init-js-db-ce
js-ant import-minimal-ce
(Initializes the jasperserver database, loads core application data. Running js-ant import-minimal-ce is mandatory. The server cannot function without this data)
e:- js-ant import-sample-data-ce (Optional) Loads the demos that use the sample data
f:- js-ant deploy-webapp-ce Configures and deploys the WAR file to Tomcat
Start the application serve.
You can see the post Here