본문 바로가기
반응형

직장이 아닌 직업을 가지자!749

빌드&배포 시스템 구축 환경OS : CentOS 7.xCI Tool : Jenkinsapache tomcat 9jdk 8Build Target : go langgit settinggo sdk settingglide settingdocker-client setting ============ show docker images ============= + docker images REPOSITORY TAG IMAGE ID CREATED SIZE /terry_park/vsc v0.3 e1ad78d5741f 3 seconds ago 858MB /terry_park/vsc v0.2 384a8f1df578 6 minutes ago 858MB /terry_park/vsc v0.1 219d8bcc0779 3 hours ago 1.04GB + .. 2017. 4. 25.
Apache Mesos Mesos는?아파치 프로젝트(http://mesos.apache.org/)트위터, 에어비앤비, 미소스피어가 사용.기본적으로 Docker 지원.분산 시스템 커널.모든 머신에서 동작.실행 어플리케이션에 대해 리소스 관리와 스케줄링 api를 제공.Mesosphere = Mesos + Marathon + ChrnonsMarathon : 작업(컨테이너) 관리 담당.Chronos : 작업 스케줄러. Mesos 노드 추상화Mesos의 노드들은 모든 Task에 대해 공유 된다. Mesos 동작 구성도Docker는 작업의 Type중 하나이다.Zookeeper를 통해 HA를 구성한다.Scheduler는 Chronos을 사용하거나, 직접 개발이 가능하다. Mesos 구성도 1Marathon은 PaaS플랫폼.향후 Kubern.. 2017. 4. 18.
패킷 분석을 위한 툴 - wireshark https://www.wireshark.org/download.html wire shark 이녀석은 네트워크 분석 툴이다.걍 클릭신공으로 셋팅한 뒤..아래와 같이 Capture > Options...를 통해서 start 시켜주면 된다. 혹은 아래와 같이 검정 버튼을 눌러도 된다. 아래처럼 선택 후 start를 클릭!! 가장 간단한 내용이다.패킷을 분석할 때 매우 유용한 툴임에 틀림없다! 더욱 더 알고 싶다면 http://search.daum.net/search?w=tot&DA=UME&t__nil_searchbox=suggest&sug=&sugo=5&sq=wire+shark&o=2&q=wireshark+%EC%82%AC%EC%9A%A9%EB%B2%95 를 클릭!! - 끝 - 2017. 4. 18.
curl http/2 ENVMac OS 10.12 TEST를 위해 curl http/2 지원 버전이 필요하였다. $ brew install curl --with-nghttp2 $ brew link curl --force위의 명령을 수행하는데 오류가 아래와 같이 났다.ERRORset the environment variables ZLIB_CFLAGSWarning: curl is a keg-only and another version is linked to opt.Package requirements (zlib >= 1.2.3) were not metyou may set the environment variables GLIB_CFLAGS and GLIB_LIBS to avoid the need to call pkg-config .. 2017. 3. 21.
AVS 가 뭐지? what is AVS? AVS는 아마존의 Alexa Voice Service이다.Cloud를 기반으로 스킬셋을 구현하여 TTS나 STT 등의 인터페이스를 제공하며 third-party에서도 쉽게 사용할 수가 있다.skill set등이 점점 늘어나고 있는 추세이다. IoT도 당근 가능! 또한 Streaming Media 서비스, Localization도 제공 한다. 대충 위의 기능들을 나열할 수 있을 것 같다.소스를 한번 보자. (https://github.com/alexa/alexa-avs-sample-app/blob/master/samples/javaclient/src/main/java/com/amazon/alexa/avs/AVSController.java#L520)public class AVSCont.. 2017. 3. 7.
Google API.AI https://docs.api.ai/docs/key-conceptsAPI.AI is built on a number of concepts. It’s good to understand what they are before trying anything hands-on.Agents correspond to applications. Once you train and test an agent, you can integrate it with your app or device.Entities represent concepts that are often specific to a domain as a way of mapping natural language phrases to canonical phrases that c.. 2017. 2. 20.
About Alexa ALEXA SKILLS ALEXA SKILLS intents / slotintent와 매칭되는 질문들을 목록으로 만들어 제공. SKILLS를 만들 때 고려해야 하는것?타입고려 : 예를 들어 커스텀 스킬은 피자 주문 같은것이고 스마트홈 스킬은 불켜고 끄고 하는 것. 브리핑 스킬은 신문을 읽어주거나 하는 것.시스템과 유저가 상호작용하는 경우 - Request가 덜 채워져있으면 다시 질문하여 의도를 파악 한다. 2017. 2. 17.
go lang Tip. tip_1 ) Test를 하고 싶다면?아래와 같은 사이트가 있는데 이녀석은 테스트에서 사용 되어진다고 한다. 아직 사용해본적은 없지만 사용하게 되면 포스팅 하도록 하겠다.http://goconvey.co/ tip_2) Mac에서 짠 뒤에 리눅스에서 동작하게 하려면?build를 할 디렉토리에서 아래와 같이 env GOOS=linux라고 지정!ex) env GOOS=linux go build tip_3) go에서 패키지 관리는 어떻게 할까?Java에 Maven같은게 있다면 Go는 glide라는 것이 있습니다.https://github.com/Masterminds/glide활용은 https://glide.sh/ 를 참조 또는 아래를 참조!$ glide create # Start a new workspace -.. 2017. 2. 15.
go lang - fresh를 사용해 보자. 이번 내용은 go get 이라는 명령어를 통해 Fresh 라는 것을 사용해 보자.Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file.저장 하면 바로바로 적용이 된다.https://github.com/pilu/fresh 에서 README.md를 참조! Installationgo get github.com/pilu/fresh 실행은 어플리케이션이 있는 곳으로 이동한 뒤에 fresh 라는 명령어를 쳐주면 서버가 기동 되어진다.fresh의 프로세스를 kill을할 때 유의 점으로는 fresh 말고도 runner_build라는것을 kill 해주어야 한다. 2017. 2. 15.
go lang을 해보자. 링크를 통해 OS에 맞는 것을 다운 받는다. (https://golang.org/dl/)home에서 go dir를 하나 만들어준다.다운 받은 pkg를 클릭클릭 하여 셋팅해준다..bash_profile에 환경변수를 잡아준다. # GOPATH export GOPATH=$HOME/go PATH=${PATH}:/usr/local/go/bin:${GOPATH}/bin 5. go 라는 명령어를 통해 잘 깔렸는지 확인.Go is a tool for managing Go source code. Usage: go command [arguments] The commands are: build compile packages and dependenciesclean remove object filesdoc show docume.. 2017. 2. 3.
리눅스 - scp file copy 아주 오래전 개발소스나 파일들을 서버에 옮기기 위해서는 FTP 툴을 이용하여 옮기곤 하였습니다.이제는 맥북도 많이들 사용하시고 서버에서 다른 서버로 파일을 옮길때 많이 사용되는 명령어를 알아보겠습니다. 방법 01. 서버에서 로컬에것 가져오기 - 서버에서 수행scp -P 22 로컬계정@로컬아이피:/Users/terrypark/app/xxx/acetManager.jar ./ 방법 02. 로컬에서 서버로 보내기 - local에서 수행scp acet.war serverId@acet-dev.kakao.io:/daum/program/tomcat/ 2017. 1. 22.
top 명령&옵션 top 명령 실행시 추가할 수 있는 옵션 * (top) -d [sec]: 설정된 초단위로 Refresh * (top) -c : command뒤에 인자값 표시top 명령 실행 후 사용할 수 있는 옵션 * shift + t : 실행된 시간이 큰 순서로 정렬 * shift + m : 메모리 사용량이 큰 순서로 정렬 * shift + p : cpu 사용량이 큰 순서로 정렬 * k : Process 종료 o k 입력 후 종료할 PID를 입력한다 o signal을 입력하라 표시되면 9를 넣어준다 * c : 명령 인자 표시 / 비표시 * l(소 문자엘) : uptime line(첫번째 행)을 표시 / 비표시 * space bar : Refresh * u : 입력한 유저 소유의 Process만 표시 o which us.. 2016. 12. 21.
하둡명령어로 삭제하기(fs -rm) 하둡 hdfs 삭제 하기! #!/bin/bash # 주기적으로 hdfs 데이터를 삭제한다. # crontab 에 등록하여 실행시킨다. # 2일 전 데이터 삭제 date=`date -d "2 days ago" "+%Y%m%d"` /home/acet/program/hadoop/bin/hadoop fs -rm -r -skipTrash "/HADOOP경로/하둡path/*.txt.$date*" # 하둡 temp 데이터 삭제 find /home/acet/data/ -ctime +2 -type f -exec rm -f {} \; 2016. 12. 6.
e-mail 한글 깨짐 현상 Problem : e-mail 한글 깨짐 현상 - setting my html encoding : meta http-equiv="Content-Type" content="text/html; charset=utf-8" 현재 이메일을 전송시에 클라이언트에서 한글이 깨져보이거나 정상적으로 보이거나 하는 현상이 있다. What is Content-Type?A Content-Type tells the web browser or email application how to interpret the text characters in your HTML or the body of the email. The most popular character sets are UTF-8 and ISO-8859-1. Where does.. 2016. 12. 2.
Study - JPA 소개 주저리 > 보통 Web Project를할 때 MVC 패턴과 더불어 SQL Mapper인 ibatis, mybatis등을 많이 사용하였습니다.지금 회사에서도 mybatis가 사용된 프로젝트들이 대다수 입니다.필드 하나가 추가 되면 dto(vo)를 비롯한 sql등을 수정해주어야하는.. 즉, MVC pattern : View - Controller - Service - Repository(Dao) - SQL까지 전체적인 수정을 요합니다.이런 노가다적이고 복잡한 것을 JPA에서는 객체모델링을 기반으로 풀어나간다고 합니다.db 모델링 기반이 아닌 object 모델링!! 정말 가능한지 한번 알아보겠습니다. JPA는 무엇인가?풀어서 알아보면! Java Persistence Api~~자바 진영의 ORM 기술 표준이다... 2016. 11. 28.
Crontab을 이용해보자! 크론탭 파일 생성 및 삭제 등 설명!출처 : https://docs.oracle.com/cd/E24846_01/html/E23088/enmwx.html 2016. 11. 11.
spark-submit deploy-mode option Client modeWant to get a job result (dynamic analysis)Easier for developping/debuggingControl where your Driver Program is runningAlways up application: expose your Spark job launcher as REST service or a Web UICluster modeEasier for resource allocation (let the master decide): Fire and forgetMonitor your Driver Program from Master Web UI like other workersStop at the end: one job is finished, a.. 2016. 11. 2.
hadoop distcp $ ./hadoop distcpusage: distcp OPTIONS [source_path...] OPTIONS -append Reuse existing data in target files and append new data to them if possible -async Should distcp execution be blocking -atomic Commit all changes or none -bandwidth Specify bandwidth per map in MB -delete Delete from target, files missing in source -diff Use snapshot diff report to identify the difference between source and .. 2016. 10. 28.
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory problemjava -version-bash: /acet/program/jdk/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory solution$ yum -y install glibc.i686Loaded plugins: fastestmirror, securityYou need to be root to perform this command.[deploy@lineup-data-krane program]$ sudo yum -y install glibc.i686Loaded plugins: fastestmirror, securitySetting up Install ProcessLoading mirror speeds from .. 2016. 10. 27.
2탄. SPARK를 설치해보자~(클러스터) 2016/10/18 - [BigDATA/spark] - 1탄. SPARK를 설치해보자~ 1탄. 단일모드 2탄. 클러스터 모드 3탄. 기타 유용 셋팅(스파크 관련) 우선 분산 클러스터로 셋팅하기전에! 요것만큼은 알고가자는 의미에서 살짝 정리해본다.1. Spark 구조(펌: https://www.google.co.kr/search?q=spark+%EA%B5%AC%EC%A1%B0&newwindow=1&biw=1598&bih=976&source=lnms&tbm=isch&sa=X&sqi=2&ved=0ahUKEwi1y4ut0ObPAhWqiVQKHWFaDgcQ_AUIBigB&dpr=1#imgrc=EdvQ87Vu0XWkMM%3A) 여기에서 Stand alone Scheduler , YARN, Apache Mesos는 .. 2016. 10. 19.
1탄. SPARK를 설치해보자~ 해당 포스팅은 총 3부로 구성될 예정 입니다.1탄. 단일모드 2탄. 클러스터 모드3탄. 기타 유용 셋팅(스파크 관련) 1탄. SPARK를 설치해보자~ Apache Spark 설치! 버전은 1.6.1 / hadoop 2.6으로 해서 다운받아보겠습니다. (현업에서 사용중인게 요거라서 요걸로!)Step 1. 아래의 링크를 통해 스파크를 다운 받아보자!http://spark.apache.org/downloads.html Step 2. down을 받아서 원하는 서버에서 압축을 풀어줍니다.압축을 해제하고 내용을 보면 아래와 같습니다. Step 3. Spark는 대화형 쉘들을 제공 합니다.파이썬과 스칼라가 있는데요 즉석 데이터를 분석하기에 좋습니다.실행은?1) 파이썬 쉘 ㄴ bin directory에 가서 ./pys.. 2016. 10. 18.
반응형