Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Event Server Index Upgrade Fails

Event Server Index Upgrade Fails

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

1 REPLY 1
Highlighted

Re: Event Server Index Upgrade Fails

Explorer

Which Directory are you remove?

 

# Backup Event Server Index Directory:

cp -ra /var/lib/cloudera-scm-eventserver /var/lib/cloudera-scm-eventserver_backup

 

# Remove all Event Server Index Directory Content:

rm -fr /var/lib/cloudera-scm-eventserver/*

 

# Restart Event Server Role

It should work.

Don't have an account?
Coming from Hortonworks? Activate your account here