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
- display_name: "ML Type 1 [ON_DEMAND]" | |
description: "Type 1 [ON_DEMAND] - Basic (CPU 2-6, Memory 20 GiB)" | |
kubespawner_override: | |
image: ... | |
node_selector: | |
... | |
eks.amazonaws.com/capacityType: ON_DEMAND | |
cpu_limit: 6 | |
cpu_guarantee: 2 | |
mem_limit: '20G' |
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
# μ¬μ©μ λ³ μ 곡λλ Jupyter 컨ν μ΄λμ Jupyter Hub 리μμ€ νμ λ³λ‘ νκ²½λ³μλ₯Ό 미리 μΈν | |
SPARK_OPTS=--master=local[6] --driver-memory=20g |
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
# Client Mode: Driver JVM μ΄ μ΄λ―Έ λ μλ μνμμ Driver JVM λ©λͺ¨λ¦¬λ₯Ό μ§μ ν μ μμ | |
spark = SparkSession.builder \ | |
... | |
.config("spark.driver.memory", "9g") | |
.getOrCreate() |
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
trait Monad[F[_]] { | |
def point[A](a: A): F[A] | |
def bind[A, B](fa: F[A])(f: A => F[B]): F[B] | |
def map[A, B](fa: F[A])(f: A => B): F[B] = | |
bind(fa)(a => point(f(a)) | |
def join[A](ffa: F[F[A]): F[A] = | |
bind(ffa)(fa => fa) | |
} | |
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
# μ΅μ΄ 10 μ€λ§ μΆλ ₯ν©λλ€. | |
$ kafka-run-class kafka.tools.DumpLogSegments --files /var/lib/kafka/data/test-topic-0/00000000000000000000.index --print-data-log | head -n 10 | |
Dumping /var/lib/kafka/data/test-topic-0/00000000000000000000.index | |
offset: 32 position: 17275 | |
offset: 48 position: 33480 | |
offset: 64 position: 49685 | |
offset: 80 position: 65890 | |
offset: 96 position: 82095 | |
offset: 112 position: 98300 |
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
test-topic-0 | |
βββ 00000000000000000001.index | |
βββ 00000000000000000001.log | |
βββ 00000000000000000001.timeindex | |
βββ 00000000000000001018.index | |
βββ 00000000000000001018.log | |
βββ 00000000000000001018.timeindex | |
βββ 00000000000000002042.index | |
βββ 00000000000000002042.log | |
βββ 00000000000000002042.timeindex |
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
// Some code$ kafka-producer-perf-test --topic test-topic --num-records 500000 --record-size 100 --throughput 10000 --producer-props bootstrap.servers=broker:9092 | |
$ ls /var/lib/kafka/data/ | grep test | |
test-topic-0 | |
$ ls /var/lib/kafka/data/test-topic-0 | |
00000000000000000000.index 00000000000000000000.log 00000000000000000000.timeindex leader-epoch-checkpoint |
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
kafka-topics --describe --zookeeper zookeeper:2181 --topic __consumer_offsets | |
Topic: __consumer_offsets TopicId: wWPS-BD9TSuZHybvPwpomg PartitionCount: 50 ReplicationFactor: 1 Configs: compression.type=producer,cleanup.policy=compact,segment.bytes=104857600 | |
Topic: __consumer_offsets Partition: 0 Leader: 1 Replicas: 1 Isr: 1 | |
Topic: __consumer_offsets Partition: 1 Leader: 1 Replicas: 1 Isr: 1 | |
.... | |
Topic: __consumer_offsets Partition: 49 Leader: 1 Replicas: 1 Isr: 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
$ cd /var/lib/kafka/data | |
$ ls | |
__consumer_offsets-0 __consumer_offsets-15 __consumer_offsets-21 __consumer_offsets-28 __consumer_offsets-34 __consumer_offsets-40 __consumer_offsets-47 __consumer_offsets-9 | |
__consumer_offsets-1 __consumer_offsets-16 __consumer_offsets-22 __consumer_offsets-29 __consumer_offsets-35 __consumer_offsets-41 __consumer_offsets-48 _schemas-0 | |
__consumer_offsets-10 __consumer_offsets-17 __consumer_offsets-23 __consumer_offsets-3 __consumer_offsets-36 __consumer_offsets-42 __consumer_offsets-49 cleaner-offset-checkpoint | |
__consumer_offsets-11 __consumer_offsets-18 __consumer_offsets-24 __consumer_offsets-30 __consumer_offsets-37 __consumer_offsets-43 __consumer_offsets-5 log-start-offset-checkpoint | |
__consumer_offsets-12 __consumer_offsets-19 __consumer_offsets-25 __consumer_offsets-31 __consumer_offsets-38 __consumer_offsets-44 __consumer_offsets-6 meta.properties | |
__consumer_offsets-13 __consumer_offsets-2 __consumer_offsets-26 __consumer_offse |
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
$ cd /etc/kafka | |
$ cat kafka.properties | grep log.dir | |
log.dirs=/var/lib/kafka/data |