메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


1. presto 0.63다운로드

http://central.maven.org/maven2/com/facebook/presto/presto-server/0.63/presto-server-0.63.tar.gz

 

2. 압축풀고 폴더명 변경

 tar xvfz presto-server-0.63.tar.gz

 mv presto-server-0.63 presto-server

3. /home/hadoop/presto-server/etc폴더를 만들고 설정파일을 생성한다.

   가. node.properties파일

     node.environment=production
     node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
     node.data-dir=/home/hadoop/presto-server/data

  나. hive.properties

     connector.name=hive-hadoop2
     hive.metastore.uri=thrift://localhost:9083

  

  다. log.properties

     com.facebook.presto=DEBUG

  라. config.properties

      coordinator=false
      datasources=jmx,hive
      http-server.http.port=8080
      presto-metastore.db.type=h2
      presto-metastore.db.filename=var/db/MetaStore
      task.max-memory=1GB
      discovery.uri=http://localhost:8080

  마. jvm.config

      -server
      -Xmx16G
      -XX:+UseConcMarkSweepGC
      -XX:+ExplicitGCInvokesConcurrent
      -XX:+CMSClassUnloadingEnabled
      -XX:+AggressiveOpts
      -XX:+HeapDumpOnOutOfMemoryError
      -XX:OnOutOfMemoryError=kill -9 %p
      -XX:PermSize=150M
      -XX:MaxPermSize=150M
      -XX:ReservedCodeCacheSize=150M
      -Xbootclasspath/p:/home/hadoop/presto-server/lib/floatingdecimal-0.1.jar

   바. ../presto-server/etc/calog/jmx.properties

      connector.name=jmx

4.  CLI툴 다운로드(presto-cli-0.63-executable.jar,)

   압축해제 하여 명칭을 presto로 바꾼후 chmod 755로 실행권한 부여함

 

5.서버및 CLI실행

   가. 서버실행 : ~/presto-server/bin/launcher start

   나 .CLI실행:  /home/hadoop/presto --server localhost:8080 혹은

                          /home/hadoop/presto --server localhost:8080 --catalog hive --schema default

   다. CLI TEST :  presto:default>select CAST(NULL AS BOOLEAN) AND TRUE;

번호 제목 날짜 조회 수
57 우분투 16.04 LTS에 apache2와 tomcat7 연동하여 설치하기 2014.05.09 5297
56 ping 안될때.. networking restart 날려주면 잘됨.. 2014.05.09 6324
55 insert hbase by hive ... error occured after 5 hours..HMaster가 뜨지 않는 장애에 대한 복구 방법 2014.04.29 12000
54 빅데이터 분석을 위한 샘플 빅데이터 파일 다운로드 사이트 2014.04.28 6533
53 index생성, 삭제, 활용 2014.04.25 6784
52 hbase shell에서 컬럼값 검색하기(SingleColumnValueFilter이용) 2014.04.25 6376
51 unique한 값 생성 2014.04.25 5886
50 sequence한 번호 생성방법 2014.04.25 6170
49 ubuntu 12.4에서 eclipse설치후 기동시 library(swt-gtk*)관련 오류 2014.04.23 4713
48 Building a Cluster docs 2014.04.22 4777
47 sqoop 1.4.4 설치및 테스트 2014.04.21 6662
46 The disk drive for uuid= is not ready yet or not present 오류 해결방법 2014.04.21 5807
45 os가 windows7인 host pc에서 ubuntu가 os인 guest pc에 접근하기 위한 네트워크설정 2014.04.20 6136
44 oozie에서 share lib설정시 action type별로 구분하여 넣을것 2014.04.18 6074
43 json serde사용법 2014.04.17 5715
42 json 값 다루기 2014.04.17 6928
41 통계자료 구할수 있는 곳 2014.04.16 5322
40 column family삭제시 Column family 'delete' does not exist오류 발생하는 경우 2014.04.14 5658
39 hive에서 생성된 external table에서 hbase의 table에 값 insert하기 2014.04.11 5736
38 Oozie 설치, 환경설정 및 테스트 2014.04.08 5776
위로