Skip to content

A python and R wrapper code for launching HiveQueries using qds-sdk-py

Notifications You must be signed in to change notification settings

karandeep-johar/qds-sdk-R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qds.sdk.R

A python and R wrapper code for launching HiveQueries using qds-sdk-py

Requires

[qds-python-sdk] ( https://github.com/qubole/qds-sdk-py)

Or

[rPython] (http://cran.r-project.org/web/packages/rPython/)

install.packages("rPython")

Installation:

In R

install.packages("devtools")
devtools::install_github("qubole/qds-sdk-R")

Usage:

In Shell

$ export QDS_API_TOKEN = xxyyzz

In R

library(qds)
results<-qds::quboleHiveCommand(query="show tables")

Optional:

To change default qds env variables In shell

$ export QDS_API_TOKEN = xxyyzz
$ export QDS_API_URL = https://api.qubole.com/api/
$ export QDS_API_VERSION = v1.2

Notes:

default api_url is https://api.qubole.com/api/ default api_version is v1.2

Additionally you can also use sampling in Hive. For further details read this [page] (https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Sampling).

About

A python and R wrapper code for launching HiveQueries using qds-sdk-py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published