Commonly either peoples are versed with Apache Hadoop or Openstack Swift. The topic integration of Apache Hadoop with Openstack Swift is not exactly new. Good experience with both together may be rare. You can follow our this guide specially for handling OpenStack part without searching here and there. Further you can use this website’s search function to find our old guides apart from the linked articles.
Integration of Apache Hadoop With OpenStack Swift : Foreword
You must know what you are doing. Hadoop file system widely used with HDFS, but most of them are not built to work out of the box with object storage. It is not odd to get odd behaviour as response. OpenStack installations can differ from vendor to vendor. We have good number of guides on Rackspace and HP Cloud fully separately. Access can be API based or username password based.
Integration of Apache Hadoop With OpenStack Swift
We guess that you already have Apache Hadoop up and running, if not please follow our guide for installation and setup of Apache Hadoop on single server instance.
Coming to OpenStack Swift, it has client which we described on earlier series of guides like Installation and Setup of OpenStack Python Packages, Uploading to a Swift Container (HP Cloud), Emptying a Swift Container (HP Cloud), mount OpenStack Swift on Ubuntu server (Rackspace) and so an.
After getting used with ordinary files with OpenStack Swift, you can follow Apache Hadoop’s official guide :
In the same way, OpenStack Swift has official guide :
Regardless of cloud vendor, you’ll need these to configure Apache products including Hadoop, Spark to access :
- region for your container
- authorization URL
- API key OR password
Please remember that we are not talking about tenant name. Above linked guides have easy integration of those basic things with bash or ZSH. To configure Hadoop for Swift, at location /usr/share/hadoop/etc/hadoop, you’ll find hadoop-env.sh. You need to add a line in this format :
Another file is
swift_test is our example name :
<description>VendorName US (multiregion)</description>
In those official guides you’ll find another variable in case you are running Hadoop outside of OpenStack Swift provider’s datacenter. We already talked about installation of Apache Spark with Hadoop. For, Spark you need to add these lines to
export SPARK_DIST_CLASSPATH=$(/usr/share/hadoop/bin/hadoop classpath)
Follow the Author of this article :