camsas / firmament

The Firmament cluster scheduling platform
Apache License 2.0
415 stars 79 forks source link

coordinator start failed #43

Closed WIZARD-CXY closed 8 years ago

WIZARD-CXY commented 8 years ago

I use the latest code and want to run the coordinator on ubuntu14.04, but failed, the error msg is

2016-05-03 19:57:47.086785, p20959, th139855899261056, ERROR Failed to setup RPC connection to "localhost:8020" caused by:
TcpSocket.cpp: 293: HdfsNetworkConnectException: Connect to "localhost:8020" failed: (errno: 111) Connection refused
    @   Hdfs::Internal::TcpSocketImpl::connect(addrinfo*, char const*, char const*, int)
    @   Hdfs::Internal::TcpSocketImpl::connect(char const*, char const*, int)
    @   Hdfs::Internal::RpcChannelImpl::connect()
    @   Hdfs::Internal::RpcChannelImpl::invokeInternal(std::shared_ptr<Hdfs::Internal::RpcRemoteCall>)
    @   Hdfs::Internal::RpcChannelImpl::invoke(Hdfs::Internal::RpcCall const&)
    @   Hdfs::Internal::NamenodeImpl::invoke(Hdfs::Internal::RpcCall const&)
    @   Hdfs::Internal::NamenodeImpl::getFsStats()
    @   Hdfs::Internal::NamenodeProxy::getFsStats()
    @   Hdfs::Internal::FileSystemImpl::getFsStats()
    @   Hdfs::Internal::FileSystemImpl::connect()
    @   Hdfs::FileSystem::connect(char const*, char const*, char const*)
    @   hdfsBuilderConnect
    @   firmament::store::HdfsDataLocalityManager::HdfsDataLocalityManager(firmament::TraceGenerator*)
    @   firmament::Coordinator::Coordinator()
    @   main
    @   Unknown
    @   Unknown

F0503 19:57:48.098994 20959 hdfs_data_locality_manager.cc:32] Could not connect to HDFS

I don't have hdfs and want to run on local filesystem storage,any help ??

ms705 commented 8 years ago

Hi! Thanks for reporting this.

The issue is that our HDFS integration is enabled in the default build (we should probably change that), and the HDFS client is trying to connect to a local HDFS NameNode (as you guessed).

You can get rid of it by passing -DENABLE_HDFS=off to the cmake invocation that you use to set up your build tree.

I guess we should add a flag that allows you to turn off HDFS support at runtime, and recover more gracefully from this error :)

WIZARD-CXY commented 8 years ago

Thanks for your quick reply! I will give it a test tomorrow

May the force be with you

On May 3, 2016, at 9:21 PM, Malte Schwarzkopf notifications@github.com wrote:

Hi! Thanks for reporting this.

The issue is that our HDFS integration is enabled in the default build (we should probably change that), and the HDFS client is trying to connect to a local HDFS NameNode (as you guessed).

You can get rid of it by passing -DENABLE_HDFS=off to the cmake invocation that you use to set up your build tree.

I guess we should add a flag that allows you to turn off HDFS support at runtime, and recover more gracefully from this error :)

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

WIZARD-CXY commented 8 years ago

It works, thank you! I'm closing it.