Skip to content

Instantly share code, notes, and snippets.

View Fodoj's full-sized avatar

Kirill Shirinkin Fodoj

View GitHub Profile
@Fodoj
Fodoj / master.tf
Last active January 13, 2024 13:18
master.tf
module "paas-master" {
source = "git@gitlab.com:FJCorp/infrastructure/terraform-modules.git//instance"
env = "prod"
group = "paas"
app = "master"
instance_type = "t3.small"
subnet_type = "public"
bootstrap_script_path = "${path.module}/user_data/paas-master.sh"
create_dns = true
dns_name = "paas.mkdev.me"
# Generation of Kubernetes YAML is still under development!
#
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-1.4.2
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2019-06-22T14:21:20Z"
Ученик (05.01.18) 0;
Аритмия (07.01.18) +;
Величайший шоумен (27.01.18) +;
Субурбикон (04.02.18) 0;
Мама! (10.02.18) +;
Чёрная Пантера (27.02.18) 0;
Здравствуй, папа, Новый Год! 2 (08.03.18) +;
Стать Уорреном Баффетом (11.03.18) +;
Икар (13.03.18) +;
Форма воды (17.03.18) +;
➜ lesson01 ../spark-bin/bin/spark-submit --class=com.mkdev.lesson01.KafkaSimpleStreamer ./target/lesson01-1.0-SNAPSHOT.jar localhost:2181 test test 1
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
15/09/24 17:54:00 INFO SparkContext: Running Spark version 1.5.0
15/09/24 17:54:01 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/09/24 17:54:02 INFO SecurityManager: Changing view acls to: kshirinkin
15/09/24 17:54:02 INFO SecurityManager: Changing modify acls to: kshirinkin
15/09/24 17:54:02 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(kshirinkin); users with modify permissions: Set(kshirinkin)
15/09/24 17:54:03 INFO Slf4jLogger: Slf4jLogger started
15/09/24 17:54:03 INFO Remoting: Starting remoting
15/09/24 17:54:03 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://sparkDriver@10.90.26.94:60798]
secret = Chef::EncryptedDataBagItem.load_secret(Chef::Config[:encrypted_data_bag_secret])
secrets_bag = Chef::EncryptedDataBagItem.load('app-secrets', node['app']['name'], secret)
secrets_bag.to_hash.each do |key, value|
node.default['app'][key] = case value
when Hash
Chef::Mixin::DeepMerge.merge(node['app'][key], value)
else
value
end
def files_changed?(repository, path_to_previous_revision, files)
`cd #{repository} && git log HEAD...$(cat #{path_to_previous_revision}) -- #{files} | wc -l`.to_i > 0
end