http://webdir.tistory.com/206
설치 https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 설정 http://ngee.tistory.com/372 Shell $ mongo > show dbs admin 0.000GB local 0.000GB> use school_db switched to db school_db> db school_db> db.createUser({user: "principal", pwd: "123", roles: ["readWrite", "dbAdmin"]}); Successfully added user: { "user" : "principal", "roles" : [ "readWrite", "dbAdmin" ] }> db.createCollectio..
MacBookPro:~|⇒ scrapy Traceback (most recent call last): File "/usr/local/bin/scrapy", line 7, in from scrapy.cmdline import execute File "/Library/Python/2.7/site-packages/scrapy/cmdline.py", line 9, in from scrapy.crawler import CrawlerProcess File "/Library/Python/2.7/site-packages/scrapy/crawler.py", line 7, in from twisted.internet import reactor, defer File "/Library/Python/2.7/site-packag..
모든 key 가져오기 127.0.0.1:6379> keys *619*127.0.0.1:6379> keys *619* 127.0.0.1:6379> keys *619* https://chartio.com/resources/tutorials/how-to-get-all-keys-in-redis/ Database 목록 가져오기 127.0.0.1:6379> keys *619*127.0.0.1:6379> keys *619* $ redis-cli INFO | grep ^db db0:keys=1500,expires=2 db1:keys=200000,expires=1 db2:keys=350003,expires=1https://stackoverflow.com/questions/12802726/list-all-redis-dat..
redis-cli에서 아래 명령어를 수행 config set stop-writes-on-bgsave-error yes References https://charsyam.wordpress.com/2013/01/28/%EC%9E%85-%EA%B0%9C%EB%B0%9C-redis-%EC%84%9C%EB%B2%84%EA%B0%80-misconf-redis-is-configured-to-save-rdb-snapshots-%EC%97%90%EB%9F%AC%EB%A5%BC-%EB%82%B4%EB%A9%B0-%EB%8F%99%EC%9E%91%ED%95%98%EC%A7%80/ https://stackoverflow.com/questions/19581059/misconf-redis-is-configured-to-save-..
노드 리스트를 확인 MBP:~|⇒ kubectl get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE broker-883809602-1qhmw 1/1 Running 0 6d 10.4.1.11 gke-test-broker-pool-xxxx broker-883809602-n9kd3 1/1 Running 0 6d 10.4.1.10 gke-test-broker-pool-xxxx redis-master-3573802360-htmp5 1/1 Running 0 6d 10.4.0.8 gke-test-broker-pool-xxxx test-broker-540561889-jjl1s 1/1 Running 0 9d 10.4.0.7 gke-test-broker-pool-xxxx접속 ..
$ kubectl replace --force -f
zsh에서 sudo를 이용한 command가 아래와 같이 오류를 발생시킨다. zsh이 square bracket을 globbing, pattern matching용으로 사용하기 때문이다. (http://square brackets for globbing / pattern matching)sudo pip install 'ansible-container[docker,k8s]' zsh: no matches found: ansible-container[docker,k8s] 이를 피하기 위해 홑따옴표로 설치할 패키지를 감싸주고 실행시키자. sudo pip install 'ansible-container[docker,k8s]' https://stackoverflow.com/questions/30539798/zsh-..
ConceptContainer Cluster Architecture : https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture Pods : https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/#pods-and-controllers Service : https://kubernetes.io/docs/concepts/services-networking/service/ Deployments : https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ TutorialsBasics : https://ku..
target/broker-1.0-SNAPSHOT.jar가 존재한다고 생각합니다. Docker 설정 먼저 아래와 같이 Dockerfile 만들겠습니다. FROM openjdk:8 COPY target/broker-1.0-SNAPSHOT.jar /app.jar EXPOSE 9000/tcp ENTRYPOINT ["java", "-jar", "/app.jar"]docker에 login하고 build 후 run해봅니다. docker logindocker build -t asia.gcr.io/test-142514/test-broker:v1 .docker run -ti --rm -p 9000:9000 asia.gcr.io/test-142514/test-broker:v1Docker Image GCR에 Push하기 go..
source와 test code의 project layout의 불일치로 생기는 문제이다. 아래와 같이 맞춰주면 해결된다. my-test-project +--pom.xml +--src +--main +--com +--example +--Application.java +--test +--com +--example +--test +--MyTest.java http://www.bswen.com/springboot/2017/02/25/springboot-Unable-to-find-a-SpringBootConfiguration.html
kent@rtest1:~/redis-4.0.2/src$ ./redis-cli INFO | grep ^db db0:keys=4,expires=0,avg_ttl=0 kent@rtest1:~/redis-4.0.2/src$ ./redis-cli INFO keyspace # Keyspace db0:keys=4,expires=0,avg_ttl=0 kent@rtest1:~/redis-4.0.2/src$ ./redis-cli keys "*" 1) "job_results:1234" 2) "job_status:1234" 3) "a1234" 4) "1234"
Pre Installations$ sudo apt install make $ sudo apt install gcc $ cd deps $ make hiredis jemalloc linenoise lua Installationshttps://redis.io/download $ make$ src/redis-server Referenceshttps://redis.io/topics/quickstarthttps://redis.io/topics/confighttps://stackoverflow.com/questions/19091087/open-redis-port-for-remote-connections
과거엔 SearchRequestBuilder에 internalBuilder()라는 method가 있었지만, 지금은 toString() 내부에서 수행되는 것으로 변경되었습니다. SearchRequestBuilder sb = client.prepareSearch("activities") .setQuery(queryBuilder) .setSize(0) .addAggregation(sigterm); logger.info("internal query : " + sb.toString());
netty를 사용하는 모듈과 충돌이 발생하는 경우이다. Elasticsearch client 초기화 시점을 앞당기거나 system property es.set.netty.runtime.available.processors 를 false로 세팅해서 해결한다. java.lang.IllegalStateException: availableProcessors is already set to [8], rejecting [8]at io.netty.util.NettyRuntime$AvailableProcessorsHolder.setAvailableProcessors(NettyRuntime.java:51)at io.netty.util.NettyRuntime.setAvailableProcessors(NettyRuntime..
아래와 같이 Elasticsearch java client 사용시 java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPlugin 발생하거나 FiltersAggregator.KeyedFilter와 같은 API들을 찾을 수 없는 경우가 있다. java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPluginat java.lang.ClassLoader.defineClass1(Native Method)at java.lang.ClassLoader.defineClass(ClassLoader.java:763)at java.security.SecureClassLoader.defineClass..
- Total
- Today
- Yesterday
- ansible-container
- PIP
- 은전한닢
- Elasticsearch
- Paw
- scrapy
- kubernetes
- GCP
- pycharm
- PubSub
- TDD
- docker-machine
- docker
- zsh
- git
- MongoDB
- IntelliJ
- mecab
- spring #lombok
- X-Pack
- MacOS
- Spring Boot
- pymongo
- boot2docker
- xpath
- Netty
- AWS
- Ansible
- Redis
- Python
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |