This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pinotdb import connect | |
import pandas as pd | |
import streamlit as st | |
import numpy as np | |
import altair as alt | |
import plotly.express as px | |
st.title('SpaceX Launch Statistics') | |
st.markdown("Perform exploratory data analysis on SpaceX launch data set with Apache Pinot") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 | |
import pandas.io.sql as sqlio | |
import pandas as pd | |
import dash | |
from dash import dcc | |
from dash import html | |
import plotly.express as px | |
app = dash.Dash(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asyncapi: '2.0.0' | |
info: | |
title: Metrics Service | |
version: 1.0.0 | |
description: This service is in charge of providing health data for a computer cluster | |
servers: | |
production: | |
url: 'ws://localhost:8080' | |
protocol: ws | |
channels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H 'Content-Type: application/json' debezium:8083/connectors --data ' | |
{ | |
"name": "shipments-connector", | |
"config": { | |
"connector.class": "io.debezium.connector.postgresql.PostgresConnector", | |
"plugin.name": "pgoutput", | |
"database.hostname": "postgres", | |
"database.port": "5432", | |
"database.user": "postgresuser", | |
"database.password": "postgrespw", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
postgres: | |
image: debezium/postgres:13 | |
ports: | |
- 5432:5432 | |
healthcheck: | |
test: "pg_isready -U postgresuser -d shipment_db" | |
interval: 2s | |
timeout: 20s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tableName": "steps", | |
"tableType": "REALTIME", | |
"segmentsConfig": { | |
"timeColumnName": "loggedAt", | |
"timeType": "MILLISECONDS", | |
"schemaName": "steps", | |
"replicasPerPartition": "1" | |
}, | |
"tenants": {}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schemaName": "steps", | |
"dimensionFieldSpecs": [ | |
{ | |
"name": "userId", | |
"dataType": "INT" | |
}, | |
{ | |
"name": "userName", | |
"dataType": "STRING" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.edu.samples; | |
import com.edu.samples.messagelog.MessageLog; | |
import com.edu.samples.serde.OrderEvent; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.inject.Inject; | |
import javax.transaction.Transactional; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.edu.samples.messagelog; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
import java.time.Instant; | |
@Entity | |
@Table(name = "consumed_messages") | |
public class ConsumedMessage { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@App:name("CreditLimitReaching") | |
@App:description("Description of the plan") | |
@Store(type="rdbms", | |
jdbc.url="jdbc:mysql://localhost:3306/foobank?useSSL=false", | |
username="root", | |
password="*****" , | |
jdbc.driver.name="com.mysql.jdbc.Driver") | |
@PrimaryKey("id") |
NewerOlder