RImpala_connect: Establishes a JDBC connection to a machine running Impala

Description Usage Arguments Value Author(s) Examples

Description

This function creates a connection to the impalad daemon running on a machine in a Hadoop Cluster. The IP of the machine and the port on which the impalad daemon is running is passed as an argument.

Usage

1
rimpala.connect(IP="localhost",port="21050",principal="noSasl")

Arguments

IP

The IP of the machine to which the connection needs to be established. Default value is localhost

port

The port on the machine where the Impala daemon is running. Default value is 21050

principal

The principal to use if you require Kerberos authentication.The principal must be the same user principal you used when starting Impala. For example: "impala/myhost.example.com@H2.EXAMPLE.COM". Default value is "noSasl"

Value

"Connection Established" is displayed on the console upon successful connection.

Author(s)

Vijay Raajaa vijay.raajaa@mu-sigma.com,
Austin Chungath Vincent austin.cv@mu-sigma.com,
Vikas Raguttahalli vikas.r@mu-sigma.com,
Sachin Sudarshana sachin.sudarshana@mu-sigma.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
library("RImpala")
rimpala.init()
rimpala.connect(IP="127.0.0.1",port="21050")
rimpala.close()
rimpala.connect(IP="localhost",port="21050",principal="impala/myhost.example.com@H2.EXAMPLE.COM")

## End(Not run)

RImpala documentation built on May 30, 2017, 4:09 a.m.