Cassandar driver not downloaded

Answered

Hello,

   I have downloaded the latest IntelliJ version, but when I try to connect to the cassandra database, the 'Test Connection' button is disabled and the bottom of the dialog says 'No provided files for Cassandra'. I have cassandra 3_10_1 version. I am not sure if I have missed some step or manually have to download the driver. Can someone help please? 

 

Thanks,

Arathi.

0
6 comments

There is download button available when you use data source for the first time and the driver is not yet downloaded, please check https://www.jetbrains.com/help/datagrip/connecting-to-a-database.html#connect-to-cassandra-database

0
Avatar
Permanently deleted user

I am using IntelliJ Idea Ultimate 2018.3.4 version and trying to connect to the Database. I am not sure if it uses Data Grip for that.The screenshots are 

 

 

 

The second screenshot is when I select Cassandra link present at the bottom of the first screenshot 

 

Thanks,

Arathi.

0

Do you have such issue with any jdbc driver? Can you use other networking functionality in IDE?

Please provide idea.log after IDE restart and trying to create Cassandra data source.

For uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service or output it here (if it is not too long).

0
Avatar
Permanently deleted user

I have postgres connected. But npne of the other drivers. For example, I tried to download the driver for Redshift in the Data Sources and Drivers dialog and got a java.net.ConnectException. I have uploaded the file (Arathi_idea.log)

0

You are getting connection refused error for https connections:

2019-02-06 10:32:29,365 [4228974]   WARN - orks.SettingsConnectionService - Connection refused (Connection refused) 
java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.Socket.connect(Socket.java:589)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient$1.run(HttpClient.java:515)
	at sun.net.www.http.HttpClient$1.run(HttpClient.java:513)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:512)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:553)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
	at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:609)
	at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:59)
	at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:378)
	at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:387)
	at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:405)
	at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:398)
	at com.intellij.facet.frameworks.SettingsConnectionService.lambda$readSettings$0(SettingsConnectionService.java:73)
	at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:523)
	at com.intellij.util.io.HttpRequests.process(HttpRequests.java:499)
	at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:59)
	at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:352)
	at com.intellij.util.io.RequestBuilder.connect(RequestBuilder.java:64)
	at com.intellij.facet.frameworks.SettingsConnectionService.readSettings(SettingsConnectionService.java:70)
	at com.intellij.facet.frameworks.SettingsConnectionService.getSettingValue(SettingsConnectionService.java:97)
	at com.intellij.facet.frameworks.SettingsConnectionService.getServiceUrl(SettingsConnectionService.java:90)
	at com.intellij.internal.statistic.libraryJar.LibraryJarStatisticsService.createVersionsUrl(LibraryJarStatisticsService.java:78)
	at com.intellij.internal.statistic.libraryJar.LibraryJarStatisticsService.getTechnologyDescriptors(LibraryJarStatisticsService.java:54)
	at com.intellij.internal.statistic.libraryJar.LibraryJarStatisticsService.lambda$runActivity$0(LibraryJarStatisticsService.java:98)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

You should configure your local network environment: if you have proxy make sure it does not block IDE connections.

Workaround is to download jdbc driver jar from internet and add the jar manually in driver settings.

0
Avatar
Permanently deleted user

Thanks for the suggestion. I will try to figure out about the network issue.

 

0

Please sign in to leave a comment.