You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "yuyang-ok (via GitHub)" <gi...@apache.org> on 2024/04/10 09:09:16 UTC

[I] What this error about ? Connection timed out: no further information: /10.233.105.111:3454 [arrow]

yuyang-ok opened a new issue, #41123:
URL: https://github.com/apache/arrow/issues/41123

   ### Describe the usage question you have. Please include as many useful details as  possible.
   
   
   I am new to arrow flight jdbc driver.
   I have beed doing some with flight sql protocol. 
   I have encountered this problem.
   [flight-jdbc.log](https://github.com/apache/arrow/files/14930109/flight-jdbc.log)
   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 
   ~~~
   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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Java] What this error about ? Connection timed out: no further information: /10.233.105.111:3454 [arrow]

Posted by "yuyang-ok (via GitHub)" <gi...@apache.org>.
yuyang-ok commented on issue #41123:
URL: https://github.com/apache/arrow/issues/41123#issuecomment-2049250429

   I use go to test my code kind like this.
   ~~~
   package main
   
   import (
   	"database/sql"
   	"fmt"
   
   	_ "github.com/apache/arrow-adbc/go/adbc/sqldriver/flightsql"
   )
   
   func main() {
   	dsn := "uri=grpc://192.168.56.220:33453;username=admin;password=password"
   	db, err := sql.Open("flightsql", dsn)
   	if err != nil {
   		panic(err)
   	}
   	row := db.QueryRow("select 100")
   	var value int64
   	err = row.Scan(&value)
   	if err != nil {
   		panic(err)
   	}
   	fmt.Println("value:", value)
   }
   
   ~~~
   and I get this error.
   ~~~
    go run main.go
   panic: I/O: [FlightSQL] connection error: desc = "transport: Error while dialing: dial tcp 192.168.56.220:33453: i/o timeout" (Unavailable; AuthenticateBasicToken)
   
   goroutine 1 [running]:
   main.main()
           D:/gotest/main.go:20 +0x118
   exit status 2
   ~~~
   Is this means this is a server problem.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] What this error about ? Connection timed out: no further information: /10.233.105.111:3454 [arrow]

Posted by "yuyang-ok (via GitHub)" <gi...@apache.org>.
yuyang-ok commented on issue #41123:
URL: https://github.com/apache/arrow/issues/41123#issuecomment-2046982819

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Java] What this error about ? Connection timed out: no further information: /10.233.105.111:3454 [arrow]

Posted by "yuyang-ok (via GitHub)" <gi...@apache.org>.
yuyang-ok closed issue #41123: [Java] What this error about  ?  Connection timed out: no further information: /10.233.105.111:3454 
URL: https://github.com/apache/arrow/issues/41123


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org