spring-cloud-samples / brewery Goto Github PK
View Code? Open in Web Editor NEWBrewing beer with Spring Cloud has never been that easy...
License: Apache License 2.0
Brewing beer with Spring Cloud has never been that easy...
License: Apache License 2.0
I'd like to use brewery as a load producer on an existing zipkin setup. For simplicitly, it could be localhost, but anyway would be nice if there's a way to opt-out of brewery starting a zipkin.
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.sleuth.Tracer] found for dependency [org.springframework.cloud.sleuth.Tracer]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1406) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1057) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1019) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
... 17 common frames omitted
I just cloned the repo and ran ./runAcceptanceTests.sh -x within the brewery directory and I got ๐
> Task :common:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:compileJava'.
> Could not resolve all files for configuration ':common:compileClasspath'.
> Could not find spring-boot-2.3.0.BUILD-SNAPSHOT.jar (org.springframework.boot:spring-boot:2.3.0.BUILD-SNAPSHOT:20200406.215655-501).
Searched in the following locations:
https://repo.spring.io/snapshot/org/springframework/boot/spring-boot/2.3.0.BUILD-SNAPSHOT/spring-boot-2.3.0.BUILD-20200406.215655-501.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 46s
what would be wrong ?
Where config server is found via eureka, rather than the other way around.
Depends on #2
there is runAcceptanceTests.sh
in root
and there is script in acceptance tests - actually the main one.
It should be the other way round most likely. Anyways it has to be cleared
We can reuse the logic from #10
Having cloned the repo and built it with gradlew clean build
I'm unable to run the acceptance tests. I have installed docker
and docker-compose
for the first time but that isn't enough to get the tests to run. Fails with
ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
bash runAcceptanceTests.sh -t SLEUTH
bash runAcceptanceTests.sh -x
all fail with the same error:
config-server/build/libs/nohup.log:
kein Hauptmanifestattribut, in config-server/build/libs/config-server-1.0.0-plain.jar
-> googling the error finds that the main class is missing from the manifest in config-server-1.0.0-plain.jar?
Log:
Booting up RabbitMQ
Starting brewery_rabbitmq_1 ... done
Waiting for RabbitMQ to boot for [350] seconds
Connection to 127.0.0.1 port 9672 [tcp/*] succeeded!
Waiting for Zookeeper to boot for [350] seconds
Recreating brewery_zookeeper_1 ... done
Connection to 127.0.0.1 port 2181 [tcp/eforward] succeeded!
Booting up Zipkin stuff
brewery_rabbitmq_1 is up-to-date
Starting brewery_query_1 ...
Starting brewery_query_1 ... done
Waiting for Zipkin to boot for [350] seconds
{
"status" : "UP",
"zipkin" : {
"status" : "UP",
"details" : {
"InMemoryStorage{}" : {
"status" : "UP"
}
}
}
}Waiting for the Config Server app to boot for [350] seconds
Trying to run [nohup java -Xmx128m -Xss1024k -jar config-server/build/libs/*.jar >config-server/build/libs/nohup.log &]
[config-server] process pid is [32159]
System props are []
Logs are under [build/config-server.log] or from nohup [config-server/build/libs/nohup.log]
curl: (7) Failed to connect to 127.0.0.1 port 8888 after 2 ms: Connection refused
Fail #1/70... will try again in [5] seconds
curl: (7) Failed to connect to 127.0.0.1 port 8888 after 3 ms: Connection refused
Fail #2/70... will try again in [5] seconds
During the tests write a span reporter that sends two places to the console and also to zipkin
Create the WebClient bean
I'm trying to run the apps locally but ran into this issue, it would be nice if either:
My system is an Ubuntu 14.04 LTS with java 1.8.0_66.
The result of ./gradlew clean build
:acceptance-tests:clean UP-TO-DATE
:brewing:clean UP-TO-DATE
:common:clean UP-TO-DATE
:config-server:clean UP-TO-DATE
:eureka:clean UP-TO-DATE
:presenting:clean UP-TO-DATE
:zipkin-server:clean UP-TO-DATE
:zookeeper:clean UP-TO-DATE
:zuul:clean UP-TO-DATE
:common:compileJava
Download http://repo.spring.io/snapshot/org/springframework/cloud/spring-cloud-sleuth-core/1.0.0.BUILD-SNAPSHOT/spring-cloud-sleuth-core-1.0.0.BUILD-20160112.084458-234.pom
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':common:compile'.
> Could not find org.springframework.cloud:spring-cloud-sleuth-stream:.
Required by:
io.spring.cloud.samples.brewery:common:CD-000
> Could not resolve org.springframework.cloud:spring-cloud-sleuth-core:1.0.0.BUILD-SNAPSHOT.
Required by:
io.spring.cloud.samples.brewery:common:CD-000 > org.springframework.cloud:spring-cloud-starter-sleuth:1.0.0.BUILD-SNAPSHOT
> Could not resolve org.springframework.cloud:spring-cloud-sleuth-core:1.0.0.BUILD-SNAPSHOT.
> Could not parse POM http://repo.spring.io/snapshot/org/springframework/cloud/spring-cloud-sleuth-core/1.0.0.BUILD-SNAPSHOT/spring-cloud-sleuth-core-1.0.0.BUILD-20160112.084458-234.pom
> Unable to resolve version for dependency 'org.assertj:assertj-core:jar'
> Could not resolve org.springframework.cloud:spring-cloud-netflix-core:1.1.0.BUILD-SNAPSHOT.
Required by:
io.spring.cloud.samples.brewery:common:CD-000 > org.springframework.cloud:spring-cloud-starter-hystrix:1.1.0.BUILD-SNAPSHOT
> Could not resolve org.springframework.cloud:spring-cloud-netflix-core:1.1.0.BUILD-SNAPSHOT.
> Could not parse POM http://repo.spring.io/snapshot/org/springframework/cloud/spring-cloud-netflix-core/1.1.0.BUILD-SNAPSHOT/spring-cloud-netflix-core-1.1.0.BUILD-20160112.000848-235.pom
> Unable to resolve version for dependency 'com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I have clean my gradle cache, no effect. Any ideas ?
i try to internationalize the text for zipkin web ui,but i cant strat how to do that? please help me,thanks
What is http://brewery-presenting.${PCF_DOMAIN} in README? broken link?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.