Hi
We installed Cygnus on our FIWARE cloud server and are getting the
following error message:
SSH command:
/usr/local/apache-flume-1.4.0-bin/bin/flume-ng agent --conf
/usr/local/apache-flume-1.4.0-bin/conf -f
/usr/local/apache-flume-1.4.0-bin/conf/cygnus.conf -n orionagent
-Dflume.root.logger=INFO,console
Error:
(lifecycleSupervisor-1-8) [ERROR -
org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:253)]
Unable to start EventDrivenSourceRunner: {
source:org.apache.flume.source.http.HTTPSource
{name:http-source,state:IDLE}
} - Exception follows.
java.lang.IllegalStateException: Running HTTP Server found in source:
http-source before I started one.Will not attempt to start.
at com.google.common.base.Preconditions.checkState(Preconditions.java:145)
at org.apache.flume.source.http.HTTPSource.start(HTTPSource.java:137)
at
org.apache.flume.source.EventDrivenSourceRunner.start(EventDrivenSourceRunner.java:44)
at
org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Can you please clarify?
Best
Keyvan
3DPrinteo Ltd
M: +44(0)7575531633
Address: 1 East Poultry Avenue, EC1A 9PT, London
3DPrinteo Ltd is registered in England & Wales Company Number 8486322
VAT Registration Number: 160393911
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-lab-help
[Created via e-mail received from: Keyvan K <keyvan.k@3dprinteo.com>]
As the log says:
Running HTTP Server found in source: http-source before I started one.Will not attempt to start.
This means there is another Http server running on the configured port for the source (typically, a previous Cygnus execution not stopped or killed apropriatelly). Check it by doing:
$ netstat -nap | grep <your_configured_port>
That will show you, if any, the PID listening on that port. If it is a previous Cygnus instance, just kill it:
$ kill -9 <PID>
If it is not a previous Cygnus instance, do not kill the process since it amy be useful for any other application. Simply move to another free TCP port. This can be done at the configuration (in your case: /usr/local/apache-flume-1.4.0-bin/conf/cygnus.conf):
orionagent.sources.<your_http_source_name>.port = <typically_5050_change_it>
Hope this helps