user3279174
user3279174

Reputation: 99

using hdfs.file() gives an error: attempt to apply non-function

I have just installed rhdfs and wanted to check how does it works...

I tried this below code:

library(hdfs)  
mod <- 2
model <- hdfs.file(mod)

I am facing an error:

Error in hdfs.file(mod) : attempt to apply non-function

Could anyone please help me how what is the issue??

Upvotes: 1

Views: 210

Answers (1)

User456898
User456898

Reputation: 5724

Try using this after loading the 'rhdfs' library:

hdfs.init()

And then,

mod <- 2
model <- hdfs.file(mod)

Upvotes: 1

Related Questions