Git Product home page Git Product logo

oracle-bigdatalite-scripts's Introduction

oracle-bigdatalite-scripts

Scripts for Oracle BigData Appliance tests

Scenario

  1. Export from Oracle 12c DB into HDFS drive / Hive DB with sqoop
  2. Create External Hive Table for CREW Files (Scenario 1.c,1.d)

First steps:

  1. Start Oracle 12c Database

in Terminal:

  1. lsnrctl start
  2. sqlplus / as sysdba startup; exit;

Scenario 1

a, Load Table information direct from DB into Hive Tables (with create Table) - Simplie append

sqoop import --connect jdbc:oracle:thin:@localhost:1521/orcl --username MOVIEDEMO --password welcome1 --table CREW --hive-import

b, Load Table information direct from DB into Hive Tables (with create Table) - Incremental with a PK column name

sqoop import --connect jdbc:oracle:thin:@localhost:1521/orcl --username MOVIEDEMO --password welcome1 --table CREW --hive-import --incremental append --check-column CREW_ID

c, Load Table information into HDFS

sqoop import --connect jdbc:oracle:thin:@localhost:1521/orcl --username MOVIEDEMO --password welcome1 --table CREW

d, Load Table information into HDFS incremental

sqoop import --connect jdbc:oracle:thin:@localhost:1521/orcl --username MOVIEDEMO --password welcome1 --table CREW --incremental append --check-column CREW_ID

Scenario 2

hive -f  hive/create_external_crew_table.hql

oracle-bigdatalite-scripts's People

Contributors

supportingai avatar

Watchers

James Cloos avatar ///Mpower avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.