Controlling placement groups via RADOS
Hi,
When I use RADOS, is there any way to store a group of objects into the same placement group? What are the relationships between pool, object and placement group?
I'm a contributor of Apache HBase. HBase is a distributed, highly scalable database built on top of Hadoop Distributed File System (HDFS). I'd like to develop an adapter to store HBase's journals and data files onto RADOS instead of HDFS. Since HBase worker nodes (called Region Server) are collocated on the servers who are running OSDs, I'd like to take advantage of data locality. A Region Server writes journals and periodically flushes data files, and I want to store the primary copy of all these objects to the local OSD, so that the Region Server can read them from the OSD without wasting network bandwidth.
Thanks,
Tatsuya
--
Tatsuya Kawano (Mr.)
Tokyo, Japan
Hi Tatsuya,
Quoted 4 lines · Tatsuya Kawano
When I use RADOS, is there any way to store a group of objects into the same placement group? What are the relationships between pool, object and placement group?
Quoted 9 lines
I'm a contributor of Apache HBase. HBase is a distributed, highly scalable database built on top of Hadoop Distributed File System (HDFS). I'd like to develop an adapter to store HBase's journals and data files onto RADOS instead of HDFS. Since HBase worker nodes (called Region Server) are collocated on the servers who are running OSDs, I'd like to take advantage of data locality. A Region Server writes journals and periodically flushes data files, and I want to store the primary copy of all these objects to the local OSD, so that the Region Server can read them from the OSD without wasting network bandwidth.
There are two different mechanisms you can use. The first lets you specify which node will be the primary copy (assuming it is up). This was added originally with hadoop in mind, although at the moment it's not used. I have some reservations about the wisdom of using this approach.
The other lets you group objects on the same node. Normally we hash the object name to determine which PG it belongs too. The idea is to let the user specify a different string to hash; if the same string is specified for multiple objects, those objects will be stored together.
In both cases it's up the user to keep track of the placement input (the "locator"). Normally it's just the pool id, but may include either/both of the above. Also, both mechanisms aren't currently exposed via the librados API, so depending on which route you prefer we'll need to do some (relatively minor) work there.
There are also a couple FileSystem implementations that replace HDFS with Ceph. One uses the libceph userspace client, and one relies on the kernel's support and uses a few ioctls to control/expose file placement. I wonder if that would also meet your needs?
We're very interested in making things work well for hadoop and hbase. I'm curious what approach you think would work best here!
sage
Quoted 18 lines
Thanks,
Tatsuya--
Tatsuya Kawano (Mr.)
Tokyo, Japanhttp://twitter.com/#!/tatsuya6502
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines
There are also a couple FileSystem implementations that replace HDFS with Ceph. One uses the libceph userspace client, and one relies on the kernel's support and uses a few ioctls to control/expose file placement. I wonder if that would also meet your needs?
The version that uses the native kernel Ceph client is available for Hadoop 0.21 in the following Git branch:
git://github.com/noahdesu/hadoop-common.git haceph/0.21-mimic-rawlocal
The JNI code that interfaces to the Ceph IOCTLs is integrated with the Hadoop native-code feature. To compile simply use:
ant -Dcompile.native=true -Dnative.ceph.srcdir=/path/to/ceph <targets>
Note that by default Hadoop native code builds some compression libraries, thus you'll need to make sure that zlib development files are installed on the system (zlib1g-dev on Debian).
Finally, the file system URI scheme to use is:
"ceph:/path/to/mount".
- Noah
Thanks, Noah. I'll definitely check it out.
-Tatsuya
Quoted 24 lines · Noah Watkins
Quoted 4 lines
There are also a couple FileSystem implementations that replace HDFS with Ceph. One uses the libceph userspace client, and one relies on the kernel's support and uses a few ioctls to control/expose file placement. I wonder if that would also meet your needs?
The version that uses the native kernel Ceph client is available for Hadoop 0.21 in the following Git branch:
git://github.com/noahdesu/hadoop-common.githaceph/0.21-mimic-rawlocalThe JNI code that interfaces to the Ceph IOCTLs is integrated with the Hadoop native-code feature. To compile simply use:
ant -Dcompile.native=true -Dnative.ceph.srcdir=/path/to/ceph <targets>
Note that by default Hadoop native code builds some compression libraries, thus you'll need to make sure that zlib development files are installed on the system (zlib1g-dev on Debian).
Finally, the file system URI scheme to use is:
"ceph:/path/to/mount".- Noah
Hi Sage,
Quoted 4 lines
There are two different mechanisms you can use. The first lets you specify which node will be the primary copy (assuming it is up). This was added originally with hadoop in mind, although at the moment it's not used. I have some reservations about the wisdom of using this approach.
Oh great! I would prefer this approach because this is what HBase expects on the underlining distributed filesystem.
Quoted 1 line
In both cases it's up the user to keep track of the placement input (the "locator").
OK. HBase has a perfect place to store this kind of information. It's called the meta table. It's a special HBase table to keep track of every shard.
Quoted 4 lines
There are also a couple FileSystem implementations that replace HDFS with Ceph. One uses the libceph userspace client, and one relies on the kernel's support and uses a few ioctls to control/expose file placement. I wonder if that would also meet your needs?
I'll definitely take a look at them. I have feeling that RADOS would be more suitable for HBase because it has fewer failure points. MDS seems quite complex and HBase doesn't need POSIX style directory structure. All files are managed by HBase and uses will never have to interact with the filesystem. But, I also think Hadoop Map Reduce users would appreciate Ceph's rich features because they will directly interact with it.
Thanks,
Tatsuya
Quoted 38 lines · Sage Weil
Hi Tatsuya,
Quoted 4 lines · Tatsuya Kawano
When I use RADOS, is there any way to store a group of objects into the same placement group? What are the relationships between pool, object and placement group?
Quoted 9 lines
I'm a contributor of Apache HBase. HBase is a distributed, highly scalable database built on top of Hadoop Distributed File System (HDFS). I'd like to develop an adapter to store HBase's journals and data files onto RADOS instead of HDFS. Since HBase worker nodes (called Region Server) are collocated on the servers who are running OSDs, I'd like to take advantage of data locality. A Region Server writes journals and periodically flushes data files, and I want to store the primary copy of all these objects to the local OSD, so that the Region Server can read them from the OSD without wasting network bandwidth.
There are two different mechanisms you can use. The first lets you specify which node will be the primary copy (assuming it is up). This was added originally with hadoop in mind, although at the moment it's not used. I have some reservations about the wisdom of using this approach.
The other lets you group objects on the same node. Normally we hash the object name to determine which PG it belongs too. The idea is to let the user specify a different string to hash; if the same string is specified for multiple objects, those objects will be stored together.
In both cases it's up the user to keep track of the placement input (the "locator"). Normally it's just the pool id, but may include either/both of the above. Also, both mechanisms aren't currently exposed via the librados API, so depending on which route you prefer we'll need to do some (relatively minor) work there.
There are also a couple FileSystem implementations that replace HDFS with Ceph. One uses the libceph userspace client, and one relies on the kernel's support and uses a few ioctls to control/expose file placement. I wonder if that would also meet your needs?
Quoted 25 lines
We're very interested in making things work well for hadoop and hbase. I'm curious what approach you think would work best here!
sage
Quoted 18 lines
Thanks,
Tatsuya--
Tatsuya Kawano (Mr.)
Tokyo, Japanhttp://twitter.com/#!/tatsuya6502
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Tatsuya Kawano (Mr.)
Tokyo, Japan