incubator-chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 邵赛赛 <sai.sai.s...@gmail.com>
Subject Re: agent.log I/O exception (java.net.SocketTimeoutException) caught when processing request: Read timed out
Date Tue, 18 Sep 2012 01:28:18 GMT
Hi, it seems like a network problem. please:
1. check whether your Chukwa Collector has been started correctly, and bind
correct port.
2. maybe port 8081 has been occupied by other process, so please check the
collecor.log to see if there is any exception.
3. check your Chukwa Agent and Collector configure to make sure it is
correct.

Thanks
Saisai


2012/9/18 Kumar, Suresh <Suresh.Kumar4@emc.com>

> I have the following in my local host :****
>
> ** **
>
> hadoop-1.0.3****
>
> chukwa-incubating-0.5.0****
>
> hbase-0.92.2****
>
> ** **
>
> Here are some relevant properties from  *chukwa-collector-conf.xml*****
>
> ** **
>
> <property>****
>
>     <name>writer.hdfs.filesystem</name>****
>
>     <value>hdfs://localhost:9000</value>****
>
>     <description>HDFS to dump to</description>****
>
>   </property>****
>
> ………****
>
> <property>****
>
>     <name>chukwaCollector.http.port</name>****
>
>     <value>8081</value>****
>
>     <description>The HTTP port number the collector will listen
> on</description>****
>
>   </property>****
>
> ** **
>
> and *collectors*
>
> * *
>
> http://localhost:8081****
>
> ** **
>
> I see the following in agent.log and http://localhost:4080/hicc is
> spinning, any help appreciated.****
>
> ** **
>
> 2012-09-17 16:00:28,698 INFO main Log4JMetricsContext -
> Log4JMetricsContext.chukwaAgent.period=60****
>
> 2012-09-17 16:00:28,910 INFO main ChukwaAgent - Config - CHUKWA_HOME:
> [/opt/chukwa-incubating-0.5.0]****
>
> 2012-09-17 16:00:28,910 INFO main ChukwaAgent - Config - CHUKWA_CONF_DIR:
> [/opt/chukwa/etc/chukwa]****
>
> 2012-09-17 16:00:29,619 INFO main ChukwaAgent - Config -
> CHECKPOINT_BASE_NAME: [chukwa_agent_checkpoint]****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - Config - checkpointDir:
> [/opt/chukwa/log]****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - Config -
> CHECKPOINT_INTERVAL_MS: [5000]****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - Config -
> DO_CHECKPOINT_RESTORE: [true]****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - Config -
> STATS_INTERVAL_MS: [10000]****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - Config - tags:
> [cluster="demo"]****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - checkpoints are enabled,
> period is 5000****
>
> 2012-09-17 16:00:29,620 INFO main ChukwaAgent - starting adaptors listed
> in /opt/chukwa/log/chukwa_agent_checkpoint0****
>
> 2012-09-17 16:00:29,648 INFO main ChukwaAgent - started a new adaptor, id
> = adaptor_93df4746476c9a4b624f6755b122f9dc
> function=[org.apache.hadoop.chukwa.datacollection.adaptor.SocketAdaptor@30384065
> ]****
>
> 2012-09-17 16:00:29,651 INFO main ChukwaAgent - started a new adaptor, id
> = adaptor_79203ebcc495e11b747254e660380620
> function=[org.apache.hadoop.chukwa.datacollection.adaptor.SocketAdaptor@212bcd4b
> ]****
>
> 2012-09-17 16:00:29,651 INFO main ChukwaAgent - started a new adaptor, id
> = adaptor_e2b39549cac6e966126df286a79ae6ad
> function=[org.apache.hadoop.chukwa.datacollection.adaptor.SocketAdaptor@296f25a7
> ]****
>
> 2012-09-17 16:00:29,667 INFO main ChukwaAgent - started a new adaptor, id
> = adaptor_c79bf882974a14286cffe29d3d4cf0d6
> function=[org.apache.hadoop.chukwa.datacollection.adaptor.sigar.SystemMetrics@a13f991
> ]****
>
> 2012-09-17 16:00:29,667 INFO main ChukwaAgent - started a new adaptor, id
> = adaptor_c6fd1e5021ad8023477ef0b56a24a29f
> function=[org.apache.hadoop.chukwa.datacollection.adaptor.SocketAdaptor@7dc05ffd
> ]****
>
> 2012-09-17 16:00:29,667 INFO main ChukwaAgent - starting adaptors listed
> in /opt/chukwa/etc/chukwa/initial_adaptors****
>
> 2012-09-17 16:00:29,675 INFO main AgentControlSocketListener -
> AgentControlSocketListerner ask for port: 9093****
>
> 2012-09-17 16:00:29,675 INFO main AgentControlSocketListener - socket
> bound to 9093****
>
> 2012-09-17 16:00:29,675 INFO main ChukwaAgent - control socket started on
> port 9093****
>
> 2012-09-17 16:00:29,713 INFO main log - Logging to
> org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog****
>
> 2012-09-17 16:00:29,759 INFO main log - jetty-6.1.26****
>
> 2012-09-17 16:00:29,821 INFO main log - Started
> SelectChannelConnector@0.0.0.0:9090****
>
> 2012-09-17 16:00:29,822 INFO main ChukwaAgent - started Chukwa http agent
> interface on port 9090****
>
> 2012-09-17 16:00:29,826 INFO Timer-2 ChukwaAgent - writing checkpoint 1***
> *
>
> 2012-09-17 16:00:29,827 INFO main ChukwaAgent - local agent started on
> port 9093****
>
> 2012-09-17 16:00:29,827 INFO HTTP post thread HttpConnector -
> HttpConnector started at time:1347912029827****
>
> 2012-09-17 16:00:29,827 INFO HTTP post thread DataFactory - Config -
> System.getenv("CHUKWA_HOME"): [/opt/chukwa-incubating-0.5.0/]****
>
> 2012-09-17 16:00:29,827 INFO HTTP post thread DataFactory - Config -
> System.getenv("chukwaConf"): [/opt/chukwa/etc/chukwa]****
>
> 2012-09-17 16:00:29,827 INFO HTTP post thread DataFactory - setting up
> collectors file: /opt/chukwa/etc/chukwa/collectors****
>
> 2012-09-17 16:00:29,866 INFO HTTP post thread HttpConnector - using
> collectors from collectors file****
>
> 2012-09-17 16:00:29,926 INFO Timer-3 HttpConnector - # http chunks ACK'ed
> since last report: 0****
>
> 2012-09-17 16:00:43,886 INFO HTTP post thread ChukwaHttpSender - collected
> 1 chunks for post_0****
>
> 2012-09-17 16:00:43,943 INFO HTTP post thread ChukwaHttpSender - >>>>>>
> HTTP post_0 to http://localhost:8081/ length = 248****
>
> 2012-09-17 16:00:44,037 ERROR HTTP post thread ChukwaHttpSender - Http
> post exception on http://localhost:8081/: java.net.ConnectException:
> Connection refused****
>
> 2012-09-17 16:00:44,037 WARN HTTP post thread ChukwaHttpSender - No more
> collectors to try rolling over to; waiting 20000 ms (144000 retries left)*
> ***
>
> 2012-09-17 16:01:28,711 INFO Thread-20 SocketAdaptor - Caught
> java.io.EOFException closing conneciton.****
>

Mime
View raw message