You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose the repostory is cloned to the folder `~/cloudberry`.
25
-
26
-
Step 3: Use the following steps to install an AsterixDB cluster on the local machine in order to run the Cloudberry middleware.
27
-
28
-
1. Install [Docker](https://www.docker.com/products/docker) (version at least 1.10) on the local machine;
29
-
2. Run the following commands to create an AsterixDB cluster locally:
30
-
31
-
```
32
-
~> cd cloudberry
33
-
~/cloudberry> ./script/dockerRunAsterixDB.sh
34
-
```
35
-
This command will download and run a prebuilt AsterixDB docker image from [here](https://hub.docker.com/r/jianfeng/asterixdb/). This step may take 5-10 minutes or even longer, depending on your network speed.
36
-
37
-
Step 4: Run the following command to ingest sample tweets (about 324K) and US population data into AsterixDB.
This step is downloading about 70MB of data, and it may take 5 minutes, again, depending on your network speed. This step is successful after you see a message "Data ingestion completed!" in the shell.
44
-
45
-
Step 5: Compile and run the Cloudberry server.
46
-
47
-
```
48
-
~/cloudberry> sbt compile
49
-
~/cloudberry> sbt "project neo" "run"
50
-
```
51
-
52
-
Wait until the shell prints a message "Server started, use Ctrl+D to stop and go back to the console....".
53
-
54
-
Step 6: Start the TwitterMap frontend by running the following command in another shell:
55
-
56
-
```
57
-
~/cloudberry> sbt "project twittermap" "run 9001"
58
-
```
59
-
60
-
Step 7: Open a browser to access [http://localhost:9001](http://localhost:9001) to see the TwitterMap frontend. Notice that the first time you open the page, it could take up to several minutes (depending on your machine) to load the front-end data.
61
-
62
-
**Congratulations!** You have successfully set up TwitterMap using AsterixDB and Cloudberry!
63
-
64
-
65
-
66
-
* Run your own front-end server
67
-
68
-
TwitterMap is our homemade front-end that shows how to use Cloudberry server. You can implement own front-end service
69
-
and let it talk to Cloudberry to achieve the same interactive user experience.
70
-
71
6
72
7
## Concepts
73
8
@@ -157,8 +92,9 @@ The following JSON request can be used to register the Twitter dataset inside As
157
92
158
93
The front-end application can send the ddl JSON file to Cloudberry `/admin/register` path by using `POST` HTTP method.
159
94
E.g., we can register the previous ddl using the following command line:
#### Deregister Tweets and US Population Data Models
590
-
591
-
You may also deregister these data models from the Cloudberry to experiment with other data models. But be careful when doing this as the TwitterMap won't work without these data models.
Suppose the repostory is cloned to the folder `~/cloudberry`.
27
+
28
+
**Step 3**: Use the following steps to install an AsterixDB cluster on the local machine in order to run the Cloudberry middleware.
29
+
30
+
1. Install [Docker](https://www.docker.com/products/docker) (version at least 1.10) on the local machine;
31
+
2. Run the following commands to create an AsterixDB cluster locally:
32
+
33
+
```
34
+
~> cd cloudberry
35
+
~/cloudberry> ./script/dockerRunAsterixDB.sh
36
+
```
37
+
This command will download and run a prebuilt AsterixDB docker image from [here](https://hub.docker.com/r/jianfeng/asterixdb/). This step may take 5-10 minutes or even longer, depending on your network speed.
38
+
After it finishes, you should see the messages as shown in the following screenshot:
39
+
![docker][docker]
40
+
41
+
**Step 4**: Run the following command to ingest sample tweets (about 324K) and US population data into AsterixDB.
This step is downloading about 70MB of data, and it may take 5 minutes, again, depending on your network speed. This step is successful after you see a message "Data ingestion completed!" in the shell.
49
+
After it finishes, you should see the messages as shown in the following screenshot:
50
+
![ingestion][ingestion]
51
+
52
+
**Step 5**: Compile and run the Cloudberry server.
53
+
54
+
```
55
+
~/cloudberry> sbt compile
56
+
~/cloudberry> sbt "project neo" "run"
57
+
```
58
+
59
+
Wait until the shell prints the messages as shown in the following screenshot:
60
+
![neo][neo]
61
+
62
+
**Step 6**: Start the TwitterMap frontend by running the following command in another shell:
63
+
64
+
```
65
+
~/cloudberry> sbt "project twittermap" "run 9001"
66
+
```
67
+
68
+
Wait until the shell prints the messages as shown in the following screenshot:
69
+
![twittermap][twittermap]
70
+
71
+
72
+
**Step 7**: Open a browser to access [http://localhost:9001](http://localhost:9001) to see the TwitterMap frontend. Notice that the first time you open the page, it could take up to several minutes (depending on your machine) to show the following webpage:
73
+
![web][web]
74
+
75
+
76
+
**Congratulations!** You have successfully set up TwitterMap using AsterixDB and Cloudberry!
77
+
78
+
79
+
### Connect to your own AsterixDB cluster
80
+
81
+
To connect with an existing AsterixDB cluster, you can modify the AsterixDB hostname in the
82
+
configuration file `neo/conf/application.conf` and change the `asterixdb.url` value to the AsterixDB hostname.
0 commit comments