write_df_to_hive: Write an R dataframe to Hive

View source: R/write_df_to_hive.R

write_df_to_hiveR Documentation

Write an R dataframe to Hive

Description

Write an R dataframe to Hive

Usage

write_df_to_hive(df, id, server, schema_table, append_data = FALSE)

Arguments

df

dataframe Dataframe to upload; df is converted to csv for upload.

id

string ID of user. Password will be requested from the user at function call.

server

string server extention or path

schema_table

string "schema.table" Name of the table to write to in Hive.

append_data

logical, defaults to FALSE for overwrite; TRUE appends the to the data.

Details

Uploads an R dataframe and uploads it to Hive. This assumes that when you log into Hive/Hadoop, the login is similar to 'XXXXX@edge.hadoop.co.com“

Value

Does not return anything.

Examples

## Not run: 
library(ssh)
library(dplyr)
library(readr)
library(askpass)
df <- mtcars
zid <- 'XXXXX'
server <- 'edge.hadoop.co.com'
schema_table <- 'schema.table'
write_df_to_hive(df = df, id = zid, server = server, schema_table = schema_table)

## End(Not run)


Fredo-XVII/RToolShed documentation built on March 17, 2024, 12:15 p.m.