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;
댓글 0
| 번호 | 제목 | 날짜 | 조회 수 |
|---|---|---|---|
| 36 | external partition table생성및 data확인 | 2014.04.03 | 4616 |
| 35 | 동일서버에서 LA와 LC동시에 기동하여 테스트 | 2014.04.01 | 4482 |
| » | 의사분산모드에서 presto설치하기 | 2014.03.31 | 5689 |
| 33 | Hive Query Examples from test code (2 of 2) | 2014.03.26 | 13603 |
| 32 | Hive Query Examples from test code (1 of 2) | 2014.03.26 | 5615 |
| 31 | hadoop설치시 오류 | 2013.12.18 | 5086 |
| 30 | centsOS vsftpd설치하기 | 2013.12.17 | 4536 |
| 29 | ubuntu에 hadoop 2.0.5설치하기 | 2013.12.16 | 5037 |
| 28 | centos 5.X에 hadoop 2.0.5 alpha 설치 | 2013.12.16 | 4476 |
| 27 | hbase에 필요한 jar들 | 2013.04.01 | 4909 |
| 26 |
Hive java connection 설정
| 2013.04.01 | 4756 |
| 25 | Hbase Shell 명령 정리 | 2013.04.01 | 7127 |
| 24 |
HBASE Client API : 기본 기능 정리
| 2013.04.01 | 5970 |
| 23 | 하둡 분산 파일 시스템을 기반으로 색인하고 검색하기 | 2013.03.15 | 7730 |
| 22 |
HBase, BigTable, Cassandra Schema Design
| 2013.03.15 | 5547 |
| 21 | HBase shell로 작업하기 | 2013.03.15 | 8424 |
| 20 | org.apache.hadoop.hbase.PleaseHoldException: Master is initializing | 2013.03.15 | 5421 |
| 19 |
Cacti로 Hadoop 모니터링 하기
| 2013.03.12 | 5165 |
| 18 | HBase 설치하기 – Fully-distributed | 2013.03.12 | 6322 |
| 17 |
HBase 설치하기 – Pseudo-distributed
| 2013.03.12 | 5524 |