GithubHelp home page GithubHelp logo

busche / cascading-jdbc-on-hdp Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 18 KB

Sample project for running Cascading-jdbc on Hortonworks

License: GNU General Public License v2.0

Java 100.00%
hdp cascading java

cascading-jdbc-on-hdp's Introduction

cascading-jdbc-on-hdp

Sample project for running Cascading-jdbc on Hortonworks

Installation and Deployment

Use gradle as a build system. This project was developed and tested using

  • Gradle 3.4
  • Hortonworks Sandbox 2.4
  • JDK 8, compiling for JDK 7 (due to Java-Version on the sandbox)

Use

gradle uploadToHortonworksSandbox

to upload the packaged project to the sandbox. Adjust the target path before!

Getting started

  • Make sure that small.txt is available in HFS, the current implementation looks for the file in the current users directory, which in my case is /user/root

  • start a postgres database somewhere, I was using docker as follows: docker run -P -e POSTGRES_PASSWORD=password --rm postgres which resulted in a container running on 172.16.102.85 listening at port 32768 (see TestJdbc1.java)

  • If not done, deploy the packaged project to the Hortonworks Sandbox

    • Either run gradle assemble copyAllDependencies and copy the contents of build/libs to the server, or
    • Update ext.targetDir (approx. line 53 in build.gradle), create the directory on the server once, and run gradle uploadToHortonworksSandbox
  • Put the job to yarn, using

    yarn jar cascading-jdbc-on-hdp-1.0.0.jar net.brunel.TestJdbc1

from the command line shell.

cascading-jdbc-on-hdp's People

Contributors

busche avatar

Watchers

 avatar  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.