JDBC connection error for HIVE while using SQL WorkbenchJ - jdbc

I am trying to establish a JDBC connection to access HIVE via SQL workbenchJ. I have placed all the JARs needed for connection along with the connection URL. Am getting the error
[Amazon]HivejdbcDriver error initialized or created
transport for authentication:null
while testing the connection. Can anyone help me on this?

Related

Connecting NiFi with Sybase database erroring

Could you please help me with the correct URL format to connect to Sybase using the DBCP connection pool of NiFi?
The URL format that I have tried is - jdbc:sybase:Tds://host:port
I keep getting this error - failed to create Poolable Connection Factory. Incorrect URL format.
Thank you in advance.

wso2 connection mysql jdbc

i tried to connect an mysql in api manager wso2 jdbc using this url jdbc:mysql://localhost:3306/eemp?allowPublicKeyRetrieval=true&useSSL=false
but gets an error:
The data source URL is not accepted by any of the loaded drivers.
Cannot load connection class because of underlying exception:
com.mysql.cj.exceptions.WrongArgumentException: Malformed database
URL, failed to parse the connection string near
';useSSL=false'.
I think you are having the URL as follows.
jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false
Try the following
jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false

Connecting Marklogic Database

I'm tryng to connect jmeter and marklogic using postgresql-42.1.4.jar or mljdbc-42.1.4.jar.
My app-servers:
My Configuration of JDBC:
And i received the error: "Cannot create PoolableConnectionFactory (The connection attempt failed.)"
What i do wrong? help?
As far as I can remember the default postgresql validation query used to validate the JDBC connection is not a valid SQL statement for MarkLogic. JMeter uses apache commons dbcp for its connection pooling which in turn uses a validation query to validate the connections.
Not sure what the query is (I'm sure this is somewhere in the source code) but you need to change that.
Go to "JDBC Connection Configuration" and set "Validation Query" to select 1.
For reference the complete exception message is:
java.sql.SQLException: Cannot create PoolableConnectionFactory
(isValid() returned false)

ORA-12518 TNS:listener could not hand off client connection in data source from JBOSS 6,X

I am using ORACLE 12c database in our Application while starting Applications
showing below error.
WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Listener refused the connection with the following error:
ORA-12518, TNS:listener could not hand off client connection
)
Could not obtain connection to query metadata: org.jboss.util.NestedSQLException: Unable to get managed connection for FooDB; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for FooDB)
Here is My connections URL:
jdbc:oracle:thin:#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mydomain.com)(PORT=1521))
(LOAD_BALANCE=ON)(FAILOVER=ON)(CONNECT_DATA=(SERVER=SHARED)(SERVICE_NAME=FOODB)(FAILOVER_MODE=(.......
this unknown issue leads application performance issue while longing into app looking for any parameters to add from jboss as database is in 2 node clustered environment.
Thanks in advance.

coldfusion v 10 std unable to connect to oracle via jdbc oci driver

I am trying to establish a jdbc-oci connection to an oracle database on a coldfusion v 10 std server.
The reason for employing jdbc oci is the necessity to encrypt data flowing between the app server and the database (by using common settings in sqlnet.ora). However, no matter what syntax we try, neither a service
based nor a tnsnames based jdbc url will work. Immediately after saving (and automatically testing) the connection, coldfusion errors out with "java.sql.SQLException: Timed out trying to establish connection".
It looks weird that a timeout may have happened since the error will always be thrown immediately. Therefor I suppose there is another root cause for failing to establish the connection.
Any ideas out there?
Please note that we simulated connection establishment with a console application aside coldfusion but using the same jvm and jdbc driver successfully. it does therefore not seem to be a jvm or driver or oci.dll
related issue.
data source settings :
Driver Class : oracle.jdbc.driver.OracleDriver
JDBC URL (using tnsnames.ora) : jdbc:oracle:oci:#<theName>
JDBC URL (using ip, port, service) : jdbc:oracle:oci:#//<IP>:1521/<SID>
error message :
Connection verification failed for data source: theName
java.sql.SQLException: Timed out trying to establish connection
The root cause was that: java.sql.SQLException: Timed out trying to establish connection
environment :
ojdbc6 driver lives in a directory known to coldfusion
oci.dll lives in a directory known to the system path variable, verified by sysinternals processexplorer on the coldfusion service
for the JDBC URL (using tnsnames.ora), the directory containing tnsnames.ora is known as a system variable TNS_ADMIN, verified by sysinternals processexplorer on the coldfusion service
along with tnsnames.ora there is a sqlnet.ora file comprising settings to switch on data encryption
Stacktrace:
A non-SQL error occurred while requesting a connection from "datasource-name here".
Timed out trying to establish connection
Exception in thread "Thread-2120" java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3560)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3556)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:269)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:553)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:165)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)
at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:614)
at coldfusion.server.j2ee.sql.pool.ConnectionRunner$RunnableConnection.run(ConnectionRunner.java:67)
at java.lang.Thread.run(Thread.java:722)
A non-SQL error occurred while requesting a connection from "datasource-name here".
Timed out trying to establish connection
[Fatal Error] :2662:4: The element type "view" must be terminated by the matching end-tag "</view>".
Adding of the Path to the oracle instant client at the configuration file cf-directory\cfusion\bin\jvm.config has solved the problem.

Resources