1. 使用sql-cli.

    image.png

    1. 可以使用JDBC

    image.png
    Properties properties = new Properties();
    properties.put(“user”, “test_admin”);
    properties.put(“password”, “x-pack-test-password”);
    try (Statement statement = connection.createStatement();
    ResultSet results = statement.executeQuery(
    “ SELECT name, page_count”
    + “ FROM library”
    + “ ORDER BY page_count DESC”
    + “ LIMIT 1”)) {

    1. ODBC

    image.png
    image.png
    image.png
    image.png
    image.png
    image.png