Help Center/ MapReduce Service/ Developer Guide (Normal_3.x)/ CQL Development Guide (Normal Mode)/ FAQ/ "Application 'example' already exist" Is Reported When a Sample Application Is Run in Windows
Updated on 2022-09-14 GMT+08:00

"Application 'example' already exist" Is Reported When a Sample Application Is Run in Windows

Symptom

When a sample application is run in Windows, an error message similar to the following is displayed in the run log:

Exception in thread "main" com.huawei.streaming.cql.exception.ExecutorException: ERROR CQL-03001: Application 'example' already exist.
	at com.huawei.streaming.cql.exception.ExecutorException.wrapStreamingException(ExecutorException.java:87)
	at com.huawei.streaming.cql.executor.PhysicalPlanExecutor.execute(PhysicalPlanExecutor.java:142)
	at com.huawei.streaming.cql.tasks.SubmitTask.submitApplication(SubmitTask.java:195)
	at com.huawei.streaming.cql.tasks.SubmitTask.execute(SubmitTask.java:104)
	at com.huawei.streaming.cql.Driver.executeTask(Driver.java:217)
	at com.huawei.streaming.cql.Driver.run(Driver.java:144)
	at com.huawei.streaming.example.cql.CQLExample.executeCQL(CQLExample.java:55)
	at com.huawei.streaming.example.cql.CQLExample.execute(CQLExample.java:41)
	at com.huawei.streaming.example.cql.CQLExample.main(CQLExample.java:21)

Possible Causes

The example task has been submitted. If you run the sample application again, the task will be repeatedly submitted. To prevent repeated task submission, this error is reported.

Procedure

  1. Log in to FusionInsight Manager.
  2. Log in to FusionInsight Manager, choose Cluster > Name of the desired cluster > Service > Storm, and click the link of Storm UI.
  3. On Storm UI, click the example application.

  4. Click Kill under Topology actions, click OK as prompted, and wait until the application stops running.

  5. After the example task is complete, wait for about 5 minutes and run the sample application in Windows again.