[ 
https://issues.apache.org/jira/browse/IOTDB-4760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17624258#comment-17624258
 ] 

Haonan Hou commented on IOTDB-4760:
-----------------------------------

Hi, you need to execute session.open before execute 
session.executeQueryStatement.

> [connection]connect iotdb cluster with the nodUrls method of session builder, 
> failed 
> -------------------------------------------------------------------------------------
>
>                 Key: IOTDB-4760
>                 URL: https://issues.apache.org/jira/browse/IOTDB-4760
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 0.14.0-SNAPSHOT
>            Reporter: changxue
>            Assignee: Haonan Hou
>            Priority: Major
>
> [connection]connect iotdb cluster with the nodUrls method of session builder, 
> failed
> environment:
> 3C3D cluster with the latest source codes of master branch
>  
> test codes:
> {code:java}
> List<String> node_list = new ArrayList<>(3);
> node_list.add("172.20.70.44:6667");
> node_list.add("172.20.70.45:6667");
> node_list.add("172.20.70.46:6667");  
> Session session = new Session.Builder()
>         .nodeUrls(node_list)
>         .build();
> session.executeQueryStatement("show storage group "); {code}
> It throws NPE on the laster statement.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to