/
R - HDFS with high availability
R - HDFS with high availability
Preamble
This article is for using Python on an HDFS with high availability option. The particularity of high availability is to have two namenodes for one HDFS, in case of failure.
Libraries dependency
library(httr)
Namenode search
hdfsUriNn1 <- 'http://nn1:50070/webhdfs/v1' hdfsUriNn2 <- 'http://nn2:50070/webhdfs/v1' hdfsUri <- '' tryCatch( { GET(hdfsUriNn1) hdfsUri<-hdfsUriNn1 }, error=function(cond) { tryCatch( { GET(hdfsUriNn2) hdfsUri<-hdfsUriNn2 }, error=function(cond) { message(paste("No namenode connection available. ",cond)) return(NA) } ) } )
, multiple selections available,
Related content
Python - HDFS with high availability
Python - HDFS with high availability
More like this
Talend - HDFS with high availability
Talend - HDFS with high availability
More like this
Java - HDFS with High Availability
Java - HDFS with High Availability
More like this
R - Read & Write files from HDFS
R - Read & Write files from HDFS
More like this
R - Upload H2O library to HDFS
R - Upload H2O library to HDFS
More like this
Python - Read & Write files from HDFS
Python - Read & Write files from HDFS
More like this