분산 시스템 및 클라우드 컴퓨팅 스터디를 위한 repository 입니다.
https://downloads.apache.org/zookeeper/stable/
-
cd /Users/nhn/IdeaProjects/repository/apache-zookeeper-3.8.0-bin/bin
-
./zkServer.sh
- ./zkCli.sh
- create /election ""
- mvn clean package
- java -jar target/distributed-system-1.0-SNAPSHOT-jar-with-dependencies.jar
- ./zkCli.sh
- create /target_znode "test new data"
- set /target_znode "test update data"
- create /target_znode/children_znode "children node data"
- deleteall /target_znode
- 첫 번째 노드 삭제 시 두 번째 노드가 리더
- 중간 노드 삭제 시 삭제된 뒤의 노드가 삭제된 앞의 노드와 연결
- java -jar [path] [numberOfWorkers] [pathToWorkerProgram]
java -jar /Users/nhn/IdeaProjects/repository/distributed-system/autohealer/target/autohealer-1.0-SNAPSHOT-jar-with-dependencies.jar 5 /Users/nhn/IdeaProjects/repository/distributed-system/flakyworker/target/flakyworker-1.0-SNAPSHOT-jar-with-dependencies.jar
Articla about Cars (500 words) |
Long Book about Food (500,000 words) |
|
---|---|---|
Count | 50 | 60 |
Term Frequency | 0.1 (10%) | 0.00012 (0.012%) |
Term Frequency = (term count) / (total number of words in document)
Inverse Document Frequency = log(Number of documents / Number of documents containing the term)
-> Term Frequency * Inverse Document Frequency