GithubHelp home page GithubHelp logo

Comments (5)

gregsfortytwo avatar gregsfortytwo commented on May 28, 2024

This sounds like a bug, but nobody's actively maintaining the Hadoop plugin right now. :(

This is probably just in the config wrapping so you may be able to hunt down the issue without much trouble.

from cephfs-hadoop.

dotnwat avatar dotnwat commented on May 28, 2024

The parameter ceph.root.dir is the mount point directory (https://github.com/ceph/ceph/blob/master/src/include/cephfs/libcephfs.h#L241). When you set it to "/" or the default, then things work OK? If you set ceph.root.dir to /hadoop-dir you'll probably need to manually make that directory before mounting the hadoop file system. Can you provide the exception?

from cephfs-hadoop.

dengquan avatar dengquan commented on May 28, 2024

yes, when ceph.root.dir is "/", it works ok. when it is "/hadoop-dir" which I have made the directory before running, the exception when I runhbase master start as follows:
2017-07-27 09:35:37,254 FATAL [pre1-hmaster1:16000.activeMasterManager] master.HMaster: Failed to become active master java.io.IOException: Invalid argument at com.ceph.fs.CephMount.native_ceph_get_pool_id(Native Method) at com.ceph.fs.CephMount.get_pool_id(CephMount.java:1000) at org.apache.hadoop.fs.ceph.CephTalker.get_pool_id(CephTalker.java:321) at org.apache.hadoop.fs.ceph.CephFileSystem.getPoolReplication(CephFileSystem.java:308) at org.apache.hadoop.fs.ceph.CephFileSystem.selectDataPool(CephFileSystem.java:327) at org.apache.hadoop.fs.ceph.CephFileSystem.create(CephFileSystem.java:449) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:928) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:806) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:795) at org.apache.hadoop.hbase.util.FSUtils.setVersion(FSUtils.java:727) at org.apache.hadoop.hbase.util.FSUtils.setVersion(FSUtils.java:705) at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:444) at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:153) at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:128) at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:693) at org.apache.hadoop.hbase.master.HMaster.access$600(HMaster.java:189) at org.apache.hadoop.hbase.master.HMaster$2.run(HMaster.java:1803) at java.lang.Thread.run(Thread.java:745) 2017-07-27 09:35:37,255 FATAL [pre1-hmaster1:16000.activeMasterManager] master.HMaster: Unhandled exception. Starting shutdown. java.io.IOException: Invalid argument at com.ceph.fs.CephMount.native_ceph_get_pool_id(Native Method) at com.ceph.fs.CephMount.get_pool_id(CephMount.java:1000) at org.apache.hadoop.fs.ceph.CephTalker.get_pool_id(CephTalker.java:321) at org.apache.hadoop.fs.ceph.CephFileSystem.getPoolReplication(CephFileSystem.java:308) at org.apache.hadoop.fs.ceph.CephFileSystem.selectDataPool(CephFileSystem.java:327) at org.apache.hadoop.fs.ceph.CephFileSystem.create(CephFileSystem.java:449) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:928) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:806) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:795) at org.apache.hadoop.hbase.util.FSUtils.setVersion(FSUtils.java:727) at org.apache.hadoop.hbase.util.FSUtils.setVersion(FSUtils.java:705) at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:444) at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:153) at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:128) at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:693) at org.apache.hadoop.hbase.master.HMaster.access$600(HMaster.java:189) at org.apache.hadoop.hbase.master.HMaster$2.run(HMaster.java:1803) at java.lang.Thread.run(Thread.java:745) 2017-07-27 09:35:37,255 INFO [pre1-hmaster1:16000.activeMasterManager] regionserver.HRegionServer: STOPPED: Unhandled exception. Starting shutdown.

from cephfs-hadoop.

dotnwat avatar dotnwat commented on May 28, 2024

Since native_ceph_get_pool_id will just lookup the name of a pool, the error seems to suggest that either the pool name is invalid, or the mount context is invalid. The later would be inline with a problem mount on a sub directory, which seemed most likely. Given how much work has been done on file system stuff in the 1-2 years, I wouldn't be surprised if there are some slightly different semantics / return values etc... How badly do you need the sub-dir mounting?

from cephfs-hadoop.

taodd avatar taodd commented on May 28, 2024

I have just pulled a request to fix this issue

from cephfs-hadoop.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.