Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] What this error about ? Connection timed out: no further information: /10.233.105.111:3454 #41123

Closed
yuyang-ok opened this issue Apr 10, 2024 · 1 comment
Labels
Component: Java Type: usage Issue is a user question

Comments

@yuyang-ok
Copy link

yuyang-ok commented Apr 10, 2024

Describe the usage question you have. Please include as many useful details as possible.

I am new to arrow flight jdbc driver.
I have been doing some with flight sql protocol.
I have encountered this problem.

Mine code is kind of like this.

package org.example;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {

    public static void main(String[] args) throws Exception {
        Class.forName("org.apache.arrow.driver.jdbc.ArrowFlightJdbcDriver");
        Connection connection = DriverManager.getConnection("jdbc:arrow-flight-sql://192.168.0.220:33453/?useEncryption=false", "admin", "password");
        System.out.println("obtain connection ok");
        Statement statement = connection.createStatement();
        String str = "select 100;";
        ResultSet result = statement.executeQuery(str);
        System.out.println("execute query ok");
        while (result.next()) {
            int a = result.getInt(0);
            System.out.println(a);
        }
    }
}

I see this error msg
flight-jdbc.log



Caused by: cfjd.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: /10.233.105.111:3454
Caused by: java.net.ConnectException: Connection timed out: no further information

I don't know the host and port come from wired.

anyone know the reason??

Component(s)

Java

@yuyang-ok yuyang-ok added the Type: usage Issue is a user question label Apr 10, 2024
@yuyang-ok
Copy link
Author

yuyang-ok commented Apr 10, 2024

I am using

 <dependency>
            <groupId>org.apache.arrow</groupId>
            <artifactId>flight-sql-jdbc-driver</artifactId>
            <version>15.0.0</version>
  </dependency>

java version

PS D:\test-fabric-arrow-flight-jdbc\target\classes> java --version
openjdk 20.0.2 2023-07-18
OpenJDK Runtime Environment (build 20.0.2+9-78)
OpenJDK 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)

@kou kou changed the title What this error about ? Connection timed out: no further information: /10.233.105.111:3454 [Java] What this error about ? Connection timed out: no further information: /10.233.105.111:3454 Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Java Type: usage Issue is a user question
Projects
None yet
Development

No branches or pull requests

1 participant