Description:
After installing IM 2.2 and attempting to add the data aggregator data source the following error is seen when attempting to save the data aggregator settings …
"Create data source failed: data source communication failure "
The following exception is seen in the /opt/IMDataAggregator/apache-karaf-2.1.3/data/log/karaf.log on the Data Aggregator box ...
ERROR | tenderThread-157 | 2013-04-04 10:22:31,960 | RegisterDA | .core.aggregator.impl.RegisterDA 123 | ger.core.aggregator.impl | | UnknownHostException caught in lookupDAItem(): java.net.UnknownHostException: : Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1438)[:1.7.0_09] at com.ca.im.dm.core.aggregator.impl.RegisterDA.findOrCreateDAItem(RegisterDA.j ava:119)[230:com.ca.im.data-manager.core.aggregator.impl:2.2.0.RELEASE-49] at com.ca.im.dm.core.aggregator.impl.RegisterDA.init(RegisterDA.java:91)[230:co m.ca.im.data-manager.core.aggregator.impl:2.2.0.RELEASE-49] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_09] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57 )[:1.7.0_09] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:43)[:1.7.0_09] at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_09]
The root cause of this issue was name resolution. By correctly configuring the /etc/hosts file on the data aggregator we can successfully add it as a data source in the performance center user interface. Here is what the /etc/hosts file should look like ...
Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
IP address of your host YourHostName YourHostName.domain