GithubHelp home page GithubHelp logo

affitz / rimpala Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mu-sigma/rimpala

0.0 2.0 0.0 17.61 MB

RImpala is an R package that helps you to connect and execute distributed queries using Cloudera Impala

License: Apache License 2.0

R 69.30% Shell 0.75% Java 29.95%

rimpala's Introduction

#RImpala

RImpala is an R package that helps you to connect and execute distributed queries using Cloudera Impala. Impala supports jdbc integration and this feature is used by RImpala to establish a connection between R and Impala.

##Installating RImpala

To use this package you must also have access to a Hadoop cluster running Cloudera Impala with at least one populated table defined in the Hive Metastore.

###Install JDBC jars for RImpala

  • Download the Impala JDBC zip fileto the client machine that you will use to connect to Impala servers.
  • Extract the contents of the zip file to a location of your choosing. For example:
    • On Linux, you might extract this to a location such as /opt/jars/.
    • On Windows, you might extract this to a folder such as C:\Program Files\impala-jars.
  • We will use this location in rimpala.init()

###Install RImpala

  1. Compressed package: R CMD INSTALL RImpala-0.1.6.tar.gz

  2. Source code: R CMD INSTALL ./RImpala ##Loading RImpala and connecting to Impala

  3. Find the ip of the machine and the port where the Impala service is running.

  4. Find the location where you have unziped the JDBC jars in the above section.

  5. Launch R

  6. library("RImpala") rimpala.init(libs="/path/to/JDBC/jars/") result = rimpala.query("your query"); by default rimpala.init() searches "/usr/lib/impala" for the JDBC jars.

Here are links to more information on Cloudera Impala:

##Requirements

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.