Eagle Test Custom Application error problems and solutions

Error 1: Install EXAMPLE_APPLICATION error

{"success":false,"message":"Illegal Application Type: 
EXAMPLE_APPLICATION","exception":"javax.ws.rs.WebApplicationException:
 java.lang.IllegalArgumentException: Illegal Application Type: EXAMPLE_APPLICATION

The problem solved by the following methods:
1, under the eagle-topology-assembly file in eagle project folder, src / resources / services / org.apache.eagle.app.spi.ApplicationProvider add a custom in this file Application of the Provider class, e.g.

## Example
org.apache.eagle.app.example.ExampleApplicationProvider

2, after compiling redeploy again, ExampleApplication the page will have a custom

 

Error 2: Add the Example Application error message:

Neither stream specific topic: dataSinkConfig.SAMPLE_STREAM_1.topic nor default shared topic: dataSinkConfig.topic found in config

The problem solved by the following methods:
1, modify the file org.apache.eagle.app.example.ExampleApplicationProvider.xml

 <property>
            <name>dataSinkConfig.SAMPLE_STREAM_1.topic</name>
            <displayName>Destination(Kafka Topic) Of App Stream Data</displayName>
            <value>${siteId}_example_source_topic</value>
            <description>topic for kafka data sink</description>
            <required>true</required>
        </property>
		<property>
            <name>dataSinkConfig.SAMPLE_STREAM_2.topic</name>
            <displayName>Destination(Kafka Topic) Of App Stream Data</displayName>
            <value>${siteId}_example_source_topic</value>
            <description>topic for kafka data sink</description>
            <required>true</required>
        </property>

2, a new error report

No configuration setting found for key 'dataSinkConfig.brokerList'

3, modify the configuration file org.apache.eagle.app.example.ExampleApplicationProvider.xml

<property>
            <name>dataSinkConfig.brokerList</name>
            <displayName>Broker(Kafka) List Of Stream Data</displayName>
            <value>localhost:6667</value>
            <description>kafka broker list for stream data</description>
            <required>true</required>
        </property>

4, after the increase in the content of the configuration file, the above error message is gone, app also installed successfully, but can not start, can not afford to be deleted, the error message is as follows:

com.google.inject.ConfigurationException: Guice configuration errors:
1) No implementation for org.apache.eagle.app.example.extensions.ExampleEntityService was bound.

1, the above problems by looking at the code, commented after ExampleApplicationProvider class to solve the code below:

//@Inject ExampleEntityService entityService;
@Override
public void init(ApplicationEntity applicationEntity) {
    this.application = applicationEntity;
    //entityService.getEntities();
}

2, through the changes, you can uninstall, but the start was given:

ERROR [2017-09-07 00:58:45,044] org.apache.eagle.app.service.impl.ApplicationManagementServiceImpl: Failed to start app EXAMPLE_APPLICATION_TEST_SITE
ERROR [2017-09-07 00:58:45,044] org.apache.eagle.common.rest.RESTResponse: Exception: No configuration setting found for key 'spoutNum'

3, by modifying the configuration file org.apache.eagle.app.example.ExampleApplicationProvider.xml resolve, but also successful start Application

 <property>
            <name>spoutNum</name>
            <displayName>Topology Spout Tasks</displayName>
            <value>2</value>
            <description>number of spout tasks</description>
        </property>

 

Guess you like

Origin blog.csdn.net/zwahut/article/details/90603307
Recommended