Problem from nginx-proxy/nginx-proxy#59, you cannot setup multiple backend for one container.
The solution here, is to use socat as an HTTP proxy.
My use case is "I setup a Apache Spark cluster, I want to access to web UI of master and worker".
| namespace App\Core\Utils\Services; | |
| use Symfony\Component\Translation\Exception\InvalidArgumentException; | |
| use Symfony\Component\Translation\TranslatorInterface; | |
| trait TranslatorAwareTrait | |
| { | |
| /** | |
| * @var TranslatorInterface | |
| */ |
| <?php | |
| namespace App\Core\Form\Type; | |
| use Symfony\Component\Form\CallbackTransformer; | |
| use Symfony\Component\Form\Extension\Core\DataTransformer\ArrayToPartsTransformer; | |
| use Symfony\Component\Form\Extension\Core\DataTransformer\DataTransformerChain; | |
| use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToArrayTransformer; | |
| use Symfony\Component\Form\Extension\Core\Type\TextType; |
Problem from nginx-proxy/nginx-proxy#59, you cannot setup multiple backend for one container.
The solution here, is to use socat as an HTTP proxy.
My use case is "I setup a Apache Spark cluster, I want to access to web UI of master and worker".
| { | |
| "source" : { | |
| "size": 0, | |
| "query": { | |
| "query_string": { | |
| "query": "@timestamp:[{{start_date}}:00+02:00 TO {{end_date}}:59+02:00] AND data.attributes.master:false" | |
| } | |
| }, | |
| "aggs": { | |
| "nodes": { |
| [pid 219] accept(41, {sa_family=AF_INET, sin_port=htons(45182), sin_addr=inet_addr("192.168.160.1")}, [16]) = 43 | |
| [pid 219] sendto(32, "\0", 1, 0, NULL, 0) = 1 | |
| [pid 273] recvfrom(31, "\0", 1, 0, NULL, NULL) = 1 | |
| [pid 273] recvfrom(43, "\200\r\0\6\0\0\0\0\0\0\0\6\0\1\0\0\0\0\0\0\0\0\0\0test_1\200\n\0\0\0\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\0\0\0", 2048, 0, NULL, NULL) = 54 | |
| [pid 273] socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 51 | |
| [pid 273] connect(51, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.11")}, 16) = 0 | |
| [pid 273] sendmmsg(51, {{{msg_name(0)=NULL, msg_iov(1)=[{"\240o\1\0\0\1\0\0\0\0\0\0\7server3\3poc\0\0\1\0\1", 29}], msg_controllen=0, msg_flags=0}, 29}, {{msg_name(0)=NULL, msg_iov(1)=[{"\274\345\1\0\0\1\0\0\0\0\0\0\7server3\3poc\0\0\34\0\1", 29}], msg_controllen=0, msg_flags=0}, 29}}, 2, MSG_NOSIGNAL) = 2 | |
| [pid 273] recvfrom(51, "\274\345\201\200\0\1\0\0\0\0\0\0\7server3\3poc\0\0\34\0\1", 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127. |
| package com.qwant.datahub.djobi.test; | |
| import org.json.JSONArray; | |
| import org.json.JSONObject; | |
| import org.mockserver.client.server.MockServerClient; | |
| import org.mockserver.model.HttpRequest; | |
| import org.mockserver.model.HttpResponse; | |
| import org.mockserver.verify.VerificationTimes; | |
| import java.util.ArrayList; |
| Scenario: send JSON to Kafka with Spark | |
| Given kafka topic | |
| When I run pipeline "output_kafka_spark.yml" | |
| Then I must see 3 messages from kafka |
| public void setLength(int newLength) { | |
| if (newLength < 0) | |
| throw new StringIndexOutOfBoundsException(newLength); | |
| ensureCapacityInternal(newLength); | |
| if (count < newLength) { | |
| Arrays.fill(value, count, newLength, '\0'); | |
| } | |
| count = newLength; |
Will stick vertically element with class "sticky-item".
Usage is for Table > sticky cells, so this code check element left to create sticky groups.
| plugins { | |
| ... | |
| id "org.ajoberstar.grgit" version "3.0.0" | |
| } | |
| task createReleaseReportFile() { | |
| doLast { | |
| file("$projectDir/src/main/resources/release_note.properties").text = """## Automated generated by Gradle ## |