GitHub user liuxiaocs7 edited a comment on the discussion: Impl my first data 
processor question

> Hi @liuxiaocs7 thanks for the detailed description of your problem! I'll be 
> glad to help.
> 
> Which version of StreamPipes are you running in the CLI (it seems to be dev?) 
> and which version is listed in the POM file of your generated project?

@dominikriemer Thanks for your help.

StreamPipes running in the CLI is the lastest dev version(just clone the 
repository from github):

```shell
liuxiaocs@LAPTOP-78ELKTKJ MINGW64 /d/Development/Code/Repository/streampipes 
(dev)
$ streampipes --version
fatal: not a git repository: 
'D:/Development/Code/Repository/streampipes/installer/.git'
0.92.0-SNAPSHOT, build
```

> BTW, why `--version` will check whether it is a git repository? 

As for the build project version, i just refer this 
[doc](https://streampipes.apache.org/docs/docs/extend-archetypes.html#create-project)
 to use `0.69.0`

> `Make sure that you select a version compatible with your StreamPipes 
> installation` I don't quite understand the compatibility implications here.

```shell
mvn archetype:generate                                           \
  -DarchetypeGroupId=org.apache.streampipes                              \
  -DarchetypeArtifactId=streampipes-archetype-extensions-jvm  \
  -DarchetypeVersion=0.69.0
```

---


Considering that it may be a version problem, I also tried to use lastest 
verion `0.92.0-SNAPSHOT` to generate before, but still it fails and the error 
is not the same, the process is as follows

```shell
mvn archetype:generate \
-DarchetypeGroupId=org.apache.streampipes \
-DarchetypeArtifactId=streampipes-archetype-extensions-jvm \
-DarchetypeVersion=0.92.0-SNAPSHOT
```

But there seems to be something wrong with the template.

![image](https://user-images.githubusercontent.com/42756849/225983155-bc3cc716-ae09-4c9c-91c4-b6423b0b15e4.png)

Maybe the template is not updated in time, (if this is indeed a problem, I can 
submit a PR to fix it)

![image](https://user-images.githubusercontent.com/42756849/225983251-8d1ef736-bfad-462d-ba69-d88e054b114b.png)

After I manually modify the package path of the generated project as below:

```
import org.apache.streampipes.service.extensions.ExtensionsModelSubmitter;
import org.apache.streampipes.extensions.management.model.SpServiceDefinition;
import 
org.apache.streampipes.extensions.management.model.SpServiceDefinitionBuilder;
```

seems to be missing logging dependency

![image](https://user-images.githubusercontent.com/42756849/225984097-0d88cd62-3e1d-4b44-a3f8-06afc728571a.png)

After add the dependency to POM, the log shows.

```pom
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.25</version>
    <scope>compile</scope>
</dependency>
```

But the result still seems to be unable to find consul.

```shell
[main] INFO org.apache.streampipes.commons.networking.Networking - Using 
auto-discovered IP: 192.168.32.1
[main] INFO org.apache.streampipes.commons.networking.Networking - Using 
default port: 8090
[main] INFO 
org.apache.streampipes.extensions.management.init.DeclarersSingleton - 
Registering 0 configs in key/value store
[main] INFO org.apache.streampipes.svcdiscovery.consul.ConsulProvider - 
Checking if consul is available on host consul and port 8500
[main] INFO org.apache.streampipes.svcdiscovery.consul.ConsulProvider - Could 
not connect to Consul instance...
[main] INFO org.apache.streampipes.svcdiscovery.consul.ConsulProvider - 
Retrying in 1 second
[main] INFO org.apache.streampipes.svcdiscovery.consul.ConsulProvider - 
Checking if consul is available on host consul and port 8500
[main] INFO org.apache.streampipes.svcdiscovery.consul.ConsulProvider - Could 
not connect to Consul instance...
[main] INFO org.apache.streampipes.svcdiscovery.consul.ConsulProvider - 
Retrying in 1 second
```

I access consul's web-ui through the browser and everything seems to be fine.

![image](https://user-images.githubusercontent.com/42756849/225985758-f2fa6991-8a02-4202-a787-59f831016c62.png)

These are some of the phenomena I have observed so far. If there are any 
unclear or wrong descriptions, please let me know, thank you




GitHub link: 
https://github.com/apache/streampipes/discussions/1422#discussioncomment-5348807

----
This is an automatically sent email for dev@streampipes.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@streampipes.apache.org

Reply via email to