bhavna choubey
bhavna choubey

Reputation: 11

Unable to Run HDFS on MESOS Framework : Could not find or load main class org.apache.mesos.hdfs.scheduler.Main

I tried to follow the steps mentioned in https://github.com/mesosphere/hdfs.

When i run ./bin/hdfs-mesos i get the following error:

Error: Could not find or load main class org.apache.mesos.hdfs.scheduler.Main

Does anyone know how i can resolve this error?

Upvotes: 1

Views: 169

Answers (2)

bhavna choubey
bhavna choubey

Reputation: 11

Issue has been resolved by following the steps :

wget https://github.com/mesosphere/hdfs/archive/0.1.6.tar.gz
tar -xvf 0.1.6.tar.gz
cd hdfs-0.1.6 
./bin/build-hdfs
cd build/hdfs-mesos-0.1.6
./bin/hdfs-mesos

Also had changed JAVA_HOME to jdk

Upvotes: 0

janisz
janisz

Reputation: 6371

In order to run mesos-hdfs it needs to be build. github repo contains only source same tagged releases.

Follow this steps:

git clone [email protected]:mesosphere/hdfs.git
cd hdfs
git checkout 0.1.6
./bin/build-hdfs
cd build/hdfs-mesos-0.1.6
./bin/hdfs-mesos

You can replace git commands with downloading tarball with desired release

wget https://github.com/mesosphere/hdfs/archive/0.1.6.tar.gz
tar -xvf 0.1.6.tar.gz
cd hdfs-0.1.6 
./bin/build-hdfs
cd build/hdfs-mesos-0.1.6
./bin/hdfs-mesos

Upvotes: 1

Related Questions