Amoeba is a relational storage manager built on top of HDFS for the Spark/Hadoop stack.
Amoeba is geared towards accelerating ad-hoc query analysis. A user can start analyzing his dataset immediately on upload and the partitioning layout of the data improves over time based on user queries. It does this by splitting the dataset into block-sized partitions based on a partitioning tree. The partitioning tree is a multi-attribute binary tree index which is created with no workload knowledge and incrementally adapted based on user queries.
The user interacts via two components:
- Upfront Parititoner: Loads the data into Amoeba
- Adaptive Query Executor: Used to run queries against the tables in Amoeba
-
Install and run the following dependencies
hadoop-2.6spark-1.6.0zookeeper-3.4.6
-
Install
gradle- Mac
brew install gradle - Ubuntu
sudo apt-get install gradle
- Mac
-
Build Amoeba JAR
cd amoeba; gradle shadowJar -
Amoeba uses fabric for automation. Install it
sudo pip install fabric
-
Generate a simple dataset with 1000 tuples and 2 integer attributes
AandBcd data; python gen_simple.py -
Modify the Amoeba configuration to reflect your current hadoop/spark/zookeeper installation
cd ../conf; vim main.properties -
Upload the dataset into Amoeba
cd ../scripts fab setup:local_simple create_table_info bulk_sample_gen create_robust_tree write_partitionssetup:local_simplepicks up the configuration fromfabfile/confs.pyfor the simple dataset. You need to add configuration for your dataset into this file.create_table_infocreates a table entry for the datasetbulk_sample_gensamples the dataset in parallelcreate_robust_treebuilds the partitioning tree for the datasetwrite_partitionswrite the dataset partitioned into HDFS -
To run a bunch of queries
cp ../data/simple_queries.log ~/queries.log fab setup:local_simple run_queries_formatted
The wiki contains additional information about setup and using Amoeba.
