Skip to content

Instantly share code, notes, and snippets.

@ishuverma
Created February 6, 2018 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishuverma/6cb8bb23aa40a86fcac06a61ead72bd3 to your computer and use it in GitHub Desktop.
Save ishuverma/6cb8bb23aa40a86fcac06a61ead72bd3 to your computer and use it in GitHub Desktop.
[root@master bridge]# mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Red Hat IoT :: Cloudera Demo :: MQTT to Kafka Bridge 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mqtt-kafka-bridge ---
[INFO] Deleting /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mqtt-kafka-bridge ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.17:resource (default) @ mqtt-kafka-bridge ---
[INFO] F8: Running in OpenShift mode
[INFO] F8: Using docker image name of namespace: eclipse-kapua
[INFO] F8: Running generator spring-boot
[INFO] F8: spring-boot: Using Docker image fabric8/java-jboss-openjdk8-jdk:1.2 as base / builder
[INFO] F8: Using resource templates from /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/src/main/fabric8
[INFO] F8: fmp-service: Adding a default service 'mqtt-kafka-bridge' with ports [8080]
[INFO] F8: spring-boot-health-check: Adding readiness probe on port 8081, path='/health', scheme='HTTP', with initial delay 10 seconds
[INFO] F8: spring-boot-health-check: Adding liveness probe on port 8081, path='/health', scheme='HTTP', with initial delay 180 seconds
[INFO] F8: f8-icon: Adding icon for deployment
[INFO] F8: f8-icon: Adding icon for service
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ mqtt-kafka-bridge ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mqtt-kafka-bridge ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ mqtt-kafka-bridge ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ mqtt-kafka-bridge ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mqtt-kafka-bridge ---
[INFO] Building jar: /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/target/mqtt-kafka-bridge-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.4.RELEASE:repackage (default) @ mqtt-kafka-bridge ---
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.17:build (default) @ mqtt-kafka-bridge ---
[INFO] F8: Using OpenShift build with strategy S2I
[INFO] F8: Running generator spring-boot
[INFO] F8: spring-boot: Using Docker image fabric8/s2i-java:2.0 as base / builder
[INFO] Copying files to /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/target/docker/mqtt-kafka-bridge/latest/build/maven
[INFO] Building tar: /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/target/docker/mqtt-kafka-bridge/latest/tmp/docker-build.tar
[INFO] F8: [mqtt-kafka-bridge:latest] "spring-boot": Created docker source tar /root/kapua/dev-tools/src/main/openshift/cloudera-iot-demo/bridge/target/docker/mqtt-kafka-bridge/latest/tmp/docker-build.tar
[INFO] F8: Using BuildServiceConfig mqtt-kafka-bridge-s2i for Source strategy
[INFO] F8: Adding to ImageStream mqtt-kafka-bridge
[INFO] F8: Starting Build mqtt-kafka-bridge-s2i
[INFO] F8: Waiting for build mqtt-kafka-bridge-s2i-2 to complete...
[INFO] F8: Receiving source from STDIN as archive ...
[INFO] F8: ==================================================================
[INFO] F8: Starting S2I Java Build .....
[INFO] F8: S2I binary build from fabric8-maven-plugin detected
[INFO] F8: Copying binaries from /tmp/src/maven to /deployments ...
[INFO] F8: Checking for SpringBoot archive...
[INFO] F8: Found mqtt-kafka-bridge-1.0-SNAPSHOT.jar...
[INFO] F8: ... done
[INFO] F8: Pushing image docker-registry.default.svc:5000/eclipse-kapua/mqtt-kafka-bridge:latest ...
[INFO] F8: Registry server Address:
[INFO] F8: Registry server User Name: serviceaccount
[INFO] F8: Registry server Email: serviceaccount@example.org
[INFO] F8: Registry server Password: <<non-empty>>
[INFO] F8: error: build error: Failed to push image: Get https://docker-registry.default.svc:5000/v1/_ping: dial tcp: lookup docker-registry.default.svc on 192.168.122.155:53: no such host
[INFO] Current reconnect backoff is 1000 milliseconds (T0)
[ERROR] F8: Failed to execute the build [Unable to build the image using the OpenShift build service]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.871 s
[INFO] Finished at: 2018-02-05T20:45:50-05:00
[INFO] Final Memory: 58M/541M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.17:build (default) on project mqtt-kafka-bridge: Failed to execute the build: Unable to build the image using the OpenShift build service: OpenShift Build mqtt-kafka-bridge-s2i-2: Failed: PushImageToRegistryFailed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[WARNING] Ignoring error for already closed/closing connection
Feb 05, 2018 8:45:50 PM okhttp3.internal.platform.Platform log
WARNING: A connection to https://master:8443/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
[root@master bridge]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment