참고 사이트

http://www.oracle.com/technetwork/database/bigdata-appliance/downloads/index.html


다운로드 주소

http://www.oracle.com/technetwork/database/bigdata-appliance/oracle-bigdatalite-2104726.html


Oracle Big Data Lite Virtual Machine 4.1버전기준 


공식 사이트 내용

To get started:

  • Download and install Oracle VM VirtualBox and 7-zip
  • Download each of the 7-zip files
  • Run the 7-zip extractor on the bigdataliteXx.7z.001 file only. This will create the BigDataLiteX.x.ova VirtualBox appliance file
  • In VirtualBox, import BigDataLiteXx.ova
  • Start BigDataLite-X.x
  • Log in as oracle/welcome1

See the Deployment Guide for details.


상세 설명 

  • Oracle VM Virtual Box 및 7zip  프로그램 다운로드 및 설치
  • 압축파일 각각 다운로드
  • 7-zip 이용해서 7z001 파일만 압축해제 BigDataLiteX.x.ova 파일 생성
  • VirtualBox에서  BigDataLiteXx.ova Import
  • BigDataLite-X.x 시작
  • 리눅스 로그인 oracle/welcome1

리눅스 가상시스템 구동후 문서확인

Please note: This appliance is for testing and educational purposes only; it is unsupported and not to be used in production.
이 가상머신은 테스트와 교육목적으로만 사용가능함

Introduction

Oracle Big Data Lite Virtual Machine provides an integrated environment to help you get started with the Oracle Big Data platform. Many Oracle Big Data platform components have been installed and configured - allowing you to begin using the system right away. The following components are included on Oracle Big Data Lite:

■  Big Data Lite Virtual Machine 에 기본적으로 포함 되어 있는 소프트웨어

    Oracle Enterprise Linux 6.5
    Oracle Database 12c Release 1 Enterprise Edition (12.1.0.2) - including Oracle Big Data SQL-enabled external tables, Oracle Multitenant, Oracle Advanced Analytics, Oracle OLAP, Oracle Partitioning, Oracle Spatial and Graph, and more.
    Cloudera Distribution including Apache Hadoop (CDH5.3.0)
    Cloudera Manager (5.3.0)
    Oracle Big Data Connectors 4.1
        Oracle SQL Connector for HDFS 3.1.0
        Oracle Loader for Hadoop 3.3.0
        Oracle Data Integrator 12c
        Oracle R Advanced Analytics for Hadoop 2.4.1
        Oracle XQuery for Hadoop 4.1.0
    Oracle NoSQL Database Enterprise Edition 12cR1 (3.2.5)
    Oracle JDeveloper 12c (12.1.3)
    Oracle SQL Developer and Data Modeler 4.0.3
    Oracle Data Integrator 12cR1 (12.1.3)
    Oracle GoldenGate 12c
    Oracle R Distribution 3.1.1
    Oracle Perfect Balance 2.3.0


Big Data Lite includes software products that are optional on the Oracle Big Data Appliance (BDA), including Oracle NoSQL Database Enterprise Edition and Oracle Big Data Connectors.
Additional Software

There is complementary software that you may want to use that is not included in the VM.

■ Big Data Lite Virtual Machine 에 미포함 되어 있는 소프트웨어

    Cloudera JDBC drivers enable Hive access in Oracle SQL Developer and Data Modeler. See install instructions.
    R software: Simple scripts are provided in /home/oracle/scripts that facilitate installation.
        R Studio - install using install_rstudio.sh
        Numerous R Packages that provide additional analytics and visualizations. Install using install_additional_packages.sh

■ 설치 후 확인
각 소프트웨어별 서비스 가동 확인


'Data Analysis > BIG DATA' 카테고리의 다른 글

Oracle Big Data SQL 소개  (0) 2015.06.11

1. 몽고디비에서 0~1사이의 Random 데이터 생성 (50만건)

for(i=0; i<500000; i++) {
db.test.insert({"seq" : i,"random": Math.random(), "date": new Date() }); 
}

2. R 에서 rmongodb 패키지 사용해서 plot 찍기 (10건 : limit=10L)

library(rmongodb) 
mongo <-mongo.create(host="-- HOST IP --", name="",username="", password="", db="test")
if (mongo.is.connected(mongo)) {
    buf <- mongo.bson.buffer.create() 
    query <- mongo.bson.from.buffer(buf)
    cursor <- mongo.find(mongo, "test.test", query, limit=10L)
    # Step though the matching records and display them
    while (mongo.cursor.next(cursor)) { 
     a<- mongo.bson.to.list(mongo.cursor.value(cursor))
    print(a$seq)
    print(a$random)
    plot(a$seq,a$random,xlim=c(0,10),ylim=c(0,1))
    axis(1,at=seq(0,10,1))
    axis(2,at=seq(0,1,0.1))
    par(new=T)
    }
}

결과 확인 

순서

환경 :

local os : Windows 7 64bit 

Oracle Database 11gR2

1. R INSTALL (사용버젼 1.5 )

2. 필요 패키지 설치 (DBI,RODBC...)

3. ODBC 설정

64-bit Oracle Data Access Components (ODAC) 설치

http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html

ODAC112030_x64.zip

압축해제후 Setup (기존 Oracle 제품 설치 확인 : Oracle Home 관련 주의)

 

설치된 Database TNS 확인

 

ADDRESS 항목의 HOST 변경

1.DataBase 가 설치된 위치를 설정 해야 합니다.

  -- 접속하려는 데이터 베이스가 있는 IP 를 직접 입력하거나 , 이름을 넣고,

      Host 파일을 수정

 

HOST 파일 설정

1. 위치 :C:\Windows\System32\drivers\etc

 

 

 DSN 추가 및 설정

    시스템-> 제어판-> 관리도구 -> 데이터원본(ODBC)

 

data source name : DB11G

접속확인

 

 

 

4.R에서 결과 보기

> library("DBI");library("RODBC"); hdb <- odbcConnect("DB11G")
> res <-sqlQuery(hdb, "SELECT * FROM emp")
> res
   EMPNO  ENAME       JOB  MGR   HIREDATE  SAL COMM DEPTNO
1   7369  SMITH     CLERK 7902 1980-12-17  800   NA     20
2   7499  ALLEN  SALESMAN 7698 1981-02-20 1600  300     30
3   7521   WARD  SALESMAN 7698 1981-02-22 1250  500     30
4   7566  JONES   MANAGER 7839 1981-04-02 2975   NA     20
5   7654 MARTIN  SALESMAN 7698 1981-09-28 1250 1400     30
6   7698  BLAKE   MANAGER 7839 1981-05-01 2850   NA     30
7   7782  CLARK   MANAGER 7839 1981-06-09 2450   NA     10
8   7788  SCOTT   ANALYST 7566 1987-04-19 3000   NA     20
9   7839   KING PRESIDENT   NA 1981-11-17 5000   NA     10
10  7844 TURNER  SALESMAN 7698 1981-09-08 1500    0     30
11  7876  ADAMS     CLERK 7788 1987-05-23 1100   NA     20
12  7900  JAMES     CLERK 7698 1981-12-03  950   NA     30
13  7902   FORD   ANALYST 7566 1981-12-03 3000   NA     20
14  7934 MILLER     CLERK 7782 1982-01-23 1300   NA     10
> 

'Data Analysis > STATISTICS' 카테고리의 다른 글

R (수정중)  (0) 2012.02.22
정리중  (0) 2012.02.02