hadoop error could not find or load main class fs

As a first step in learning hadoop, I’m currently reading hortonworks tutorial to mirror datasets between hadoop clusters with apache falcon. I stumbled on error could not find or load main class fs
As a first step I tried logging in as falcon user
su – falcon
Now,I’m trying to create directory using hdfs command as provided in tutorial:
hadoop fs -mkdir /apps/falcon/primaryCluster
Error: could not find or load main class fs
As a next step I tried setting hadoop_prefix as follows
export HADOOP_PREFIX=/usr/hdp/current/hadoop-client
This did not fix the issue either
As a next step instead of fs I tried using dfs
hadoop dfs -mkdir /apps/falcon/primaryCluster
It did work fine
To confirm that folder got created I issued the following command and this did work fine
hdfs dfs -ls /apps/falcon

Bigdata Hadoop Hortonworks Articles FREE:

Delivered by FeedBurner

Enter your email address:

Delivered by FeedBurner