Comments (5)
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.
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.
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.
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.
I have just pulled a request to fix this issue
from cephfs-hadoop.
Related Issues (9)
- Vagrant Up Fails HOT 6
- update the Ceph Hadoop plugin to Apache Hadoop/HDFS 2.7x HOT 15
- CephFS HDFS clients failing to respond to cache pressure HOT 3
- Connection failed HOT 6
- Exception in namenode join java.lang.IllegalArgumentException: Invalid URI for NameNode address (check fs.defaultFS): ceph://dellnode1:6789/ is not of scheme 'hdfs'.
- Does the hadoop plugin access the data as a cluster over the network or locally? HOT 1
- Cephfs - Hadoop out of maintenance?
- hadoop & ceph version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cephfs-hadoop.