kafka-connect error: ORA-01882 timezone region not found for configuration docker - apache-kafka-connect

I'm running confluent platform on docker and playing around. Followed the steps to install ojdbc8.jar driver and environment seems to be up and running without any errors.
Getting below error when I configure the connector from the control center.
Driver seems to be the correct because I get "no suitable driver found" error when I tried ojdbc10.jar
I tried passing below configs together & separate ..nothing helps.
CONNECT_OPTS: "-Doracle.jdbc.timezoneAsRegion=false"
CONNECT_USER_TIMEZONE: "+01:00"
wondering whats the proper method to set this configuration ?

To add generic JVM opts, you'd set KAFKA_OPTS.
Neither CONNECT_OPTS nor CONNECT_USER_TIMEZONE are loaded by the container's processes.
So, try
KAFKA_OPTS: "-Doracle.jdbc.timezoneAsRegion=false -Duser.timezone=Europe/London"

Related

Server agent not opening in JMeter

I installed serverAgent 2.2.3
When I run it in cmd I get this error.
enter image description here
I tried starting the startAgent. bat. It automatically closes.
Thanks for looking.
That's very weird because the error states that sl4j library cannot be found in CLASSPATH and ServerAgent doesn't use this library at all.
Try downloading it from Github and unpacking it somewhere else. Also if you have CLASSPATH environment variable set - try clearing/unsetting it.
set CLASSPATH= && startAgent.bat
More information: How to Monitor Your Server Health & Performance During a JMeter Load Test
Alternatively you can try downloading sl4j.jar and dropping it near ServerAgent.jar but it is not a part of normal ServerAgent installation procedure.

mongodb : listen() attempts to access socket in a forbidden way

I downloaded 64-bit zipped version of mongodb for windows, created '/data/db' as instructed.
Now, when I run "mongod" command, I am getting the following error & the mongodb server shuts down automatically.
"ERROR : listen() failed error-10013. An attempt was made to access socket in a way forbidden by its access permissions. "
Please help me to clear the firewall settings in windows to prevent this error & run mongodb.
I was able to fix the error by using the following command : "mongod --bind_ip="127.0.0.1". :)
This error also seems to happen when mongod is already running. On Windows 10, mongod will be listed under Background Processes in the Task Manager if it is running. If it is already running, ending the task should allow you to run mongod again without this error occurring. Also check that it is not running as a service; it may be set to restart automatically.
Also, if you have a docker container running mongodb, you also get this error. If you stop your container(s) running mongodb, then it should start up.
I was able to fix this issue by allowing access for Mongo Db Server Application under firewall settings in my antivirus settings.
After you did the above step,open the cmd as administrator and go to the bin path of mongodb application in your system.
Then run the below command.
mongod
Note : try the above steps only after you tried the below steps
1) https://docs.mongodb.com/manual/tutorial/configure-windows-netsh-firewall/
2)https://www.tomshardware.com/news/how-to-open-firewall-ports-in-windows-10,36451.html
I ran across a similar error which is why I ended up on this thread. For me, my solution was that McAfee Antivirus was blocking MongoDB.
The initial error basically showed that access was denied for mongo:
mongo error
I was able to do a search on the internet and found steps to allow MongoDB to run under McAfee Antivirus software by changing the setting for the app directly.
mcaffee settings
When I located MongoDB in the apps requesting internet access, it was initially set to blocked. I selected the app, clicked on edit and changed it to 'Designated ports'.
mongodb settings changed
Now, I am able to run mongo whether the mongod service is started automatically or if I start it manually in a hyper terminal window.

import neo4j database from windows to ubuntu

I have created a neo4j database on my windows machine.
I have transferred the content of the database directory to my linux machine. This is because I have the community edition which does not support the backup functions.
mtt#mttPC:/var/lib/neo4j/data/log$ sudo service neo4j-service start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime.
* Please use Oracle(R) Java(TM) 7 to run Neo4j Server. Download "Java Platform (JDK) 7" from:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
* Please see http://docs.neo4j.org/ for Neo4j Server installation instructions.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [21498]... waiting for server to be ready..... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
The file messages.log in the database directory says nothing.
Any idea? Are the windows and linux neo4js compatible? Thank you.
Edit
I have made a fresh install of neo4j on my ubuntu machine.
Now I finally get some logs:
2014-05-16 20:01:10.958+0000 ERROR [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#25984c63' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#3d34dcb' was successfully initialized, but failed to start. Please see attached cause exception.: 'neostore' has a store version number that we cannot upgrade from. Expected 'NeoStore v0.A.0' but file is version 'NeoStore v0.A.2'.
2014-05-16 20:01:10.958+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Shutdown started
I should be related to this but I am not sure how to proceed. Is the issue related to the fact that when I copied the database, I just stopped neo4j on my windows machine from the neo4j window?
There is no reason why a Neo4j database should not be transferable between operating systems. Can you please provide the output of data/log/console.log? First thought is that you may have permission issues. The files should be read/write for the user the Neo4j process will run as.

Weblogic error: ServletContainerAdapter manager not initialized correctly

I am new in Weblogic server, I am using Jdeveloper along with weblogic, but after launch the weblogic server i got the following error.
ServletContainerAdapter manager not initialized correctly
I am unable to run any web application. Please help me how to resolve that issue.
I googled about this topic and always get these adviced:
This error can be safely ignored in the development environment
change log4j.properties
Please check following property:
WL_HOME\server\lib\consoleapp\consolehelp\WEB-INF\classes\log4j.properties
The first copy this file for back-up. After try to set following adjust:
log4j.logger.org.apache.beehive.netui.pageflow.internal.AdapterManager
= FATAL
The weblogic documentation say:
This message is emitted from one of the frameworks used by the console
and can be ignored.

Starting Cassandra Server Error

I have a problem starting Server, it shows this error on starting.
C:\cassandra107\bin>cassandra
Starting Cassandra Server
Error opening zip file or JAR manifest missing : C:\apache-cassandra-1.0.7\bin\l
ib\jamm-0.2.5.jar
Error occurred during initialization of VM
agent library failed to init: instrument
I have Set Envi Variables:
"CASSANDRA_HOME" variable as "C:\cassandra107\bin"
"JAVA_HOME" variable as "C:\Program Files\Java\jre6"
I have another Doubt why is still pointing c:\apache when i have set the Envi Variable as c:\cassandra107
pls help me out thanks in advance
I think you might want to point CASSANDRA_HOME to "C:\cassandra107" rather than "C:\cassandra107\bin" and start cassandra as "bin\cassandra" in "C:\cassandra107"
I'd use the Windows installer from http://www.datastax.com/products/community instead of trying to run it manually.

Resources