Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Environment variable HADOOP_CMD must be set before loading package rhdfs Error: loading failed

avatar
Expert Contributor

Error : .onLoad failed in loadNamespace() for 'rhdfs', details:

  call: fun(libname, pkgname)
  error: Environment variable HADOOP_CMD must be set before loading package rhdfs
Error: loading failed

I get this error when trying to install package rhdfs in R studio.

I am on centos 6.5.

1 ACCEPTED SOLUTION

avatar
Super Guru

@sameer lail

Please set HADOOP_CMD variable inside R before hdfs call.

Sys.setenv("HADOOP_CMD"="/usr/hdp/current/hadoop-client/bin/hadoop") 

View solution in original post

1 REPLY 1

avatar
Super Guru

@sameer lail

Please set HADOOP_CMD variable inside R before hdfs call.

Sys.setenv("HADOOP_CMD"="/usr/hdp/current/hadoop-client/bin/hadoop")