Bad connect ack with firstBadLink as xxx.xxx.xxx.xxx:50010

■ HBase 로그파일에서 java.io.IOException: Bad connect ack with firstBadLink as xxx.xxx.xxx.xxx:50010 예외 상황이 발생. 원인을 찾아보니 리눅스서버(Centos7) 내부 방화벽이 활성화 되어 있었기 때문이었다. 방화벽을 내리니 원할히 접속된다.

$ vi hbase-[유저명]-regionserver-[호스트명].log
...
java.io.IOException: Bad connect ack with firstBadLink as xxx.xxx.xxx.xxx:50010
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1377)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1281)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:526)
...

 

■ 방화벽 실행 확인 확인( 아래의 Active: active (running) )

# systemctl status firewalld.service
...
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since 월 2016-09-05 09:10:17 KST; 9h ago
 Main PID: 877 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─877 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
...

 

■ 리눅스 서버 실행시 방화벽 자동시작 해제

# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

 
 
 

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다