Welcome to the Cloudera Community

Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Who agreed with this topic

Event Server Index Upgrade Fails

avatar
New Contributor

In order to upgrade my CDH cluster from CDH4 to CDH5, I started with upgrading the Cloudera Manager to the latest version. The upgrade went through without any errors, but now the Event Server fails shortly after startup. I get the following error in the logs:

 

2014-08-19 10:55:49,813 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Creating IndexVersionManager for /var/lib/cloudera-scm-eventserver
2014-08-19 10:55:49,813 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Checking for version directory at /var/lib/cloudera-scm-eventserver/version
2014-08-19 10:55:49,813 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Checking for version file at /var/lib/cloudera-scm-eventserver/version/event_schema.version
2014-08-19 10:55:49,817 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Version from file is 2
2014-08-19 10:55:49,817 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Events index upgrade is required.
2014-08-19 10:55:49,817 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Starting Events Index Upgrade
2014-08-19 10:55:49,817 INFO com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Upgrading from version 2 to 3
2014-08-19 10:55:49,817 ERROR com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager: Failed to upgrade index.
java.lang.RuntimeException: Index Upgrade destination /var/lib/cloudera-scm-eventserver/v3 is not an empty directory. This likely means that the Event Server exited during a previous upgrade attempt. The Event Server will not start up until /var/lib/cloudera-scm-eventserver/v3 is removed, at which time the index upgrade will be retried.
at com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager.upgradeIndex(IndexVersionManager.java:317)
at com.cloudera.cmf.eventcatcher.upgrade.IndexVersionManager.ensureIndexUpgraded(IndexVersionManager.java:465)
at com.cloudera.cmf.eventcatcher.server.EventCatcherService.main(EventCatcherService.java:120)
2014-08-19 10:55:49,818 ERROR com.cloudera.cmf.eventcatcher.server.EventCatcherService: Could not ensure index is upgraded.

 

So it seems that some index upgrade is attempted but that fails. I also removed the directory, but after starting the Event Server again, the directory is created again and the service fails again. The size of the directory is always the same.

 

Any ideas how to fix this?

 

thanks and best regards


Carsten

Who agreed with this topic