Skip to content

Instantly share code, notes, and snippets.

version: '3.7'
services:
postgres:
image: postgres
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
- POSTGRES_DB=ttn_lorawan
volumes:
is:
email:
sender-name: The Things Stack
sender-address: noreply@localhost
network:
name: The Things Stack
console-url: 'https://thethings.centralus.cloudapp.azure.com/console'
identity-server-url: 'https://thethings.centralus.cloudapp.azure.com/oauth'
oauth:
ui:
{
"swagger": "2.0",
"info": {
"title": "Safer Place Autotel",
"version": "1.0"
},
"paths": {
"/parkingstatus": {
"post": {
"summary": "Update Parking status",
openapi: '3.0.2'
info:
title: Safer Place Autotel
version: '1.0'
servers:
- url: https://integapi.tlv.gov.il/v1/
paths:
/parkingstatus:
post:
summary: Update Parking status
@miko-code
miko-code / faild_jm.log
Created June 4, 2018 10:25
faild_jm.log
2018-06-04 05:20:56,984 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - --------------------------------------------------------------------------------
2018-06-04 05:20:56,985 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - Starting StandaloneSessionClusterEntrypoint (Version: 1.5.0, Rev:c61b108, Date:24.05.2018 @ 14:54:44 UTC)
2018-06-04 05:20:56,985 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - OS current user: beam1
2018-06-04 05:20:57,041 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory - field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginSuccess with annotation @org.apache.hadoop.metrics2.annotation.Metric(about=, sampleName=Ops, always=false, type=DEFAULT, valueName=Time, value=[Rate of successful kerberos logins and latency (milliseconds)])
2018-06-04 05:20:57,049 DEBUG org.apache.hadoop.metrics2.lib.MutableMetricsFactory - field org.apache.had
2018-05-31 11:56:22,953 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - --------------------------------------------------------------------------------
2018-05-31 11:56:22,954 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - Starting StandaloneSessionClusterEntrypoint (Version: 1.5.0, Rev:c61b108, Date:24.05.2018 @ 14:54:44 UTC)
2018-05-31 11:56:22,954 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - OS current user: beam1
2018-05-31 11:56:23,382 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2018-05-31 11:56:23,448 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - Current Hadoop/Kerberos user: beam1
2018-05-31 11:56:23,448 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint - JVM: OpenJDK 64-Bit Server VM - Oracle Corporation - 1.8/25.171-b11
2018-05-31 11:56:23,448 INFO org.apache
@miko-code
miko-code / GetEventDetails.java
Last active May 15, 2018 14:41
ProcessFunction with state
package org.tlv.integration;
import org.apache.commons.dbutils.*;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.flink.api.common.state.MapState;
import org.apache.flink.api.common.state.MapStateDescriptor;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.streaming.api.functions.ProcessFunction;
import org.apache.flink.streaming.api.functions.async.ResultFuture;
@miko-code
miko-code / flink.log
Created April 25, 2018 08:43
flink.log
@miko-code
miko-code / tm.log
Created April 8, 2018 09:12
task manager log
=========================== Starting metrics report ===========================
-- Counters -------------------------------------------------------------------
beam2.taskmanager.41377b81d8cd831da3e380ed59696801.Flink Streaming esb correlate msg.Source: Custom Source.0.numBytesInRemote: 0
beam2.taskmanager.41377b81d8cd831da3e380ed59696801.Flink Streaming esb correlate msg.TriggerWindow(GlobalWindows(), ListStateDescriptor{serializer=org.apache.flink.a.0.numRecordsIn: 1590
beam2.taskmanager.41377b81d8cd831da3e380ed59696801.Flink Streaming esb correlate msg.TriggerWindow(GlobalWindows(), ListStateDescriptor{serializer=org.apache.flink.api.common.typeutils.base.ListSerializer@15b09c51}, org.tlv.esb.EsbElk$EventTrigger@2e062ce6, org.tlv.esb.EsbElk$EsbTraceEvictor@56bd6f84, WindowedStream.apply(WindowedStream.java:1061)) -> Sink: Unnamed.0.numBytesInRemote: 0
beam2.taskmanager.41377b81d8cd831da3e380ed59696801.Flink Streaming esb correlate msg.Source: Custom Source.0.numRecordsOut: 1590
beam2.taskmanager.41377b81d8
@miko-code
miko-code / StreamingJob.java
Last active April 24, 2018 15:02
flink window
package org.tlv.esb;
import org.apache.flink.api.common.functions.RuntimeContext;
import org.apache.flink.api.common.restartstrategy.RestartStrategies;
import org.apache.flink.api.common.time.Time;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator;
import org.apache.flink.streaming.api.environment.StreamContextEnvironment;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;