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 akka.actor.{Actor, ActorSystem, Props, Stash} | |
import scala.concurrent._ | |
object AsyncRestart extends App { | |
val system = ActorSystem() | |
val actor = system.actorOf(Props(new AsyncRestartActor)) |
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
Sentiment: { | |
"docSentiment": { | |
"score": -0.222224, | |
"type": "negative" | |
}, | |
"language": "english", | |
"totalTransactions": 1 | |
} | |
Entities: { | |
"entities": [ |
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
#!/bin/bash | |
host=$1 | |
password=`awk "/#Password/ && inhost { print \\\$2 } /Host/ { inhost=0 } /Host $host/ { inhost=1 }" ~/.ssh/config` | |
if [[ -z "$password" ]]; then | |
/usr/bin/ssh $* | |
else | |
sshpass -p $password /usr/bin/ssh $* | |
fi |
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
CREATE CATALOG nessie_catalog WITH ( | |
'type'='iceberg', | |
'catalog-impl'='org.apache.iceberg.nessie.NessieCatalog', | |
'io-impl'='org.apache.iceberg.aws.s3.S3FileIO', | |
'uri'='http://nessie:19120/api/v2', | |
'warehouse' = 's3://warehouse', | |
's3.endpoint'='http://minio:9000' | |
); | |
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
batch { | |
deploymentConfig: { | |
type: "flinkStreaming" | |
restUrl: ${FLINK_REST_URL} | |
} | |
modelConfig: { | |
classPath: [ | |
"model/defaultModel.jar", "components/flink/flinkBase.jar", "components/flink-table/", | |
"model/flinkExecutor.jar", "flink-dropwizard-metrics-deps/", "components/flink/extra/" | |
] |
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
minio: | |
image: minio/minio:RELEASE.2024-06-26T01-06-18Z | |
hostname: minio | |
networks: | |
- nussknacker-iceberg-net | |
environment: | |
MINIO_ROOT_USER: admin | |
MINIO_ROOT_PASSWORD: password | |
MINIO_DOMAIN: minio | |
MINIO_REGION_NAME: us-east-1 |
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
nussknacker_minio_data: | |
name: nussknacker_minio_data |
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
networks: | |
- nussknacker-iceberg-net |
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
networks: | |
nussknacker-iceberg-net: |
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
postgres-setup: | |
image: postgres:16.4 | |
depends_on: | |
postgres: | |
condition: service_healthy | |
networks: | |
- nussknacker-iceberg-net | |
environment: | |
PGHOST: "postgres" | |
PGDATABASE: "nu-db" |