我尝试按照https://github.com/mesosphere/hdfs中提到的步骤进行操作。
当我运行./bin/hdfs-mesos
时,我收到以下错误:
错误:无法找到或加载主类 org.apache.mesos.hdfs.scheduler.Main
有谁知道如何解决此错误?
答案 0 :(得分:1)
为了运行mesos-hdfs,需要构建它。 github repo仅包含源相同的标记版本。
请按照以下步骤操作:
git clone git@github.com:mesosphere/hdfs.git
cd hdfs
git checkout 0.1.6
./bin/build-hdfs
cd build/hdfs-mesos-0.1.6
./bin/hdfs-mesos
您可以使用所需版本下载tarball来替换git
命令
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
答案 1 :(得分:0)
问题已通过以下步骤解决:
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
还将JAVA_HOME
更改为jdk