You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/03/15 09:53:10 UTC

camel git commit: Use Hazelcast-Kubernetes 3.8 image in camel-hazelcast-kubernetes example

Repository: camel
Updated Branches:
  refs/heads/master c35ea314d -> 500da4886


Use Hazelcast-Kubernetes 3.8 image in camel-hazelcast-kubernetes example


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/500da488
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/500da488
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/500da488

Branch: refs/heads/master
Commit: 500da4886590ed78337c47c10da7046095a559dd
Parents: c35ea31
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Mar 15 10:49:22 2017 +0100
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Mar 15 10:50:39 2017 +0100

----------------------------------------------------------------------
 .../ReadMe.md                                   | 58 ++++++++++----------
 .../resources/fabric8/hazelcast-deployment.yaml |  2 +-
 2 files changed, 30 insertions(+), 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/500da488/examples/camel-example-hazelcast-kubernetes/ReadMe.md
----------------------------------------------------------------------
diff --git a/examples/camel-example-hazelcast-kubernetes/ReadMe.md b/examples/camel-example-hazelcast-kubernetes/ReadMe.md
index a9c6dfe..0f6c893 100644
--- a/examples/camel-example-hazelcast-kubernetes/ReadMe.md
+++ b/examples/camel-example-hazelcast-kubernetes/ReadMe.md
@@ -45,44 +45,44 @@ and again check the status of your pods
 
 ```
 kubectl get pods
-NAME                                        READY     STATUS             RESTARTS   AGE
-hazelcast-3980717115-n1snd                  1/1       Running            0          9s
-hazelcast-3980717115-x730g                  1/1       Running            0          3m
+NAME                                           READY     STATUS    RESTARTS   AGE
+hazelcast-4195412960-0tl3w                     1/1       Running   0          7s
+hazelcast-4195412960-mgqtk                     1/1       Running   0          2m
 ```
 
 You can also take a look at the logs from the pods:
 
 ```
 kubectl logs hazelcast-3980717115-n1snd
-2017-03-10 09:57:20.204  INFO 7 --- [           main] com.github.pires.hazelcast.Application   : Starting Application on hazelcast-3980717115-n1snd with PID 7 (/bootstrapper.jar started by root in /)
-2017-03-10 09:57:20.211  INFO 7 --- [           main] com.github.pires.hazelcast.Application   : No active profile set, falling back to default profiles: default
-2017-03-10 09:57:20.283  INFO 7 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@14514713: startup date [Fri Mar 10 09:57:20 GMT 2017]; root of context hierarchy
-2017-03-10 09:57:21.005  INFO 7 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
-2017-03-10 09:57:21.013  INFO 7 --- [           main] c.g.p.h.HazelcastDiscoveryController     : Asking k8s registry at https://kubernetes.default.svc.cluster.local..
-2017-03-10 09:57:21.428  INFO 7 --- [           main] c.g.p.h.HazelcastDiscoveryController     : Found 2 pods running Hazelcast.
-2017-03-10 09:57:21.476  INFO 7 --- [           main] c.h.instance.DefaultAddressPicker        : [LOCAL] [someGroup] [3.7.5] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [172.17.0.4, 172.17.0.5]
-2017-03-10 09:57:21.476  INFO 7 --- [           main] c.h.instance.DefaultAddressPicker        : [LOCAL] [someGroup] [3.7.5] Prefer IPv4 stack is true.
-2017-03-10 09:57:21.481  INFO 7 --- [           main] c.h.instance.DefaultAddressPicker        : [LOCAL] [someGroup] [3.7.5] Picked [172.17.0.5]:5701, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=5701], bind any local is true
-2017-03-10 09:57:21.497  INFO 7 --- [           main] com.hazelcast.system                     : [172.17.0.5]:5701 [someGroup] [3.7.5] Hazelcast 3.7.5 (20170124 - 111f332) starting at [172.17.0.5]:5701
-2017-03-10 09:57:21.497  INFO 7 --- [           main] com.hazelcast.system                     : [172.17.0.5]:5701 [someGroup] [3.7.5] Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
-2017-03-10 09:57:21.497  INFO 7 --- [           main] com.hazelcast.system                     : [172.17.0.5]:5701 [someGroup] [3.7.5] Configured Hazelcast Serialization version : 1
-2017-03-10 09:57:21.623  INFO 7 --- [           main] c.h.s.i.o.impl.BackpressureRegulator     : [172.17.0.5]:5701 [someGroup] [3.7.5] Backpressure is disabled
-2017-03-10 09:57:21.977  INFO 7 --- [           main] com.hazelcast.instance.Node              : [172.17.0.5]:5701 [someGroup] [3.7.5] Creating TcpIpJoiner
-2017-03-10 09:57:22.106  INFO 7 --- [           main] c.h.s.i.o.impl.OperationExecutorImpl     : [172.17.0.5]:5701 [someGroup] [3.7.5] Starting 2 partition threads
-2017-03-10 09:57:22.108  INFO 7 --- [           main] c.h.s.i.o.impl.OperationExecutorImpl     : [172.17.0.5]:5701 [someGroup] [3.7.5] Starting 3 generic threads (1 dedicated for priority tasks)
-2017-03-10 09:57:22.119  INFO 7 --- [           main] com.hazelcast.core.LifecycleService      : [172.17.0.5]:5701 [someGroup] [3.7.5] [172.17.0.5]:5701 is STARTING
-2017-03-10 09:57:22.120  INFO 7 --- [           main] c.h.n.t.n.NonBlockingIOThreadingModel    : [172.17.0.5]:5701 [someGroup] [3.7.5] TcpIpConnectionManager configured with Non Blocking IO-threading model: 3 input threads and 3 output threads
-2017-03-10 09:57:22.142  INFO 7 --- [cached.thread-3] c.hazelcast.nio.tcp.InitConnectionTask   : [172.17.0.5]:5701 [someGroup] [3.7.5] Connecting to /172.17.0.4:5701, timeout: 0, bind-any: true
-2017-03-10 09:57:22.151  INFO 7 --- [cached.thread-3] c.h.nio.tcp.TcpIpConnectionManager       : [172.17.0.5]:5701 [someGroup] [3.7.5] Established socket connection between /172.17.0.5:45191 and /172.17.0.4:5701
-2017-03-10 09:57:29.164  INFO 7 --- [ration.thread-0] c.h.internal.cluster.ClusterService      : [172.17.0.5]:5701 [someGroup] [3.7.5] 
+2017-03-15 09:42:45.046  INFO 7 --- [           main] com.github.pires.hazelcast.Application   : Starting Application on hazelcast-4195412960-0tl3w with PID 7 (/bootstrapper.jar started by root in /)
+2017-03-15 09:42:45.060  INFO 7 --- [           main] com.github.pires.hazelcast.Application   : No active profile set, falling back to default profiles: default
+2017-03-15 09:42:45.128  INFO 7 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@14514713: startup date [Wed Mar 15 09:42:45 GMT 2017]; root of context hierarchy
+2017-03-15 09:42:45.989  INFO 7 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
+2017-03-15 09:42:46.001  INFO 7 --- [           main] c.g.p.h.HazelcastDiscoveryController     : Asking k8s registry at https://kubernetes.default.svc.cluster.local..
+2017-03-15 09:42:46.376  INFO 7 --- [           main] c.g.p.h.HazelcastDiscoveryController     : Found 2 pods running Hazelcast.
+2017-03-15 09:42:46.458  INFO 7 --- [           main] c.h.instance.DefaultAddressPicker        : [LOCAL] [someGroup] [3.8] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [172.17.0.6, 172.17.0.2]
+2017-03-15 09:42:46.458  INFO 7 --- [           main] c.h.instance.DefaultAddressPicker        : [LOCAL] [someGroup] [3.8] Prefer IPv4 stack is true.
+2017-03-15 09:42:46.464  INFO 7 --- [           main] c.h.instance.DefaultAddressPicker        : [LOCAL] [someGroup] [3.8] Picked [172.17.0.6]:5701, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=5701], bind any local is true
+2017-03-15 09:42:46.484  INFO 7 --- [           main] com.hazelcast.system                     : [172.17.0.6]:5701 [someGroup] [3.8] Hazelcast 3.8 (20170217 - d7998b4) starting at [172.17.0.6]:5701
+2017-03-15 09:42:46.484  INFO 7 --- [           main] com.hazelcast.system                     : [172.17.0.6]:5701 [someGroup] [3.8] Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
+2017-03-15 09:42:46.485  INFO 7 --- [           main] com.hazelcast.system                     : [172.17.0.6]:5701 [someGroup] [3.8] Configured Hazelcast Serialization version : 1
+2017-03-15 09:42:46.679  INFO 7 --- [           main] c.h.s.i.o.impl.BackpressureRegulator     : [172.17.0.6]:5701 [someGroup] [3.8] Backpressure is disabled
+2017-03-15 09:42:47.069  INFO 7 --- [           main] com.hazelcast.instance.Node              : [172.17.0.6]:5701 [someGroup] [3.8] Creating TcpIpJoiner
+2017-03-15 09:42:47.182  INFO 7 --- [           main] c.h.s.i.o.impl.OperationExecutorImpl     : [172.17.0.6]:5701 [someGroup] [3.8] Starting 2 partition threads
+2017-03-15 09:42:47.189  INFO 7 --- [           main] c.h.s.i.o.impl.OperationExecutorImpl     : [172.17.0.6]:5701 [someGroup] [3.8] Starting 3 generic threads (1 dedicated for priority tasks)
+2017-03-15 09:42:47.197  INFO 7 --- [           main] com.hazelcast.core.LifecycleService      : [172.17.0.6]:5701 [someGroup] [3.8] [172.17.0.6]:5701 is STARTING
+2017-03-15 09:42:47.253  INFO 7 --- [cached.thread-3] c.hazelcast.nio.tcp.InitConnectionTask   : [172.17.0.6]:5701 [someGroup] [3.8] Connecting to /172.17.0.2:5701, timeout: 0, bind-any: true
+2017-03-15 09:42:47.262  INFO 7 --- [cached.thread-3] c.h.nio.tcp.TcpIpConnectionManager       : [172.17.0.6]:5701 [someGroup] [3.8] Established socket connection between /172.17.0.6:58073 and /172.17.0.2:5701
+2017-03-15 09:42:54.260  INFO 7 --- [ration.thread-0] com.hazelcast.system                     : [172.17.0.6]:5701 [someGroup] [3.8] Cluster version set to 3.8
+2017-03-15 09:42:54.262  INFO 7 --- [ration.thread-0] c.h.internal.cluster.ClusterService      : [172.17.0.6]:5701 [someGroup] [3.8] 
 
 Members [2] {
-	Member [172.17.0.4]:5701 - efef1987-16aa-4bdf-b178-274047d08ae0
-	Member [172.17.0.5]:5701 - ed6192b3-ef76-46df-b642-68d34aea4461 this
+	Member [172.17.0.2]:5701 - 170f6924-7888-442a-9875-ad4d25659a8a
+	Member [172.17.0.6]:5701 - b1b82bfa-86c2-4931-af57-325c10c03b3b this
 }
 
-2017-03-10 09:57:31.173  INFO 7 --- [           main] com.hazelcast.core.LifecycleService      : [172.17.0.5]:5701 [someGroup] [3.7.5] [172.17.0.5]:5701 is STARTED
-2017-03-10 09:57:31.180  INFO 7 --- [           main] com.github.pires.hazelcast.Application   : Started Application in 11.411 seconds (JVM running for 11.908)
+2017-03-15 09:42:56.285  INFO 7 --- [           main] com.hazelcast.core.LifecycleService      : [172.17.0.6]:5701 [someGroup] [3.8] [172.17.0.6]:5701 is STARTED
+2017-03-15 09:42:56.287  INFO 7 --- [           main] com.github.pires.hazelcast.Application   : Started Application in 11.831 seconds (JVM running for 12.219)
 ```
 
 ### Building and running
@@ -115,7 +115,7 @@ INFO: hz.client_0 [someGroup] [3.8] HazelcastClient 3.8 (20170217 - d7998b4) is
 2017-03-10 10:05:24,116 [main           ] INFO  SpringCamelContext             - Total 2 routes, of which 2 are started.
 2017-03-10 10:05:24,119 [main           ] INFO  SpringCamelContext             - Apache Camel 2.19.0-SNAPSHOT (CamelContext: camel-1) started in 0.265 seconds
 Mar 10, 2017 10:05:24 AM com.hazelcast.client.connection.ClientConnectionManager
-INFO: hz.client_0 [someGroup] [3.8] Authenticated with server [172.17.0.4]:5701, server version:3.7.5 Local address: /172.17.0.7:46948
+INFO: hz.client_0 [someGroup] [3.8] Authenticated with server [172.17.0.4]:5701, server version:3.8 Local address: /172.17.0.7:46948
 2017-03-10 10:05:25,125 [0 - timer://foo] INFO  route1                         - Producer side: Sending data to Hazelcast topic..
 2017-03-10 10:05:25,139 [lient_0.event-3] INFO  route2                         - Consumer side: Detected following action: received
 2017-03-10 10:05:30,120 [0 - timer://foo] INFO  route1                         - Producer side: Sending data to Hazelcast topic..

http://git-wip-us.apache.org/repos/asf/camel/blob/500da488/examples/camel-example-hazelcast-kubernetes/src/main/resources/fabric8/hazelcast-deployment.yaml
----------------------------------------------------------------------
diff --git a/examples/camel-example-hazelcast-kubernetes/src/main/resources/fabric8/hazelcast-deployment.yaml b/examples/camel-example-hazelcast-kubernetes/src/main/resources/fabric8/hazelcast-deployment.yaml
index e14cbbe..aa1a9ab 100644
--- a/examples/camel-example-hazelcast-kubernetes/src/main/resources/fabric8/hazelcast-deployment.yaml
+++ b/examples/camel-example-hazelcast-kubernetes/src/main/resources/fabric8/hazelcast-deployment.yaml
@@ -12,7 +12,7 @@ spec:
     spec: 
       containers: 
       - name: hazelcast
-        image: quay.io/pires/hazelcast-kubernetes:0.8.0
+        image: quay.io/pires/hazelcast-kubernetes:3.8
         imagePullPolicy: Always
         env:
         - name: "DNS_DOMAIN"