* 아래와 같은 에러 발생 시
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 08:38:00.352 [main] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up java.net.UnknownHostException: secondary: Temporary failure in name resolution at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[na:1.8.0_144] at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) ~[na:1.8.0_144] at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) ~[na:1.8.0_144] at java.net.InetAddress.getAllByName0(InetAddress.java:1276) ~[na:1.8.0_144] at java.net.InetAddress.getAllByName(InetAddress.java:1192) ~[na:1.8.0_144] at java.net.InetAddress.getAllByName(InetAddress.java:1126) ~[na:1.8.0_144] at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61) ~[zookeeper-3.4.6.jar:3.4.6-1569965] at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445) ~[zookeeper-3.4.6.jar:3.4.6-1569965] at org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29) ~[curator-client-2.7.1.jar:na] at org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(CuratorFrameworkImpl.java:146) ~[curator-framework-2.7.1.jar:na] at org.apache.curator.HandleHolder$1.getZooKeeper(HandleHolder.java:94) ~[curator-client-2.7.1.jar:na] at org.apache.curator.HandleHolder.getZooKeeper(HandleHolder.java:55) ~[curator-client-2.7.1.jar:na] at org.apache.curator.ConnectionState.reset(ConnectionState.java:218) ~[curator-client-2.7.1.jar:na] at org.apache.curator.ConnectionState.start(ConnectionState.java:102) ~[curator-client-2.7.1.jar:na] at org.apache.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:189) ~[curator-client-2.7.1.jar:na] at org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:248) ~[curator-framework-2.7.1.jar:na] at org.apache.drill.exec.coord.zk.ZKClusterCoordinator.<init>(ZKClusterCoordinator.java:106) [drill-java-exec-1.11.0.jar:1.11.0] at org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:326) [drill-java-exec-1.11.0.jar:1.11.0] at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:158) [drill-jdbc-1.11.0.jar:1.11.0] at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:72) [drill-jdbc-1.11.0.jar:1.11.0] at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69) [drill-jdbc-1.11.0.jar:1.11.0] at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:143) [calcite-avatica-1.4.0-drill-r21.jar:1.4.0-drill-r21] at org.apache.drill.jdbc.Driver.connect(Driver.java:72) [drill-jdbc-1.11.0.jar:1.11.0] at sqlline.DatabaseConnection.connect(DatabaseConnection.java:167) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:213) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.Commands.connect(Commands.java:1083) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.Commands.connect(Commands.java:1015) [sqlline-1.1.9-drill-r7.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_144] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_144] at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.SqlLine.dispatch(SqlLine.java:742) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.SqlLine.initArgs(SqlLine.java:528) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.SqlLine.begin(SqlLine.java:596) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.SqlLine.start(SqlLine.java:375) [sqlline-1.1.9-drill-r7.jar:na] at sqlline.SqlLine.main(SqlLine.java:268) [sqlline-1.1.9-drill-r7.jar:na] Error: Failure in connecting to Drill: org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for client. (state=,code=0) java.sql.SQLException: Failure in connecting to Drill: org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for client. at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:167) at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:72) at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69) at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:143) at org.apache.drill.jdbc.Driver.connect(Driver.java:72) at sqlline.DatabaseConnection.connect(DatabaseConnection.java:167) at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:213) at sqlline.Commands.connect(Commands.java:1083) at sqlline.Commands.connect(Commands.java:1015) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36) at sqlline.SqlLine.dispatch(SqlLine.java:742) at sqlline.SqlLine.initArgs(SqlLine.java:528) at sqlline.SqlLine.begin(SqlLine.java:596) at sqlline.SqlLine.start(SqlLine.java:375) at sqlline.SqlLine.main(SqlLine.java:268) Caused by: org.apache.drill.exec.rpc.RpcException: Failure setting up ZK for client. at org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:329) at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:158) ... 18 more Caused by: java.io.IOException: Failure to connect to the zookeeper cluster service within the allotted time of 10000 milliseconds. at org.apache.drill.exec.coord.zk.ZKClusterCoordinator.start(ZKClusterCoordinator.java:123) at org.apache.drill.exec.client.DrillClient.connect(DrillClient.java:327) ... 19 more apache drill 1.11.0 "a drill in the hand is better than two in the bush" 0: jdbc:drill:> | cs |
* 발생 원인
-> 클러스터링된 해당 서버들의 호스트명을 찾지 못 해서 발생된 에러입니다.
* 조치 사항
-> 설정 파일의 호스트명 및 포트 번호가 적절하게 기재되어 있는지를 확인합니다.
-> zookeeper 및 drill 서버가 기동 상태인지 확인을 합니다.
'Big Data Platform > Drill' 카테고리의 다른 글
[에러] Failure in connecting to Drill: org.apache.drill.exec.rpc.RpcException: CONNECTION (0) | 2017.10.18 |
---|---|
[에러] Java 1.7 or later is required to run Apache Drill (0) | 2017.10.17 |
Drill 환경 구축 (분산 모드) (0) | 2017.10.10 |