Flume running error collection

Source: Internet
Author: User

1) hostname error:

2011-11-14 11:44:55,497 ERROR com.cloudera.util.NetUtils: Unable to get canonical host name! test: test java.net.UnknownHostException: test: test         at java.net.InetAddress.getLocalHost(InetAddress.java:1354)        at com.cloudera.util.NetUtils.<clinit>(NetUtils.java:43)        at com.cloudera.flume.agent.FlumeNode.setup(FlumeNode.java:439)        at com.cloudera.flume.agent.FlumeNode.main(FlumeNode.java:665)

Error cause: IP address cannot be obtained from hostname

Solution: add the host name to IP address ing in the/etc/hosts file.

2) Java does not follow

line 234: exec: java: not found

Error cause: the Java command does not exist.

Solution: Install the Java package

3) An error is reported when flume node runs COLLECTOR:

ERROR com.cloudera.flume.core.connector.DirectDriver: Exiting driver logicalNode vv_188_collector-20 in error state CollectorSource | Collector because Compression codec com.hadoop.compression.lzo.LzoCodec not found.

Error cause: Flume cannot find the lzo compression library

Solution: add the path of the lzo compression library to/etc/profile. d/flume. sh:

export FLUME_CLASSPATH=/opt/hadoop-0.20.203.0/lib/hadoop-lzo-0.4.8.jar

Restart flume node and run the purge command: perge vv_188_collector to reload the configuration.

4) flume master error: Unable to connect to zookeeper Service

ZK Error Log:

2011-11-14 11:12:29,070 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server test/1.2.3.4:3181, sessionid = 0x133a00fbe560001, negotiated timeout = 50002011-11-14 15:30:31,436 INFO org.apache.zookeeper.server.ZooKeeperServer: Expiring session 0x133a00fbe560001, timeout of 5000ms exceeded2011-11-14 15:31:16,735 INFO org.apache.zookeeper.server.ZooKeeperServer: Expiring session 0x133a00fbe560000, timeout of 5000ms exceeded2011-11-14 15:31:16,853 INFO org.apache.zookeeper.ClientCnxn: Client session timed out, have not heard from server in 13678ms for sessionid 0x133a00fbe560001, closing socket connection and attempting reconnect2011-11-14 15:31:16,853 INFO org.apache.zookeeper.ClientCnxn: Client session timed out, have not heard from server in 13323ms for sessionid 0x133a00fbe560000, closing socket connection and attempting reconnect2011-11-14 15:31:16,853 WARN org.apache.zookeeper.server.NIOServerCnxn: EndOfStreamException: Unable to read additional data from client sessionid 0x133a00fbe560001, likely client has closed socket2011-11-14 15:31:16,854 INFO org.apache.zookeeper.server.PrepRequestProcessor: Processed session termination for sessionid: 0x133a00fbe5600012011-11-14 15:31:16,990 INFO org.apache.zookeeper.server.PrepRequestProcessor: Processed session termination for sessionid: 0x133a00fbe5600002011-11-14 15:31:17,162 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:50430 which had sessionid 0x133a00fbe5600012011-11-14 15:31:17,212 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:50429 which had sessionid 0x133a00fbe5600002011-11-14 15:31:17,213 WARN org.apache.zookeeper.server.NIOServerCnxn: Ignoring unexpected runtime exceptionjava.nio.channels.CancelledKeyException        at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)        at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69)        at org.apache.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:241)2011-11-14 15:31:18,332 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server test/1.2.3.4:31812011-11-14 15:31:18,333 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to test/1.2.3.4:3181, initiating session2011-11-14 15:31:18,333 INFO org.apache.zookeeper.server.NIOServerCnxn: Accepted socket connection from /1.2.3.4:330442011-11-14 15:31:18,333 INFO org.apache.zookeeper.server.NIOServerCnxn: Client attempting to renew session 0x133a00fbe560001 at /1.2.3.4:330442011-11-14 15:31:18,334 INFO org.apache.zookeeper.server.NIOServerCnxn: Invalid session 0x133a00fbe560001 for client /1.2.3.4:33044, probably expired2011-11-14 15:31:18,348 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down2011-11-14 15:31:18,348 INFO org.apache.zookeeper.ClientCnxn: Unable to reconnect to ZooKeeper service, session 0x133a00fbe560001 has expired, closing socket connection2011-11-14 15:31:18,500 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:33044 which had sessionid 0x133a00fbe5600012011-11-14 15:31:18,510 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server test/1.2.3.4:31812011-11-14 15:31:18,511 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to test/1.2.3.4:3181, initiating session2011-11-14 15:31:18,511 INFO org.apache.zookeeper.server.NIOServerCnxn: Accepted socket connection from /1.2.3.4:330452011-11-14 15:31:19,217 INFO org.apache.zookeeper.server.NIOServerCnxn: Client attempting to renew session 0x133a00fbe560000 at /1.2.3.4:330452011-11-14 15:31:19,218 INFO org.apache.zookeeper.server.NIOServerCnxn: Invalid session 0x133a00fbe560000 for client /1.2.3.4:33045, probably expired2011-11-14 15:31:19,218 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:33045 which had sessionid 0x133a00fbe5600002011-11-14 15:31:19,219 INFO org.apache.zookeeper.ClientCnxn: Unable to reconnect to ZooKeeper service, session 0x133a00fbe560000 has expired, closing socket connection2011-11-14 15:31:19,219 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down

From the log of ZK, It is the session timeout for the flume master to connect to ZK. The flume master ZK client tries to refresh the obtained session and is rejected by the zk master.

Flume master Error Log:

2011-11-14 11:12:29,070 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server test/1.2.3.4:3181, sessionid = 0x133a00fbe560001, negotiated timeout = 50002011-11-14 15:30:31,436 INFO org.apache.zookeeper.server.ZooKeeperServer: Expiring session 0x133a00fbe560001, timeout of 5000ms exceeded2011-11-14 15:31:16,735 INFO org.apache.zookeeper.server.ZooKeeperServer: Expiring session 0x133a00fbe560000, timeout of 5000ms exceeded2011-11-14 15:31:16,853 INFO org.apache.zookeeper.ClientCnxn: Client session timed out, have not heard from server in 13678ms for sessionid 0x133a00fbe560001, closing socket connection and attempting reconnect2011-11-14 15:31:16,853 INFO org.apache.zookeeper.ClientCnxn: Client session timed out, have not heard from server in 13323ms for sessionid 0x133a00fbe560000, closing socket connection and attempting reconnect2011-11-14 15:31:16,853 WARN org.apache.zookeeper.server.NIOServerCnxn: EndOfStreamException: Unable to read additional data from client sessionid 0x133a00fbe560001, likely client has closed socket2011-11-14 15:31:16,854 INFO org.apache.zookeeper.server.PrepRequestProcessor: Processed session termination for sessionid: 0x133a00fbe5600012011-11-14 15:31:16,990 INFO org.apache.zookeeper.server.PrepRequestProcessor: Processed session termination for sessionid: 0x133a00fbe5600002011-11-14 15:31:17,162 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:50430 which had sessionid 0x133a00fbe5600012011-11-14 15:31:17,212 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:50429 which had sessionid 0x133a00fbe5600002011-11-14 15:31:17,213 WARN org.apache.zookeeper.server.NIOServerCnxn: Ignoring unexpected runtime exceptionjava.nio.channels.CancelledKeyException        at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)        at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69)        at org.apache.zookeeper.server.NIOServerCnxn$Factory.run(NIOServerCnxn.java:241)2011-11-14 15:31:18,332 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server test/1.2.3.4:31812011-11-14 15:31:18,333 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to test/1.2.3.4:3181, initiating session2011-11-14 15:31:18,333 INFO org.apache.zookeeper.server.NIOServerCnxn: Accepted socket connection from /1.2.3.4:330442011-11-14 15:31:18,333 INFO org.apache.zookeeper.server.NIOServerCnxn: Client attempting to renew session 0x133a00fbe560001 at /1.2.3.4:330442011-11-14 15:31:18,334 INFO org.apache.zookeeper.server.NIOServerCnxn: Invalid session 0x133a00fbe560001 for client /1.2.3.4:33044, probably expired2011-11-14 15:31:18,348 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down2011-11-14 15:31:18,348 INFO org.apache.zookeeper.ClientCnxn: Unable to reconnect to ZooKeeper service, session 0x133a00fbe560001 has expired, closing socket connection2011-11-14 15:31:18,500 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:33044 which had sessionid 0x133a00fbe5600012011-11-14 15:31:18,510 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server test/1.2.3.4:31812011-11-14 15:31:18,511 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to test/1.2.3.4:3181, initiating session2011-11-14 15:31:18,511 INFO org.apache.zookeeper.server.NIOServerCnxn: Accepted socket connection from /1.2.3.4:330452011-11-14 15:31:19,217 INFO org.apache.zookeeper.server.NIOServerCnxn: Client attempting to renew session 0x133a00fbe560000 at /1.2.3.4:330452011-11-14 15:31:19,218 INFO org.apache.zookeeper.server.NIOServerCnxn: Invalid session 0x133a00fbe560000 for client /1.2.3.4:33045, probably expired2011-11-14 15:31:19,218 INFO org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection for client /1.2.3.4:33045 which had sessionid 0x133a00fbe5600002011-11-14 15:31:19,219 INFO org.apache.zookeeper.ClientCnxn: Unable to reconnect to ZooKeeper service, session 0x133a00fbe560000 has expired, closing socket connection2011-11-14 15:31:19,219 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down

Solution: restart the flume master node.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.