Qihoo360 / Quicksql

A Flexible, Fast, Federated(3F) SQL Analysis Middleware for Multiple Data Sources
https://quicksql.readthedocs.io
MIT License
2.06k stars 584 forks source link

The server failed to issue an HTTP response, retrying #292

Open luckymlog opened 1 year ago

luckymlog commented 1 year ago

Versions

eg: 0.7.1

Describe the bug

命令./bin/quicksql-server.sh start -p 5888 -r flink server启动正常 客户端报一直报The server failed to issue an HTTP response, retrying

To Reproduce

public static void main(String[] args) throws SQLException, ClassNotFoundException { Class.forName("com.qihoo.qsql.client.Driver"); //注入Drvier

    Properties properties = new Properties();
    properties.setProperty("runner","jdbc");
    String url = "jdbc:quicksql:url=http://10.10.99.9:5888";
    Connection connection = DriverManager.getConnection(url,properties);
    Statement pS = connection.createStatement();
    String sql = "select * from (values ('a', 1), ('b', 2))";
    ResultSet rs =  pS.executeQuery(sql);
    while (rs.next()) {
        System.out.println(rs.getString(1));
        System.out.println(rs.getString(2));
    }
    rs.close();
    pS.close();
}

Full Output Logs

The server failed to issue an HTTP response, retrying