CATA docs
Search…
Installation

Getting Minerva

You could build Minerva from code source. It may take you several hours. So we recommend you install the minerva by release code.
You could get releases of Minerva by wget:
1
$ wget https://cata.oss-cn-hongkong.aliyuncs.com/src/apache-drill-1.16.0.zip
Copied!
The file size is about 400M, it may take you 10-30 mins to download it.
Once you download the file, you could unzip the files:
1
unzip apache-drill-1.16.0.zip
Copied!
Then you could install the run the Minerva as follows:
1
#step 0, install java
2
yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
3
yum install tmux -y
4
#revise apache-drill-1.16.0/conf/drill-env.sh, DRILL_HOST_NAME to your machine ip
5
6
#step 1, add service
7
wget https://cata.oss-cn-hongkong.aliyuncs.com/src/drill-embedded.service
8
#please revise the path in drill-embedded.service
9
10
cp drill-embedded.service /usr/lib/systemd/system/
11
12
#step 2, add start
13
systemctl enable drill-embedded.service
14
15
#step 3, start
16
systemctl start drill-embedded.service
17
18
#visit http://ip:8047/
Copied!

Getting IPFS

Now CATA supports ipfs 0.7 version:
You could get the release:
1
wget https://cata.oss-cn-hongkong.aliyuncs.com/src/go_ipfs_0.4.23.tar.gz
Copied!
the tar the file as follows:
1
tar -xzvf go_ipfs_0.4.23.tar.gz
2
#install
3
cd go-ipfs
4
./install.sh
Copied!
After install the ipfs, you could start the ipfs as follows:
1
#step 0, init ipfs
2
ipfs init
3
wget https://cata.oss-cn-hongkong.aliyuncs.com/src/swarm.key
4
cp swarm.key ~/.ipfs/
5
6
#step 1, add service
7
wget https://cata.oss-cn-hongkong.aliyuncs.com/src/ipfsd.service
8
cp ipfsd.service /usr/lib/systemd/system/
9
10
#step 2, add start
11
systemctl enable ipfsd.service
12
13
#step 3, start
14
systemctl start ipfsd.service
Copied!

Check installation

After install Minerva and ipfs, you could visit http://your-machine-ip:8047/
You should find the web page like this:
Then click the "Storage" in top nav tab, you should find the ipfs plugin:
if "ipfs" is not in left panel, please enable it.
Then you could add some files to ipfs and search them by SQL from Minerva.
First, you need download a python script and a test file:
1
wget https://cata.oss-cn-hongkong.aliyuncs.com/src/splitter.py
2
wget https://cata.oss-cn-hongkong.aliyuncs.com/src/test.json
Copied!
The test.json is the metadata of some books. One line one data:
{"id": "53e9a743b7602d9703079a7f", "title": "On the characteristics of a system having master and helping unit", "authors": "S.K. Singh",...}
{"id": "53e9a743b7602d9703079a80", "title": "Study on Zoning Nature of the Structural Deformation in Overlying Strata of Deep Mines","authors":"aaaa",....}
Then could add test.json by splitter.py:(If we use "ipfs add", this command my split one json data into 2 segments )
Then, you could run sql for test.json in minerva web pages:
select * from ipfs./ipfs/Qmc7NGW5VQeTUSEfs88Ssj1S4xKZP6cjTqXgDKmrAoPrCa#json limit 10
You should get the result like this:
Con! You finish the installation of 2 basic components of CATA.