전체 글
-
[ElasticSearch] 기초적인 ElasticSearch 자문자답DB 2019. 7. 10. 23:11
1. 리눅스에서 Curl을 사용해서 ES에 데이터 조회/입력을 하기 위해선 어떤 형식을 사용해야 할까? - curl -XPOST 'http://ES ADDRESS:9200/인덱스명/타입명' -H 'Content-Type: application/json' -d {"hello" : "good"} - curl -XPOST 'http://ES ADDRESS:9200/인덱스명/타입명' -H 'Content-Type: application/json' -d @파일명 2. ES의 REST API 포트는? - 9200 3. ES 클러스터의 상호 노드 통신을 위해 사용하는 포트는? - 9300 4. Kibana 포트는? - 5601 5. ElasticSearch가 시스템에 설정되어 있는 것 보다 많은 양의 메모리맵를 사용..
-
2019-07-09 요즈음의 창수씨이야기 2019. 7. 9. 23:56
난 정확히 2년 3개월 6일 전의 나와 비교해 어떤가? 1. 리눅스를 설치할 수 있다. 2. STS 오류를 잡아낼 수 있다. 3. Oracle과 MySql의 차이점을 안다. 4. 플레다 5. 머리 숱이 적어졌다. 6. 항상 불안해 한다. 7. 돈이 없다. 8. 이리 저리 옮겨다니기엔 짐이 많아졌다. 9. 여전히 불안하다 회사 끝나고 다이소에 들러 5000원짜리 장패드를 샀다. 5000원짜리 스피커도 샀다. 1000원짜리 샤워볼도 샀다. 아빠한테 불안한 마음에 대해 얘기했는데. 아빠는 한참 듣다가 일단 울산으로 와서 경비원 면접보라고 했다. 경비원을 무시하는 건 아니지만.. 그래도 난 고민중인데 전화면접 열심히 준비하자. 퇴사 이직 개발 문제가 너무 불안한데 딱히 물어볼 친구가 없어서 sunrise에게 전..
-
[Linux] Ubuntu에 Jupyter Notebook 설치문제해결 2018. 11. 2. 00:55
Ubuntu에 Jupyter Notebook 설치라고 써 놨지만. 정확히 말하자면 Raspberry Pi에 설치하는 것이다.집에 라즈베리파이가 있는데 놀려두기 아까워서 Jupyter Notebook을 설치해 놓고 패스워드를 설정해놓고 개인적으로 쓰고 있다. 파이썬은 거의 못하지만. 친구 부탁으로 공부하고 있다. 해보니 재밌기도 하고..설치해두고 가끔 파이썬 코드 테스트가 필요하거나 간단한 알고리즘 구현을 위해 사용한다. 라즈베리파이를 포트포워딩 해놓고 외부 접속 가능하게 만들어 두었다. PI에 Jupyter NoteBook 설치 python --version //version check python3 --version getconf LONG_BIT //bit check sudo apt-get update..
-
[Logstash] Elasticsearch 데이터 추출 및 저장DB 2018. 10. 26. 00:32
Elasticsearch를 사용하면서 은근히 짜증나는 것 중 하나가 어떻게 데이터를 넣기는 넣었는데 어떻게 빼야하는지 난감할때가 있다. 보통 데이터를 넣고 뺄 때 Java의 Jest 라이브러리를 사용하거나 Logstash를 사용하는 데 Logstash를 사용하는 편이 편해서 템플릿을 만들어 사용한다. Logstash Conf 파일input { elasticsearch { hosts => "ES주소" index => "인덱스명" query => '쿼리' } } filter { } output { # stdout { #로그로 확인 하고 싶을 때 주석을 해제한다. # codec => rubydebug # } file { path => "파일로 쓸 절대 경로" # 절대경로 } } 이런 템플릿을 사용하는데 rub..
-
[환경설정] Windows10 Local Linux 설정문제해결 2018. 8. 2. 23:48
윈도우에서 개발한걸 바로 리눅스로 실행하고 싶어서 방법을 찾아보다가 제일 좋은 방법인것 같다. 우분투 깔기 1. Microsoft Store 들어가서 2. 검색 눌러서 Ubuntu 검색 3. 설치 (난 16.04 설치함) 윈도우(윈도우10)에서 리눅스 사용할수 있게 하는 기능 활성화 1. 시작(오른쪽 버튼 클릭) -> 설정 -> 업데이트 및 보안 -> 개발자용 -> 개발자 기능 사용 -> 개발자 모드 (선택) -> 왼쪽 상단에 검색하는 곳(설정 찾기 라고 적혀있음) -> 'windows 기능' 입력 -> Linux용 Windows 하위 시스템 -> 체크 후 확인 -> 재부팅 ㄱㄱ -> 그리고 다시 설치한 리눅스 들어가보면 작동 됨. 안되면 절망하셈 일단 리눅스를 설치하고 파이썬 버전을 보니깐 파이썬은 안..
-
[RasberryPI]ssh connection failed기타/라즈베리파이 2018. 6. 7. 22:49
집에 라즈베리 파이가 있다. 무려 라즈베리 파이 3. 하지만 모니터가 없어서 거의 1년 가량 묵혀 두었는데, 1년 동안 고생의 댓가로 나에게 컴퓨터와 모니터를 선물한 후 사용할수 있게 되었다. 라즈비안 설치하는 데도 엄청난 고생을 했다. SD카드 리더기 채로 USB 포트에 꼽아 놓고 왜안되는지를 고민했다. 여튼 설치하고 써보려니깐 뭘해야되나 싶고 할게 없어서 걍 묵혀놓고 가끔 팀뷰어로 들어가는 정도 였는데 오늘 ssh로 접속하려니깐 안되길래 또 명상의 시간을 가졌다. connection Failed라고 뜨길래 인터넷 검색해보니 나와 같은 고민을 한 지구반대편의 친구들이 있어 부렀다.https://www.raspberrypi.org/forums/viewtopic.php?t=194090 라즈베리파이가 ssh..
-
[컴퓨터시스템구조론] 컴퓨터 시스템 기초 1편컴퓨터기초 2018. 6. 7. 21:57
컴퓨터 구조 프로세서의 속도를 높이기 위해서는 이렇게 해야한다. 1. 프로세스 하드웨어 속도를 높힌다. - 논리 게이트의 크기를 줄여 더 많은 게이트를 넣고 클록1)속도를 높인다.2. 프로세서와 주기억장치 사이에 위치하는 캐시2)의 크기와 속도를 증가시킨다.3. 명령어 실행 속도를 높일수 있도록 프로세서 조직과 구조를 바꾼다. 결론. 클록속도와 회로의 밀도를 증가시키면 프로세스의 성능이 향상된다. 프로세서의 속도를 저해하는 요소전력 : 클록속도, 회로 밀도가 증가하면 전력밀도가 상승하고 열이 발생한다.RC지연 : 부품을 소형화하면 연결선 굵기가 줄어들고 그 때문에 저항이 증가하며 선들이 가까이 위치하면 커패시턴스3)가 증가한다.기억장치 지연: 기억장치 속도는 프로세서의 속도보다 떨어진다. 1) Clock..