-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with leader election examples #548
Labels
kind/bug
Something isn't working
Comments
lburgazzoli
added a commit
to lburgazzoli/apache-camel-k-runtime
that referenced
this issue
Nov 10, 2020
Is it right that we have two dirs Directory content: root@master-6bfb555c7-2vmhs-debug:/etc/camel# ls
conf conf.d sources
root@master-6bfb555c7-2vmhs-debug:/etc/camel# cd conf
root@master-6bfb555c7-2vmhs-debug:/etc/camel/conf# ls
application.properties
root@master-6bfb555c7-2vmhs-debug:/etc/camel/conf# cat application.properties
camel.k.sources[0].language=java
camel.k.sources[0].location=file:/etc/camel/sources/i-source-000/Master.java
camel.k.sources[0].name=Master
root@master-6bfb555c7-2vmhs-debug:/etc/camel/conf# cd ../conf.d/
root@master-6bfb555c7-2vmhs-debug:/etc/camel/conf.d# ls
user.properties
root@master-6bfb555c7-2vmhs-debug:/etc/camel/conf.d# cat user.properties
customizer.master.enabled=true
customizer.master.configMapName=master-lock
customizer.master.labelKey=camel.apache.org/integration
customizer.master.labelValue=master
root@master-6bfb555c7-2vmhs-debug:/etc/camel/conf.d# cd ../sources/
root@master-6bfb555c7-2vmhs-debug:/etc/camel/sources# ls
i-source-000
root@master-6bfb555c7-2vmhs-debug:/etc/camel/sources# cd i-source-000/
root@master-6bfb555c7-2vmhs-debug:/etc/camel/sources/i-source-000# ls
Master.java
root@master-6bfb555c7-2vmhs-debug:/etc/camel/sources/i-source-000# cat Master.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.camel.builder.RouteBuilder;
public class Master extends RouteBuilder {
@Override
public void configure() throws Exception {
from("master:lock:timer:tick")
.setHeader("m").constant("string!")
.setBody().simple("Magic${header.m}")
.log("${body}");
}
}
|
lburgazzoli
added a commit
that referenced
this issue
Nov 10, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple java integration:
When running I get:
The text was updated successfully, but these errors were encountered: